API dla [PVE] Before Death B42.13.1
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286845865123867",
"domain": null,
"id": 11771913,
"ip": "91.108.25.221",
"port": 60532,
"query": 60532,
"project_id": null,
"color": 0,
"city": "St Petersburg",
"description": "BD B42.13.1 Наш Discord: https://discord.gg/cQ4z6akRdX, TG: https://t.me/bdpve",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1781220776,
"last_online": 1781109038,
"icon": null,
"name": "[PVE] Before Death B42.13.1",
"connect": "91.108.25.221:60532",
"request": "91.108.25.221:60532",
"map": "Raven Creek B42;Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.19",
"numplayers": 0,
"maxplayers": 5,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780996965,
"last_update": 1781220776,
"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": 11582,
"language": "ru",
"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/11771913");
$data = json_decode($json, true);
var_dump($data);