Counter-Strike
API для ► ЗОЛОТАЯ ГВАРДИЯ DUST2 |͇̿P͇̿U͇̿B͇̿|
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/6696json
{
"response": {
"steam_id": null,
"domain": null,
"id": 6696,
"ip": "46.174.54.49",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1774018317,
"score": null,
"last_online": 1776189011,
"icon": null,
"name": "► ЗОЛОТАЯ ГВАРДИЯ DUST2 |͇̿P͇̿U͇̿B͇̿|",
"connect": "46.174.54.49:27015",
"request": "46.174.54.49:27015",
"map": "de_dust2",
"gamemode": "█ БЕСПЛАТНЫЙ VIP █",
"version": "1.1.2.7/Stdio",
"numplayers": 31,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 99,
"add_date": 1501541239,
"last_update": 1776189011,
"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": 304,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/6696");
$data = json_decode($json, true);
var_dump($data);