Team Fortress 2
API для [RU] Адская Дрочильня
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11143437json
{
"response": {
"steam_id": "85568392936178536",
"domain": null,
"id": 11143437,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"hHyW-AFmsV\",\"type\":\"paragraph\",\"data\":{\"text\":\"Сервер с RTD, Таунтами, и другими всякими плюшками, заходите к нам, тут весело!!\"}}]",
"game": 440,
"owner": 171362,
"boosts": 1,
"last_offline": 1777484255,
"score": 5,
"last_online": 1776593412,
"icon": null,
"name": "[RU] Адская Дрочильня",
"connect": null,
"request": null,
"map": "cp_orange_n_rc3",
"gamemode": "Team Fortress",
"version": "10515055",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1771870370,
"last_update": 1777484255,
"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": 2049,
"language": "ru",
"parked": true,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": {
"username": "no_a_youtuber",
"avatar": "f5a9ee2b-05ec-47b6-adff-2b6a3772c92a.jpg",
"last_online": 1772136009
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11143437");
$data = json_decode($json, true);
var_dump($data);