API для QA Testing - US East #09
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790409853,
"app": {
"id": 51409,
"name": "Hell Let Loose",
"steam_id": 686810,
"url": "hell-let-loose"
},
"color": 0,
"connect": "45.137.247.33:28200",
"country": "DE",
"domain": null,
"game": 686810,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17143525,
"ip": "45.137.247.33",
"language": "de",
"last_update": 1794690962,
"map": "Hill400",
"maxplayers": 100,
"name": "QA Testing - US East #09",
"numplayers": 0,
"official": null,
"points": 30,
"port": 28200,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28215,
"request": "45.137.247.33:28215",
"secured": true,
"status": true,
"steam_id": "90297450211982346",
"version": "0.1.1.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Мюнхен",
"description": null,
"disabled_modules": [],
"gamemode": "Hell Let Loose",
"hidden": false,
"last_offline": 1792550915,
"last_online": 1794690962,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 236,
"wipe_period": null,
"P2PADDR": "45.137.247.33",
"P2PPORT": "28200",
"VISIB_i": "0",
"CONMETHOD": "Direct",
"PINGPORT_i": "28231",
"listentype": "d",
"Crossplay_b": "true",
"environment": "w",
"Changelist_s": "1196762",
"SESSIONFLAGS": "171",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17143525");
$data = json_decode($json, true);
var_dump($data);