API для Project Zomboid Family and Friends
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90292259797925894",
"domain": null,
"id": 12601995,
"ip": "176.57.168.227",
"port": 29600,
"query": 29600,
"project_id": null,
"color": 0,
"city": "Франкфурт-на-Майне",
"description": "Jeder supply run hilft - Jetzt wird geschallert",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1788692517,
"last_online": 1788711819,
"icon": null,
"name": "Project Zomboid Family and Friends",
"connect": "176.57.168.227:29600",
"request": "176.57.168.227:29600",
"map": "map_distanciado;Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.20",
"numplayers": 3,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 76,
"add_date": 1784985137,
"last_update": 1788711819,
"ban_reason": null,
"banned": false,
"hidden": 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": 96,
"language": "de",
"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/12601995");
$data = json_decode($json, true);
var_dump($data);