API для facuarmo's server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1754230655,
"app": {
"id": 9,
"name": "Half-Life",
"steam_id": 70,
"url": "half-life"
},
"color": 0,
"connect": "168.75.78.187:27017",
"country": "BR",
"domain": null,
"game": 70,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 9951249,
"ip": "168.75.78.187",
"language": "pt",
"last_update": 1790392432,
"map": "crossfire_crazy",
"maxplayers": 32,
"name": "facuarmo's server",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27017,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27017,
"request": "168.75.78.187:27017",
"secured": true,
"status": true,
"steam_id": null,
"version": "1.1.2.7/Stdio",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сан-Паулу",
"description": null,
"disabled_modules": [],
"gamemode": "Half-Life",
"hidden": false,
"last_offline": 1782369221,
"last_online": 1790392432,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 180,
"wipe_period": null,
"coop": "0",
"sv_aim": "0",
"pausable": "0",
"sv_bounce": "1",
"sv_cheats": "0",
"deathmatch": "1",
"listentype": "d",
"mp_logfile": "1",
"sv_alltalk": "0",
"sv_contact": "",
"sv_gravity": "800",
"sv_maxrate": "0",
"sv_minrate": "0",
"sv_proxies": "1",
"sv_version": "1.1.2.2/Stdio,48,909",
"amx_nextmap": "subtransit",
"environment": "l",
"hlg_setting": "11110111",
"hlg_version": "1.9.n10",
"mp_chattime": "10",
"mp_teamlist": "hgrunt;scientist",
"mp_teamplay": "0",
"mp_timeleft": "949",
"reu_version": "0.1.67",
"sv_friction": "4",
"sv_maxspeed": "320",
"sv_password": "0",
"sv_stepsize": "18",
"a2s_protocol": 48,
"amx_language": "en",
"amx_timeleft": "15:50",
"edgefriction": "2",
"mp_footsteps": "1",
"mp_fraglimit": "0",
"mp_fragsleft": "0",
"mp_timelimit": "20",
"sv_logblocks": "0",
"sv_stopspeed": "100",
"sv_uploadmax": "0.5",
"mp_falldamage": "0",
"mp_flashlight": "0",
"mp_weaponstay": "0",
"sv_accelerate": "10",
"decalfrequency": "30",
"hlg_cfgversion": "HLG 1.9 (League)",
"mp_consistency": "1",
"sv_allowupload": "1",
"sv_clienttrace": "1",
"sv_voiceenable": "1",
"amxmodx_version": "1.8.2",
"max_queries_sec": "1",
"metamod_version": "1.20",
"mp_forcerespawn": "1",
"mp_friendlyfire": "0",
"allow_spectators": "0.0",
"hlg_checkversion": "1.80.05",
"mp_allowmonsters": "0",
"mp_autocrosshair": "1",
"players_complete": true,
"sv_airaccelerate": "10",
"sv_waterfriction": "1",
"max_queries_window": "1",
"sv_wateraccelerate": "10",
"amx_client_languages": "1",
"max_queries_sec_global": "1"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9951249");
$data = json_decode($json, true);
var_dump($data);