API для Nador
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "version=1.9.1.5;",
"os": "w",
"product": "wurmunlimitedserver",
"region": -1,
"steam_id": "90289666416414736",
"domain": null,
"id": 12304738,
"ip": "24.126.171.43",
"port": 3724,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Decatur",
"description": null,
"game": 366220,
"owner": null,
"boosts": 1,
"last_offline": 1785115047,
"last_online": 1785115800,
"icon": null,
"name": "Nador",
"connect": "24.126.171.43:3724",
"request": "24.126.171.43:27016",
"map": "Heavenord",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 1,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": null,
"country": "US",
"status": true,
"votes": 0,
"points": 40,
"add_date": 1784046179,
"last_update": 1785115800,
"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": 15,
"language": "en",
"parked": false,
"app": {
"id": 155,
"steam_id": 366220,
"name": "Wurm Unlimited",
"url": "wurm-unlimited"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12304738");
$data = json_decode($json, true);
var_dump($data);