API dla [NA] Myah's Vanilla 04-02-26
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 127,
"fps_avg": 127,
"entities_count": 133469,
"world_seed": 1929088697,
"world_size": 4750,
"steam_id": "90286588645311512",
"domain": null,
"id": 8267580,
"ip": "104.129.132.194",
"port": 28025,
"query": 28026,
"color": 0,
"city": "Dallas",
"description": "![[NA] Myah's Vanilla 04-02-26](https://ezcraft.org/images/ravenlogo.png)\nWiped: 05-07-26\r\n\r\n- No VIP packages.\r\n- Server Wipes the First Thursday of the Month at 6:00pm EDT.\r\n\r\nWebsite: https://ezcraft.org\r\nDiscord: https://discord.ezcraft.org",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779877405,
"last_online": 1780581635,
"icon": null,
"name": "[NA] Myah's Vanilla 04-02-26",
"connect": "104.129.132.194:28025",
"request": "104.129.132.194:28026",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1742497718,
"last_update": 1780581635,
"banned": false,
"wipe": 1778194364,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3222,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"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/8267580");
$data = json_decode($json, true);
var_dump($data);