API для GoFire测试服069
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "bots",
"os": "w",
"product": "cstrike",
"region": 255,
"steam_id": "90289260918735893",
"domain": null,
"id": 12385918,
"ip": "111.18.37.12",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Xi'an",
"description": null,
"game": 243750,
"owner": null,
"boosts": 1,
"last_offline": 1784826292,
"last_online": 1784481823,
"icon": null,
"name": "GoFire测试服069",
"connect": "111.18.37.12:27015",
"request": "111.18.37.12:27015",
"map": "de_dust2",
"gamemode": null,
"version": "6660428",
"numplayers": 0,
"maxplayers": 17,
"bots": 0,
"secured": false,
"private": null,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784477021,
"last_update": 1784826292,
"ban_reason": null,
"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": 854,
"language": "zh",
"parked": false,
"app": {
"id": 159,
"steam_id": 243750,
"name": "Source SDK Base 2013 Multiplayer",
"url": "source-sdk-base-2013-multiplayer"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12385918");
$data = json_decode($json, true);
var_dump($data);