Counter-Strike
© G O L D E N - U N I T Y ► 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/58783json
{
"response": {
"steam_id": null,
"domain": null,
"id": 58783,
"ip": "37.230.162.192",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1774835529,
"score": null,
"last_online": 1776204623,
"icon": null,
"name": "© G O L D E N - U N I T Y ►",
"connect": "37.230.162.192:27015",
"request": "37.230.162.192:27015",
"map": "de_mirage_2x2",
"gamemode": "█ █ НОЧНОЙ GOLD █ █",
"version": "1.1.2.7/Stdio",
"numplayers": 1,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1521468537,
"last_update": 1776204623,
"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": 4092,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/58783");
$data = json_decode($json, true);
var_dump($data);