API для 星露谷
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286809675383827",
"domain": null,
"id": 11760925,
"ip": "114.66.43.18",
"port": 21037,
"query": 21037,
"project_id": null,
"color": 0,
"city": "Beijing",
"description": "1.开服时间为2026年6月6日。<LINE>语音频道:KOOK28033586",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780989865,
"last_online": 1781062826,
"icon": null,
"name": "星露谷",
"connect": "114.66.43.18:21037",
"request": "114.66.43.18:21037",
"map": "Chinatown B42 version;Chinatown",
"gamemode": "Project Zomboid",
"version": "42.19",
"numplayers": 1,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1780931877,
"last_update": 1781062826,
"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": 154,
"language": "zh",
"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/11760925");
$data = json_decode($json, true);
var_dump($data);