GRUST X10|MAX3|ДЛЯ НОВИЧКОВ|JUST WIPED 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10957559,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"u1oB0BZGnn\",\"type\":\"paragraph\",\"data\":{\"text\":\"Custom map\\n\"}},{\"id\":\"VARLmyG3pf\",\"type\":\"paragraph\",\"data\":{\"text\":\"10x max3\"}},{\"id\":\"5gcrVJ_7ac\",\"type\":\"paragraph\",\"data\":{\"text\":\"discord https://discord.gg/ZSN6Xwq2vY\\n\"}},{\"id\":\"R26fkT2EeE\",\"type\":\"paragraph\",\"data\":{\"text\":\"vk https://vk.com/grustnews\\n\"}},{\"id\":\"qBryzz9yti\",\"type\":\"paragraph\",\"data\":{\"text\":\"tg t.me/grustnews\\n\"}}]",
"game": 252490,
"owner": 42138,
"boosts": 1,
"last_offline": 1771221666,
"last_online": 1770307212,
"icon": null,
"name": "GRUST X10|MAX3|ДЛЯ НОВИЧКОВ|JUST WIPED",
"connect": null,
"request": null,
"map": "Custom Map",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 150,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1768741708,
"last_update": 1771221666,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13007,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "bearocrat",
"avatar": "d7cc1b41-5a55-478f-9f96-303064eedc9c.jpg"
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10957559");
$data = json_decode($json, true);
var_dump($data);