Counter-Strike
《 ZoNa KoMфOpTa 》 [Public | 18+] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10712653json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10712653,
"ip": "188.127.241.6",
"port": 27121,
"query": 27121,
"color": 0,
"city": "Moscow",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776157316,
"score": 0,
"last_online": 1776202820,
"icon": null,
"name": "《 ZoNa KoMфOpTa 》 [Public | 18+]",
"connect": "188.127.241.6:27121",
"request": "188.127.241.6:27121",
"map": "de_snipe_it5",
"gamemode": "FREE V.I.P",
"version": "1.1.2.7/Stdio",
"numplayers": 5,
"maxplayers": 32,
"bots": 1,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 41,
"add_date": 1765129682,
"last_update": 1776202820,
"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": 2757,
"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/10712653");
$data = json_decode($json, true);
var_dump($data);