Counter-Strike 2
[FR] 👑 FUN - WORKSHOP MAPS - CASUAL 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10259902json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10259902,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 730,
"owner": 134221,
"boosts": 1,
"last_offline": 1769320259,
"score": 0,
"last_online": 1768452016,
"icon": null,
"name": "[FR] 👑 FUN - WORKSHOP MAPS - CASUAL",
"connect": null,
"request": null,
"map": "de_lake",
"gamemode": "Counter-Strike 2",
"version": null,
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1757017834,
"last_update": 1769320259,
"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": 12477,
"language": "fr",
"parked": true,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "SainteKhalifa",
"avatar": "700c03ce-8968-440e-9b0f-8dcc0a474dc7.jpg",
"last_online": 1765578596
},
"mods": [
{
"id": 379,
"name": "VIP"
},
{
"id": 343,
"name": "Skins"
},
{
"id": 5,
"name": "Admin System"
},
{
"id": 14,
"name": "Advertisement"
},
{
"id": 362,
"name": "Tag"
},
{
"id": 19,
"name": "AntiFlash"
},
{
"id": 61,
"name": "Colored Smoke"
},
{
"id": 412,
"name": "Aim"
}
],
"disabled_modules": [
"chat"
]
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10259902");
$data = json_decode($json, true);
var_dump($data);