Counter-Strike
- - - N A B A D A - - - 的 API
我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10671785json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10671785,
"ip": "38.79.154.77",
"port": 27225,
"query": 27225,
"color": 0,
"city": "Voluntari",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1772810549,
"score": 0,
"last_online": 1775808613,
"icon": null,
"name": "- - - N A B A D A - - -",
"connect": "38.79.154.77:27225",
"request": "38.79.154.77:27225",
"map": "awp_india",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 30,
"maxplayers": 31,
"bots": 1,
"secured": true,
"private": false,
"country": "RO",
"status": true,
"votes": 0,
"points": 98,
"add_date": 1764579548,
"last_update": 1775808613,
"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": 1496,
"language": "ro",
"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/10671785");
$data = json_decode($json, true);
var_dump($data);