API dla Poppie's Angels and Demons - Whitelisted
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 129,
"fps_avg": 128,
"entities_count": 97246,
"world_seed": 1337,
"world_size": 4096,
"steam_id": 90286609586440220,
"domain": null,
"id": 11305579,
"ip": "174.84.130.58",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Oscoda",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780605861,
"last_online": 1780645913,
"icon": null,
"name": "Poppie's Angels and Demons - Whitelisted",
"connect": "174.84.130.58:28015",
"request": "174.84.130.58:28017",
"map": "Synecdoche Islands",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774592892,
"last_update": 1780645913,
"banned": false,
"wipe": 1780601447,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6944,
"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/11305579");
$data = json_decode($json, true);
var_dump($data);