Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11220227,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"M7kRjJJ35J\",\"type\":\"paragraph\",\"data\":{\"text\":\"Классическая Арена 1 на 1 - Дуэли. Бесплатный скинченджер, настройка оружия и много популярных карт\"}}]",
"game": 4465480,
"owner": 175598,
"boosts": 1,
"last_offline": 1776124880,
"last_online": 1775255412,
"icon": null,
"name": "Server",
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 35,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772815859,
"last_update": 1776124880,
"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": 2287,
"language": "ru",
"parked": true,
"app": {
"id": 1629104,
"steam_id": 4465480,
"name": "Counter-Strike: Global Offensive",
"url": "counter-strike-global-offensive"
},
"server_owner": {
"username": "geka_gg",
"avatar": "8837c614-c9c6-4091-8ab2-36ec78443015.jpg"
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11220227");
$data = json_decode($json, true);
var_dump($data);