API для QuarkLive
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1780179150,
"app": {
"id": 138,
"name": "Quake Live",
"steam_id": 282440,
"url": "quake-live"
},
"color": 0,
"connect": "217.154.192.171:27000",
"country": "DE",
"domain": null,
"game": 282440,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11665505,
"ip": "217.154.192.171",
"language": "de",
"last_update": 1794118586,
"map": "repent",
"maxplayers": 16,
"name": "QuarkLive",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27000,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27000,
"request": "217.154.192.171:27000",
"secured": true,
"status": false,
"steam_id": "90295892712115224",
"version": "1069 linux-x64 Jun 3 2016 20:53:50",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Берлин",
"description": null,
"disabled_modules": [],
"gamemode": "Clan Arena",
"hidden": false,
"last_offline": 1794118586,
"last_online": 1793773660,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 984,
"wipe_period": null,
"dmflags": "28",
"protocol": "91",
"teamsize": "0",
"fraglimit": "50",
"g_factory": "ca",
"g_gravity": "800",
"g_loadout": "0",
"timelimit": "0",
"g_gametype": "4",
"g_instaGib": "0",
"g_overtime": "0",
"g_redScore": "",
"listentype": "d",
"mercylimit": "0",
"roundlimit": "10",
"scorelimit": "150",
"environment": "l",
"g_blueScore": "",
"g_gameState": "PRE_GAME",
"g_voteFlags": "0",
"a2s_protocol": 17,
"capturelimit": "8",
"g_itemHeight": "35",
"g_itemTimers": "1",
"g_teamSizeMin": "1",
"g_factoryTitle": "Clan Arena",
"g_timeoutCount": "0",
"roundtimelimit": "180",
"g_weaponRespawn": "5",
"g_customSettings": "0",
"g_levelStartTime": "1793688019",
"g_startingHealth": "200",
"players_complete": true,
"sv_privateClients": "0",
"g_adElimScoreBonus": "2",
"g_freezeRoundDelay": "4000",
"g_quadDamageFactor": "3",
"g_roundWarmupDelay": "10000",
"g_teamForceBalance": "1",
"g_adTouchScoreBonus": "1",
"g_adCaptureScoreBonus": "3"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11665505");
$data = json_decode($json, true);
var_dump($data);