API для The Root Beer Boys
JSON для программ, сайтов и прочего
text
json
{
"response": {
"coop": "0",
"sv_tags": "bots,dedicated",
"nextlevel": "",
"sv_cheats": "0",
"tv_enable": "0",
"deathmatch": "1",
"listentype": "d",
"sv_alltalk": "0",
"sv_contact": "",
"environment": "l",
"mp_winlimit": "0",
"sv_password": "0",
"sv_pausable": "0",
"tv_password": "1",
"a2s_protocol": 17,
"mp_fraglimit": "0",
"mp_timelimit": "0",
"sv_specnoclip": "0",
"mp_fadetoblack": "0",
"sv_voiceenable": "1",
"mp_friendlyfire": "0",
"players_complete": true,
"tv_relaypassword": "1",
"steam_id": "90292944219977752",
"domain": null,
"id": 16671047,
"ip": "94.23.68.241",
"port": 25008,
"query": 25008,
"project_id": null,
"color": 0,
"city": "Милан",
"description": null,
"game": 440,
"boosts": 1,
"last_offline": 1789716639,
"last_online": 1789683012,
"icon": null,
"name": "The Root Beer Boys",
"connect": "94.23.68.241:25008",
"request": "94.23.68.241:25008",
"map": "ctf_gorge",
"gamemode": "Team Fortress",
"version": "10828683",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "IT",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1789680503,
"last_update": 1789716639,
"ban_reason": null,
"banned": false,
"hidden": 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": 13654,
"language": "it",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16671047");
$data = json_decode($json, true);
var_dump($data);