Counter-Strike: Source
API для |ЛИХИЕ 90-Х| [PUBLIC] [v34] 18+
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/206531json
{
"response": {
"steam_id": null,
"domain": null,
"id": 206531,
"ip": "46.174.49.29",
"port": 27208,
"query": 27208,
"color": 0,
"city": "Moscow",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1774018317,
"score": null,
"last_online": 1776117018,
"icon": null,
"name": "|ЛИХИЕ 90-Х| [PUBLIC] [v34] 18+",
"connect": "46.174.49.29:27208",
"request": "46.174.49.29:27208",
"map": "cs_office",
"gamemode": "★★★▌IN-TERI.RU ▌★★★",
"version": "1.0.0.34",
"numplayers": 11,
"maxplayers": 38,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 49,
"add_date": 1582844981,
"last_update": 1776117018,
"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": 393,
"language": "ru",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/206531");
$data = json_decode($json, true);
var_dump($data);