Counter-Strike
© CSMOV.RU | BleckMesa BIOHAZARD [New Operation Zone]®™ 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10712870json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10712870,
"ip": "37.230.210.43",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Moscow",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1774313471,
"score": 0,
"last_online": 1776221452,
"icon": null,
"name": "© CSMOV.RU | BleckMesa BIOHAZARD [New Operation Zone]®™",
"connect": "37.230.210.43:27016",
"request": "37.230.210.43:27016",
"map": "zm_3rooms",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1765130835,
"last_update": 1776221452,
"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": 6243,
"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/10712870");
$data = json_decode($json, true);
var_dump($data);