API dla 【地球OL】5年服|安全箱|新人绝佳|永不停服|大�
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 83,
"fps_avg": 89,
"entities_count": 153264,
"world_seed": 3,
"world_size": 5100,
"steam_id": "90286574180717589",
"domain": null,
"id": 11511617,
"ip": "115.159.210.55",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Shanghai",
"description": "【地球OL】5年服务器全好评,体验最纯正的 RUST!\r\n基于官服的 RUST 同时 加入了一些玩起来舒服的模组,例如物品叠加、黑夜缩短等,均不会影响原汁原味的游戏体验\r\n 同时安全区有个无敌箱子,不随档走,舒服安全箱随时可以翻盘逆袭!\r\n 不定期举办各种活动!\r\n 欢迎加群 953760158,遇到外挂秒举报秒封禁",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780526068,
"last_online": 1780558829,
"icon": null,
"name": "【地球OL】5年服|安全箱|新人绝佳|永不停服|大�",
"connect": "115.159.210.55:28015",
"request": "115.159.210.55:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779353857,
"last_update": 1780558829,
"banned": false,
"wipe": 1778204140,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5215,
"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/11511617");
$data = json_decode($json, true);
var_dump($data);