LittleFalos | Actual One Grid | x1 | Skills | Hardcore | Max2 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11219720,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"tY5K4mOX4B\",\"type\":\"paragraph\",\"data\":{\"text\":\"Добро пожаловать на самый хардкорный onegrid сервер!\\n\\n\"}}]",
"game": 252490,
"owner": 175105,
"boosts": 1,
"last_offline": 1774936290,
"last_online": 1773996011,
"icon": null,
"name": "LittleFalos | Actual One Grid | x1 | Skills | Hardcore | Max2",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": null,
"numplayers": 0,
"maxplayers": 15,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772745870,
"last_update": 1774936290,
"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": 13552,
"language": "en",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "gremy4r",
"avatar": "e1ca0dc1-7c68-4d62-8b9b-e9d683ff07cc.jpg"
},
"mods": [
{
"id": 1749,
"name": "zlevel"
}
],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11219720");
$data = json_decode($json, true);
var_dump($data);