Project Zomboid
API для Leeds Nerds Project Zomboid Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/2787177json
{
"response": {
"steam_id": "90285606134590483",
"domain": null,
"id": 2787177,
"ip": "51.210.117.25",
"port": 26905,
"query": 26905,
"color": 0,
"city": "Gravelines",
"description": "Welcome to the Leeds Nerds Official Project Zomboid Server",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1776049310,
"score": null,
"last_online": 1778542220,
"icon": null,
"name": "Leeds Nerds Project Zomboid Server",
"connect": "51.210.117.25:26905",
"request": "51.210.117.25:26905",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.13",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": true,
"country": "FR",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1706704164,
"last_update": 1778542220,
"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": 151,
"language": "fr",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/2787177");
$data = json_decode($json, true);
var_dump($data);