API для GoFire测试服_070fix1
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "w",
"region": 255,
"product": "cstrike",
"gametype": "alltalk,bots",
"dedicated": true,
"steam_id": "90292079132483590",
"domain": null,
"id": 14330132,
"ip": "220.176.83.234",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Pingxiang",
"description": null,
"game": 243750,
"boosts": 1,
"last_offline": 1788899048,
"last_online": 1788437972,
"icon": null,
"name": "GoFire测试服_070fix1",
"connect": "220.176.83.234:27015",
"request": "220.176.83.234:27015",
"map": "zm_resort",
"gamemode": null,
"version": "6660727",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": null,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1788430105,
"last_update": 1788899048,
"ban_reason": null,
"banned": false,
"hidden": 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": 545,
"language": "zh",
"parked": false,
"app": {
"id": 159,
"steam_id": 243750,
"name": "Source SDK Base 2013 Multiplayer",
"url": "source-sdk-base-2013-multiplayer"
},
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14330132");
$data = json_decode($json, true);
var_dump($data);