[RU] Shnyagi.Net | Classic x1 PvP 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10733961,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"7BV77eCzRc\",\"type\":\"image\",\"data\":{\"caption\":\"\",\"withBorder\":false,\"withBackground\":false,\"stretched\":false,\"file\":{\"url\":\"https://cdn.gamemonitoring.net/images/content/9b9358ba-cfb0-4810-824b-ae3d02022f4f.jpg\"}}},{\"id\":\"--DnsoIjxA\",\"type\":\"paragraph\",\"data\":{\"text\":\"Добро пожаловать на классический сервер выживания!\\n- Глобальный вайп - первая пятница месяца в 16:00 (мск)\\n- Вайп карты - каждую пятницу в 16:00 (мск)\"}},{\"id\":\"qYVwB16JZ6\",\"type\":\"paragraph\",\"data\":{\"text\":\"Hello RUSTers!\\nWelcome to the classic survival server!\\n- Global Wipe - the first Friday of the month at 16:00 UTC+3\\n- Wipe maps - every Friday at 16:00 UTC+3\"}}]",
"game": 252490,
"owner": 154898,
"boosts": 1,
"last_offline": 1774245078,
"last_online": 1773337813,
"icon": null,
"name": "[RU] Shnyagi.Net | Classic x1 PvP",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": null,
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1765964233,
"last_update": 1774245078,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13642,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "rustshnyaginet",
"avatar": "5f6a992b-abd4-4d0c-9fa2-4d0dd08b4c42.png"
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10733961");
$data = json_decode($json, true);
var_dump($data);