Counter-Strike: Source
API для c400.ru CS:Source Server [ex Dust2 only] v9540945 [HLstatsX]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/48787json
{
"response": {
"steam_id": "90284298871406605",
"domain": null,
"id": 48787,
"ip": "46.174.54.22",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1775515926,
"score": null,
"last_online": 1776108011,
"icon": null,
"name": "c400.ru CS:Source Server [ex Dust2 only] v9540945 [HLstatsX]",
"connect": "46.174.54.22:27015",
"request": "46.174.54.22:27015",
"map": "de_dust2",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 51,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 109,
"add_date": 1521463221,
"last_update": 1776108011,
"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": 122,
"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/48787");
$data = json_decode($json, true);
var_dump($data);