Counter-Strike 2
PLAY.PRACC.COM - [AUS] MULTI-CFG DM - MIRAGE ✦ BEST FPS ✦ D 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3285409json
{
"response": {
"steam_id": "90284209503975431",
"domain": null,
"id": 3285409,
"ip": "121.127.47.34",
"port": 26764,
"query": 26764,
"color": 0,
"city": "Sydney",
"description": "",
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1769071271,
"score": null,
"last_online": 1775941833,
"icon": null,
"name": "PLAY.PRACC.COM - [AUS] MULTI-CFG DM - MIRAGE ✦ BEST FPS ✦ D",
"connect": "121.127.47.34:26764",
"request": "121.127.47.34:26764",
"map": "de_mirage",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 0,
"maxplayers": 27,
"bots": 12,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1709834749,
"last_update": 1775941833,
"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": 5687,
"language": "en",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/3285409");
$data = json_decode($json, true);
var_dump($data);