API для WaffleHaus
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "groupId0 version1203505 datahashEzPwq/O4tVlOxFoKUvRpPdqqkt8= mods0 gamemodeS5-5-3-3 view3000",
"os": "w",
"product": "Space Engineers",
"region": -1,
"steam_id": "90289195110111241",
"domain": null,
"id": 12372983,
"ip": "104.229.28.141",
"port": 27016,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Rochester",
"description": null,
"game": 244850,
"owner": null,
"boosts": 1,
"last_offline": 1784872592,
"last_online": 1784862000,
"icon": null,
"name": "WaffleHaus",
"connect": "104.229.28.141:27016",
"request": "104.229.28.141:27016",
"map": "Star System",
"gamemode": null,
"version": "1203505",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": null,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784391711,
"last_update": 1784872592,
"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": 6128,
"language": "en",
"parked": false,
"app": {
"id": 97,
"steam_id": 244850,
"name": "Space Engineers",
"url": "space-engineers"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12372983");
$data = json_decode($json, true);
var_dump($data);