API для Team Fortress
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794002870,
"app": {
"id": 123,
"name": "Team Fortress 2 Classified",
"steam_id": 3545060,
"url": "team-fortress-2-classified"
},
"color": 0,
"connect": "46.147.15.190:27015",
"country": "RU",
"domain": null,
"game": 3545060,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19737372,
"ip": "46.147.15.190",
"language": "ru",
"last_update": 1794777928,
"map": "vip_harbor",
"maxplayers": 24,
"name": "Team Fortress",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "46.147.15.190:27015",
"secured": true,
"status": false,
"steam_id": "90296896625571858",
"version": "5204",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Пермь",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794777928,
"last_online": 1794002870,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 223,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "tf2classified",
"gametype": "respawntimes",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19737372");
$data = json_decode($json, true);
var_dump($data);