Counter-Strike 2
CS2 DUELS | 1v1 #36 [RU] — CYBERSHOKE.NET (ONLY MIRAGE) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/535442json
{
"response": {
"steam_id": "85568392935400966",
"domain": null,
"id": 535442,
"ip": "37.230.210.75",
"port": 27031,
"query": 27031,
"color": 0,
"city": "Moscow",
"description": "",
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1776235917,
"score": null,
"last_online": 1776626436,
"icon": null,
"name": "CS2 DUELS | 1v1 #36 [RU] — CYBERSHOKE.NET (ONLY MIRAGE)",
"connect": "37.230.210.75:27031",
"request": "37.230.210.75:27031",
"map": "duels_mirage_1x1",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 15,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 41,
"add_date": 1643824672,
"last_update": 1776626436,
"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": 2019,
"language": "ru",
"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/535442");
$data = json_decode($json, true);
var_dump($data);