API pentru [TW][PVE][PVPArea]
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 99,
"fps_avg": 92,
"entities_count": 127666,
"world_seed": 326487322,
"world_size": 4500,
"steam_id": 90286528291647490,
"domain": null,
"id": 11698875,
"ip": "111.249.23.218",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Zhongli District",
"description": "![[TW][PVE][PVPArea]](https://raw.githubusercontent.com/kuso5j3bp6m3al1au1/icon/refs/heads/main/8aeb5215115c.jpg)\n●小型休閒\r \n PVP: 區域性&友傷off(爆炸排除)\r \n PVE: 傷害整合/硬核AI/死亡懲罰/喪屍/多元\r \n 資源: 原版採集+能力加成/鐵桶陷阱/硬核物資箱/特殊補品\r \n 藍圖: 硬核藍圖/機率性研究台/工作檯稅率+/工作檯製品只會返回工作檯\r \n 堆疊: 部分容器堆疊擴展\r \n 特色: 農夫/NPC武器掉落(低機率還原其降級&低耐久)/藏寶圖/更多藥品(無法自製)\r \n /NPC通緝令(抄玩家基地)/公共電話任務/保底資源活動盒/各種奇觀事件\r \n /沒有課金項目/更多電台\r \n 其他: 娛樂測試伺服器",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780681409,
"last_online": 1780434630,
"icon": null,
"name": "[TW][PVE][PVPArea]",
"connect": "111.249.23.218:28015",
"request": "111.249.23.218:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "TW",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780227278,
"last_update": 1780681409,
"banned": false,
"wipe": 1780162248,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12427,
"language": "zh",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11698875");
$data = json_decode($json, true);
var_dump($data);