API для Skrugs
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286697508099088",
"domain": null,
"id": 886539,
"ip": "209.126.4.104",
"port": 31100,
"query": 31100,
"project_id": null,
"color": 0,
"city": "St Louis",
"description": "[BR] HORDA OPRESSORA",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780570467,
"last_online": 1780948836,
"icon": null,
"name": "Skrugs",
"connect": "209.126.4.104:31100",
"request": "209.126.4.104:31100",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1684708790,
"last_update": 1780948836,
"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": 334,
"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/886539");
$data = json_decode($json, true);
var_dump($data);