API для ADMIRALM4*'s Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "w",
"region": -1,
"product": "cstrike",
"gametype": null,
"dedicated": false,
"steam_id": "90291219546657814",
"domain": null,
"id": 13842469,
"ip": "159.146.96.99",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Amasya",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1787566831,
"last_online": 1787131800,
"icon": null,
"name": "ADMIRALM4*'s Server",
"connect": "159.146.96.99:27015",
"request": "159.146.96.99:27015",
"map": "de_inferno",
"gamemode": null,
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": null,
"country": "TR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1787131886,
"last_update": 1787566831,
"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": 7811,
"language": "tr",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13842469");
$data = json_decode($json, true);
var_dump($data);