API для Standard 1.6 Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789744701,
"app": {
"id": 3,
"name": "Counter-Strike",
"steam_id": 10,
"url": "counter-strike"
},
"color": 0,
"connect": "138.124.124.252:27081",
"country": "SE",
"domain": null,
"game": 10,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16693211,
"ip": "138.124.124.252",
"language": "sv",
"last_update": 1789953822,
"map": "de_dust2",
"maxplayers": 32,
"name": "Standard 1.6 Server",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27081,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27081,
"request": "138.124.124.252:27081",
"secured": true,
"status": true,
"steam_id": "90292986864760835",
"version": "1.1.2.2/Stdio",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Стокгольм",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1789950208,
"last_online": 1789953822,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 10415,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "valve",
"gametype": null,
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16693211");
$data = json_decode($json, true);
var_dump($data);