API для Ws Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90290102926201886",
"domain": null,
"id": 13210568,
"ip": "15.235.50.109",
"port": 27000,
"query": 27000,
"project_id": null,
"color": 0,
"city": "Montreal",
"description": "We damp Bois",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1785653481,
"last_online": 1785701185,
"icon": null,
"name": "Ws Server",
"connect": "15.235.50.109:27000",
"request": "15.235.50.109:27000",
"map": "map_rv;map_distanciado;Muldraug",
"gamemode": "Project Zomboid",
"version": "42.20",
"numplayers": 3,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": true,
"country": "CA",
"status": true,
"votes": 0,
"points": 69,
"add_date": 1785653481,
"last_update": 1785701185,
"ban_reason": null,
"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": 1605,
"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/13210568");
$data = json_decode($json, true);
var_dump($data);