API dla 逐光Light/5.22 19:00新开/双倍/公益无权/
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 125,
"fps_avg": 127,
"entities_count": 98191,
"world_seed": 1293366031,
"world_size": 4250,
"steam_id": "90286346181371910",
"domain": null,
"id": 11511630,
"ip": "110.42.96.46",
"port": 23821,
"query": 23823,
"color": 0,
"city": "Ningbo",
"description": "\n欢迎来到逐光Light服务器 \r\n \r\n 逐光Light —— 全服无售卖无特权丨对外挂、鼠标宏等作弊行为零容忍!在这里,实力说话,技术为王,拒绝不公,为纯净环境保驾护航,为纯粹热爱Rust的玩家打造干净、公正、长久的逐光家园。 \r\n Q群号282918596-进群请填写17位数字ID以及游戏名 \r\n 本服封禁原则疑罪从无--无铁证不ban人,举报请自行附带combatlog数据截图。 \r\n 我们既不放过一个作弊者 也绝不冤枉一个绿玩 \r\n \r\n 服务器每周固定清档时间--周五晚19点",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780571020,
"last_online": 1780045828,
"icon": null,
"name": "逐光Light/5.22 19:00新开/双倍/公益无权/",
"connect": "110.42.96.46:23821",
"request": "110.42.96.46:23823",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779353857,
"last_update": 1780571020,
"banned": false,
"wipe": 1779447352,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11896,
"language": "zh",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11511630");
$data = json_decode($json, true);
var_dump($data);