Rust
Go Komfort 1000000X|| 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10159095json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10159095,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Limburg an der Lahn",
"description": "\nЛИМИТ КОМАНДЫ: 10 \r\n РЕЙТЫ и СТАКИ: 1000000х \r\n КРАФТ УСКОРЕН: мгновенный \r\n \r\n ВАЙП В ПЯТНИЦA, ВТОРНИК(15:00МСК) \r\n КАСТОМНЫЕ",
"game": 252490,
"owner": 126532,
"boosts": 1,
"last_offline": 1775368290,
"score": 5,
"last_online": 1774474810,
"icon": null,
"name": "Go Komfort 1000000X||",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1756214988,
"last_update": 1775368290,
"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": 7356,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "Y",
"avatar": "27be69a7-2df1-4c88-a734-42d2b463be67.jpg",
"last_online": 1772821630
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10159095");
$data = json_decode($json, true);
var_dump($data);