Project Zomboid
API для DreamTeam
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11267876json
{
"response": {
"steam_id": 90285216718086160,
"domain": null,
"id": 11267876,
"ip": "45.159.7.15",
"port": 10830,
"query": 10830,
"color": 0,
"city": "Poplar",
"description": "B41 full moded, hard and fun",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1777642393,
"score": 0,
"last_online": 1777671026,
"icon": null,
"name": "DreamTeam",
"connect": "45.159.7.15:10830",
"request": "45.159.7.15:10830",
"map": "Blackwood;lvharbor;Chernaville;",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774555520,
"last_update": 1777671026,
"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": 2229,
"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/11267876");
$data = json_decode($json, true);
var_dump($data);