API для Stoneworks 2 | In Memory of RB | AutoAuth | www.stoneworks.live
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1783771612,
"app": {
"id": 13818,
"name": "Stormworks: Build and Rescue",
"steam_id": 573090,
"url": "stormworks-build-and-rescue"
},
"color": 0,
"connect": "147.135.138.225:25567",
"country": "FR",
"domain": null,
"game": 573090,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11945540,
"ip": "147.135.138.225",
"language": "fr",
"last_update": 1794764174,
"map": "Career",
"maxplayers": 16,
"name": "Stoneworks 2 | In Memory of RB | AutoAuth | www.stoneworks.live",
"numplayers": 14,
"official": null,
"points": 125,
"port": 25567,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 25568,
"request": "147.135.138.225:25568",
"secured": false,
"status": true,
"steam_id": "90297485731431448",
"version": "1.0.0.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 14,
"city": "Рубе",
"description": null,
"disabled_modules": [],
"gamemode": "Stormworks",
"hidden": false,
"last_offline": 1794412741,
"last_online": 1794764174,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1,
"wipe_period": null,
"listentype": "d",
"environment": "w",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11945540");
$data = json_decode($json, true);
var_dump($data);