API для 「天域国度」专业对抗#3
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1774555051,
"app": {
"id": 11,
"name": "Left 4 Dead 2",
"steam_id": 550,
"url": "left-4-dead-2"
},
"color": 0,
"connect": "202.189.15.5:27102",
"country": "CN",
"domain": null,
"game": 550,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11257705,
"ip": "202.189.15.5",
"language": "zh",
"last_update": 1792965362,
"map": "c2m1_highway",
"maxplayers": 12,
"name": "「天域国度」专业对抗#3",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27102,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27102,
"request": "202.189.15.5:27102",
"secured": true,
"status": true,
"steam_id": "90295780099818503",
"version": "2.2.4.3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Цзинань",
"description": null,
"disabled_modules": [],
"gamemode": "Left 4 Dead 2",
"hidden": false,
"last_offline": 1791475305,
"last_online": 1792965362,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 9513,
"wipe_period": null,
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11257705");
$data = json_decode($json, true);
var_dump($data);