API dla 5x PvE Paradise
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 61,
"fps_avg": 63,
"entities_count": 144022,
"world_seed": 1337,
"world_size": 4500,
"steam_id": "90286523307517954",
"domain": null,
"id": 8267552,
"ip": "156.236.84.13",
"port": 28000,
"query": 28001,
"color": 0,
"city": "Dallas",
"description": "Skilltree wipes: MARCH, JUNE, SEPTEMBER, DECEMBER \r\n Custom Map \r\n 5x \r\n Skill Tree (Prestige enabled)\r\n BetterNPC \r\n Bradley Tiers \r\n Bradley at monuments \r\n AutoFarm \r\n Boss Monsters \r\n Helisignals \r\n Chests Stack",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780130015,
"last_online": 1780581643,
"icon": null,
"name": "5x PvE Paradise",
"connect": "156.236.84.13:28000",
"request": "156.236.84.13:28001",
"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": 1742497716,
"last_update": 1780581643,
"banned": false,
"wipe": 1778181252,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3220,
"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/8267552");
$data = json_decode($json, true);
var_dump($data);