API для Triple-X Fantasy | Coop-25 | PH
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11602652,
"ip": "103.70.0.228",
"port": 9175,
"query": 9175,
"color": 0,
"city": "Chai Wan",
"description": null,
"game": 550,
"owner": 193028,
"boosts": 1,
"last_offline": 1779611011,
"last_online": 1779640829,
"icon": null,
"name": "Triple-X Fantasy | Coop-25 | PH",
"connect": "103.70.0.228:9175",
"request": "103.70.0.228:9175",
"map": "c3m1_plankcountry",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 1,
"maxplayers": 25,
"bots": 0,
"secured": true,
"private": false,
"country": "HK",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779407979,
"last_update": 1779640829,
"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": 1399,
"language": "en",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": {
"username": "triple_x_fantasy",
"avatar": "4e5c4232-6c1a-4427-9401-78f7c50621ba.jpg",
"last_online": 1779576360
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11602652");
$data = json_decode($json, true);
var_dump($data);