Project Zomboid
API для [AU] Melbourne Apocalypse | B42 Vanilla-lite PvEvP
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/637386json
{
"response": {
"steam_id": "90285057250278421",
"domain": null,
"id": 637386,
"ip": "121.200.31.23",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Melbourne",
"description": "",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1776739401,
"score": null,
"last_online": 1777611637,
"icon": null,
"name": "[AU] Melbourne Apocalypse | B42 Vanilla-lite PvEvP",
"connect": "121.200.31.23:16261",
"request": "121.200.31.23:16261",
"map": "AZSpawn;Muldraugh, KY;",
"gamemode": "Project Zomboid",
"version": "42.17",
"numplayers": 3,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1669884802,
"last_update": 1777611637,
"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": 2646,
"language": "en",
"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/637386");
$data = json_decode($json, true);
var_dump($data);