API для Lambda Fortress: Extended
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90289291225538566",
"domain": null,
"id": 12393092,
"ip": "198.72.235.95",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Ontario",
"description": null,
"game": 243750,
"owner": null,
"boosts": 1,
"last_offline": 1784744682,
"last_online": 1784530394,
"icon": null,
"name": "Lambda Fortress: Extended",
"connect": "198.72.235.95:27015",
"request": "198.72.235.95:27015",
"map": "d2_prison_06",
"gamemode": null,
"version": "5394425",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": true,
"private": null,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784530396,
"last_update": 1784744682,
"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": 974,
"language": "en",
"parked": false,
"app": {
"id": 159,
"steam_id": 243750,
"name": "Source SDK Base 2013 Multiplayer",
"url": "source-sdk-base-2013-multiplayer"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12393092");
$data = json_decode($json, true);
var_dump($data);