API dla Mandu
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11742015,
"ip": "175.193.98.178",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Gwangjin-gu",
"description": null,
"game": 620,
"owner": null,
"boosts": 1,
"last_offline": 1780930406,
"last_online": 1780677012,
"icon": null,
"name": "Mandu",
"connect": "175.193.98.178:27015",
"request": "175.193.98.178:27015",
"map": "mp_coop_paint_red_racer",
"gamemode": "Portal 2 Coop",
"version": "2.0.0.1",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": true,
"private": false,
"country": "KR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780412951,
"last_update": 1780930406,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 23,
"language": "ko",
"parked": false,
"app": {
"id": 105,
"steam_id": 620,
"name": "Portal 2",
"url": "portal-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11742015");
$data = json_decode($json, true);
var_dump($data);