Mój Serwer CS2 | SkinChanger 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "85568392936360462",
"domain": null,
"id": 11731173,
"ip": "83.6.168.68",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Lublin",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1780487586,
"last_online": 1780414390,
"icon": null,
"name": "Mój Serwer CS2 | SkinChanger",
"connect": "83.6.168.68:27015",
"request": "83.6.168.68:27015",
"map": "de_mirage",
"gamemode": "Counter-Strike 2",
"version": "1.41.6.5",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780411171,
"last_update": 1780487586,
"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": 15353,
"language": "pl",
"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/11731173");
$data = json_decode($json, true);
var_dump($data);