API dla Burrow survival
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "85568392936334570",
"domain": null,
"id": 11665120,
"ip": "50.20.249.87",
"port": 9265,
"query": 9265,
"color": 0,
"city": "Dallas",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780526006,
"last_online": 1780431175,
"icon": null,
"name": "Burrow survival",
"connect": "50.20.249.87:9265",
"request": "50.20.249.87:9265",
"map": "Washington",
"gamemode": null,
"version": "3.26.3.2",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780179095,
"last_update": 1780526006,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2400,
"language": "en",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11665120");
$data = json_decode($json, true);
var_dump($data);