API dla [UK/EU] Thunderdome Rust PVE
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 171934,
"world_seed": 57025058,
"world_size": 5500,
"steam_id": "90286605028843525",
"domain": null,
"id": 11607302,
"ip": "168.100.161.153",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "London",
"description": "![[UK/EU] Thunderdome Rust PVE](https://i.ibb.co/LXRRztX9/20200824-Thunder-Dome-2323e9344c1f5d6695388819c0aa2b8b.jpg)\nDo you love rust, hate having your base offlined. \r\nInformation: \r\nServer is 1x \r\nLoot spawn has been increased slightly \r\nRaidable bases, personal mini ( more coming soon ) \r\nRules: \r\nNo PVP or Raiding Player Bases \r\nDo not block in monuments \r\nNo TOXIC behaviour is allowed \r\nNo grieving player bases",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780598666,
"last_online": 1780679436,
"icon": null,
"name": "[UK/EU] Thunderdome Rust PVE",
"connect": "168.100.161.153:28015",
"request": "168.100.161.153:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915502,
"last_update": 1780679436,
"banned": false,
"wipe": 1780598994,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5432,
"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/11607302");
$data = json_decode($json, true);
var_dump($data);