Rust
API pentru [TW-Atlantis][PVE]-HardSurvival-Vehicle-Event
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11435902json
{
"response": {
"steam_id": "90284756190298119",
"domain": null,
"id": 11435902,
"ip": "220.133.205.148",
"port": 25524,
"query": 25521,
"color": 0,
"city": "Chiayi City",
"description": "![[TW-Atlantis][PVE]-HardSurvival-Vehicle-Event](https://cdn.discordapp.com/attachments/1489484883339247646/1489495613178646558/23BCFB58-D4D3-4FA3-B532-CB8EEF29695D.png?ex=69d0a063&is=69cf4ee3&hm=a8169e3af64a20a45bdb3657a13f0c46edfc3c21153056fada5a69ffff4c2822&)\n原版PVE求生伺服器,/info是公告,詳細內容進入DC有詳細玩法\r\n工作臺隨機藍圖,禁止研究\r\n技能等級技能數(詳細見DC)\r\n特殊載具,任何載具可進入深海地區(詳細見DC)\r\nAI虛擬玩家,NPC可突襲基地可突襲船(詳細見DC)\r\n所有的卡均為一次性\r\n特殊事件(詳細見DC)\r\n烹飪種菜釀酒符文武器均為分支玩法,動態環境插件(詳細見DC)",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776290512,
"score": 0,
"last_online": 1776848421,
"icon": null,
"name": "[TW-Atlantis][PVE]-HardSurvival-Vehicle-Event",
"connect": "220.133.205.148:25524",
"request": "220.133.205.148:25521",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2623",
"numplayers": 2,
"maxplayers": 66,
"bots": 0,
"secured": true,
"private": false,
"country": "TW",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1774977211,
"last_update": 1776848421,
"banned": false,
"wipe": 1775215794,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2069,
"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/11435902");
$data = json_decode($json, true);
var_dump($data);