API dla {USA} Rusting Away Pure PVE Zombies.Kits|Boss Monsters|Events|B
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 36,
"fps_avg": 37,
"entities_count": 85755,
"world_seed": 1337,
"world_size": 4500,
"steam_id": "90286582543847439",
"domain": null,
"id": 6691394,
"ip": "104.128.58.16",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Chicago",
"description": "\nWelcome To rusting Away.\r\nThis is a new server and is still being set up. Feel free to join and play. Your progress will be saved.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778176987,
"last_online": 1780596634,
"icon": null,
"name": "{USA} Rusting Away Pure PVE Zombies.Kits|Boss Monsters|Events|B",
"connect": "104.128.58.16:28015",
"request": "104.128.58.16:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1732060684,
"last_update": 1780596634,
"banned": false,
"wipe": 1778177196,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2255,
"language": "en",
"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/6691394");
$data = json_decode($json, true);
var_dump($data);