Counter-Strike
Zrenjanin DeathMatch | zrenjanin-hq.com 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10682896json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10682896,
"ip": "45.82.249.39",
"port": 27671,
"query": 27671,
"color": 0,
"city": "Santiago",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1778566938,
"score": 0,
"last_online": 1777853413,
"icon": null,
"name": "Zrenjanin DeathMatch | zrenjanin-hq.com",
"connect": "45.82.249.39:27671",
"request": "45.82.249.39:27671",
"map": "de_industro",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 26,
"bots": 0,
"secured": true,
"private": false,
"country": "CL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1764588251,
"last_update": 1778566938,
"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": 7088,
"language": "es",
"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/10682896");
$data = json_decode($json, true);
var_dump($data);