Counter-Strike
Nis server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/803196json
{
"response": {
"steam_id": null,
"domain": null,
"id": 803196,
"ip": "79.143.20.196",
"port": 27053,
"query": 27053,
"color": 0,
"city": "Almaty",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1775798010,
"score": null,
"last_online": 1776210038,
"icon": null,
"name": "Nis server",
"connect": "79.143.20.196:27053",
"request": "79.143.20.196:27053",
"map": "de_tuscan",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 17,
"bots": 0,
"secured": true,
"private": true,
"country": "KZ",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684348936,
"last_update": 1776210038,
"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": 5106,
"language": "kk",
"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/803196");
$data = json_decode($json, true);
var_dump($data);