API для My PZ Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1780216399,
"app": {
"id": 71,
"name": "Project Zomboid",
"steam_id": 108600,
"url": "project-zomboid"
},
"color": 0,
"connect": "103.58.148.148:16261",
"country": "TH",
"domain": null,
"game": 108600,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11679810,
"ip": "103.58.148.148",
"language": "th",
"last_update": 1790478325,
"map": "Muldraugh, KY",
"maxplayers": 32,
"name": "My PZ Server",
"numplayers": 0,
"official": null,
"points": 30,
"port": 16261,
"private": true,
"project_id": null,
"pve": null,
"pvp": 0,
"query": 16261,
"request": "103.58.148.148:16261",
"secured": true,
"status": true,
"steam_id": "90293519827547145",
"version": "42.15",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Pathum Wan",
"description": null,
"disabled_modules": [],
"gamemode": "Project Zomboid",
"hidden": false,
"last_offline": 1790447691,
"last_online": 1790478325,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 4490,
"wipe_period": null,
"open": "1",
"public": "0",
"modCount": "10",
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11679810");
$data = json_decode($json, true);
var_dump($data);