Counter-Strike: Source
[V93] • GACHI CLUB ☆ CS:GO MOD • [CS-DREAM.RU] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6257562json
{
"response": {
"steam_id": null,
"domain": null,
"id": 6257562,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": null,
"game": 240,
"owner": 52547,
"boosts": 1,
"last_offline": 1751367240,
"score": 0,
"last_online": 1748674841,
"icon": null,
"name": "[V93] • GACHI CLUB ☆ CS:GO MOD • [CS-DREAM.RU]",
"connect": null,
"request": null,
"map": "de_mirage_csgo_dp1",
"gamemode": "☞ CS-DREAM.RU ☜",
"version": null,
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1728740531,
"last_update": 1751367240,
"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": 1803,
"language": "ru",
"parked": true,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": {
"username": "DreamIsland",
"avatar": "7d81dff5-1794-440e-bace-07460ae27415.jpg",
"last_online": 1735047146
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/6257562");
$data = json_decode($json, true);
var_dump($data);