API для -The OG Servers- Half-Life Rally
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1774979575,
"app": {
"id": 113,
"name": "Half-Life Rally",
"steam_id": 9000018,
"url": "half-life-rally"
},
"color": 0,
"connect": "47.233.98.90:27020",
"country": "US",
"domain": null,
"game": 9000018,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11486870,
"ip": "47.233.98.90",
"language": "en",
"last_update": 1791256630,
"map": "gt_speedtest",
"maxplayers": 16,
"name": "-The OG Servers- Half-Life Rally",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27020,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27020,
"request": "47.233.98.90:27020",
"secured": true,
"status": true,
"steam_id": "90293561340042256",
"version": "1.1.2.2",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Mexico",
"description": null,
"disabled_modules": [],
"gamemode": "HL Rally",
"hidden": false,
"last_offline": 1790528846,
"last_online": 1791256630,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1,
"wipe_period": null,
"coop": "0",
"pausable": "0",
"sv_bounce": "1",
"sv_cheats": "0",
"deathmatch": "1",
"listentype": "d",
"mp_logfile": "1",
"sv_contact": "",
"sv_gravity": "520",
"sv_maxrate": "0",
"sv_minrate": "0",
"sv_proxies": "1",
"environment": "w",
"mp_chattime": "10",
"mp_timeleft": "647",
"sv_friction": "0.25",
"sv_maxspeed": "3000",
"sv_password": "0",
"sv_stepsize": "4",
"a2s_protocol": 48,
"edgefriction": "2",
"mp_footsteps": "0",
"mp_fraglimit": "0.000000",
"mp_fragsleft": "0",
"mp_timelimit": "12",
"sv_logblocks": "0",
"sv_stopspeed": "100",
"sv_uploadmax": "0.5",
"mp_falldamage": "1",
"mp_flashlight": "1",
"mp_weaponstay": "0",
"sv_accelerate": "0.085",
"decalfrequency": "30",
"mp_consistency": "1",
"sv_allowupload": "1",
"sv_clienttrace": "3.5",
"sv_voiceenable": "1",
"max_queries_sec": "1",
"mp_forcerespawn": "0",
"mp_friendlyfire": "1",
"allow_spectators": "1.0",
"mp_allowmonsters": "0",
"mp_autocrosshair": "1",
"players_complete": true,
"sv_airaccelerate": "0.1",
"sv_allow_autoaim": "0",
"sv_allow_shaders": "0",
"sv_waterfriction": "1",
"sv_uploadmaxcount": "10",
"max_queries_window": "1",
"sv_wateraccelerate": "10",
"max_queries_sec_global": "1"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11486870");
$data = json_decode($json, true);
var_dump($data);