Stormworks: Build and Rescue
API для Big Berts Basement
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/9732120json
{
"response": {
"steam_id": "90284991499970563",
"domain": null,
"id": 9732120,
"ip": "198.244.200.129",
"port": 25464,
"query": 25465,
"color": 0,
"city": "London",
"description": null,
"game": 573090,
"owner": null,
"boosts": 1,
"last_offline": 1774898529,
"score": 0,
"last_online": 1777246910,
"icon": null,
"name": "Big Berts Basement",
"connect": "198.244.200.129:25464",
"request": "198.244.200.129:25465",
"map": "Career",
"gamemode": "Stormworks",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": true,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1752145712,
"last_update": 1777246910,
"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": 17,
"language": "en",
"parked": false,
"app": {
"id": 13818,
"steam_id": 573090,
"name": "Stormworks: Build and Rescue",
"url": "stormworks-build-and-rescue"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9732120");
$data = json_decode($json, true);
var_dump($data);