API для Lambda Fortress: Extended
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": false,
"gametype": "misc,tc",
"os": "w",
"product": "sdk2013mp",
"region": -1,
"steam_id": "90289413097246722",
"domain": null,
"id": 12493396,
"ip": "94.50.231.19",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Tyumen",
"description": null,
"game": 243750,
"owner": null,
"boosts": 1,
"last_offline": 1785402043,
"last_online": 1784721000,
"icon": null,
"name": "Lambda Fortress: Extended",
"connect": "94.50.231.19:27015",
"request": "94.50.231.19:27015",
"map": "d2_prison_01",
"gamemode": null,
"version": "5394425",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": false,
"private": null,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784715241,
"last_update": 1785402043,
"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": 1034,
"language": "ru",
"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/12493396");
$data = json_decode($json, true);
var_dump($data);