API dla Undead Relent B41 PVE | NA | Economy
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286982984287249",
"domain": null,
"id": 11787072,
"ip": "208.75.182.139",
"port": 27540,
"query": 27540,
"project_id": null,
"color": 0,
"city": "Chicago",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1781377021,
"last_online": 1781418651,
"icon": null,
"name": "Undead Relent B41 PVE | NA | Economy",
"connect": "208.75.182.139:27540",
"request": "208.75.182.139:27540",
"map": "Trelai_4x4;Taylorsville_bridge_",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1781377021,
"last_update": 1781418651,
"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": 3931,
"language": "en",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11787072");
$data = json_decode($json, true);
var_dump($data);