Counter-Strike
[GUN:XP CSDM] ★ RESET POCHYLNIA ★ Gun XP Mod ★ 1s1k 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/146403json
{
"response": {
"steam_id": null,
"domain": null,
"id": 146403,
"ip": "145.239.237.108",
"port": 27385,
"query": 27385,
"color": 0,
"city": "Wroclaw",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776047510,
"score": null,
"last_online": 1776821417,
"icon": null,
"name": "[GUN:XP CSDM] ★ RESET POCHYLNIA ★ Gun XP Mod ★ 1s1k",
"connect": "145.239.237.108:27385",
"request": "145.239.237.108:27385",
"map": "de_inferno",
"gamemode": "█ GXP MOD █",
"version": "1.1.2.7/Stdio",
"numplayers": 14,
"maxplayers": 26,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1552837026,
"last_update": 1776821417,
"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": 1905,
"language": "pl",
"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/146403");
$data = json_decode($json, true);
var_dump($data);