Counter-Strike: Global Offensive
API для netherflame.com EU #2 | [128] Ranked 5v5 PUG | !ws !rank !music
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11252101json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11252101,
"ip": "206.168.215.119",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Stockholm",
"description": null,
"game": 4465480,
"owner": null,
"boosts": 1,
"last_offline": 1775820690,
"score": 0,
"last_online": 1774953661,
"icon": null,
"name": "netherflame.com EU #2 | [128] Ranked 5v5 PUG | !ws !rank !music",
"connect": "206.168.215.119:27015",
"request": "206.168.215.119:27015",
"map": "de_vertigo",
"gamemode": "Counter-Strike: Global Offensive",
"version": null,
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "SE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1773245995,
"last_update": 1775820690,
"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": 3317,
"language": "sv",
"parked": false,
"app": {
"id": 1629104,
"steam_id": 4465480,
"name": "Counter-Strike: Global Offensive",
"url": "counter-strike-global-offensive"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11252101");
$data = json_decode($json, true);
var_dump($data);