API для Died Project: PvE
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90291065437685768",
"domain": null,
"id": 11535916,
"ip": "65.109.118.215",
"port": 16261,
"query": 16261,
"project_id": null,
"color": 0,
"city": "Helsinki",
"description": "<RGB:1,1,1> T11b n-escape\\n<IMAGE:media/ui/MP/mp_ui_star.png,32,32> ok",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1784382812,
"last_online": 1786955170,
"icon": null,
"name": "Died Project: PvE",
"connect": "65.109.118.215:16261",
"request": "65.109.118.215:16261",
"map": "Anywhere - SPO;Anywhere, but Lo",
"gamemode": "Project Zomboid",
"version": "42.20",
"numplayers": 0,
"maxplayers": 31,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779355268,
"last_update": 1786955170,
"ban_reason": null,
"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": 1277,
"language": "fi",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11535916");
$data = json_decode($json, true);
var_dump($data);