Counter-Strike 2
[CS2] [RU] PESKARIK CS2 | !SKINS !AGENTS !KNIFE !BHOP 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10945879json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10945879,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Gatchina",
"description": null,
"game": 730,
"owner": 149730,
"boosts": 1,
"last_offline": 1770184265,
"score": 5,
"last_online": 1769250611,
"icon": null,
"name": "[CS2] [RU] PESKARIK CS2 | !SKINS !AGENTS !KNIFE !BHOP",
"connect": null,
"request": null,
"map": "de_mirage",
"gamemode": "Counter-Strike 2",
"version": null,
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1768503645,
"last_update": 1770184265,
"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": 12086,
"language": "ru",
"parked": true,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "mishapeskarik",
"avatar": "ab2804cb-de8e-4939-ae0d-8dfbba3f9a72.jpg",
"last_online": 1777973968
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10945879");
$data = json_decode($json, true);
var_dump($data);