API для sD - Simply Destroy Server #2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1772229280,
"app": {
"id": 138,
"name": "Quake Live",
"steam_id": 282440,
"url": "quake-live"
},
"color": 0,
"connect": "46.205.245.175:33961",
"country": "PL",
"domain": null,
"game": 282440,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11173301,
"ip": "46.205.245.175",
"language": "pl",
"last_update": 1790487295,
"map": "monsoon",
"maxplayers": 8,
"name": "sD - Simply Destroy Server #2",
"numplayers": 0,
"official": null,
"points": 30,
"port": 33961,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 33961,
"request": "46.205.245.175:33961",
"secured": true,
"status": true,
"steam_id": "90292557007968259",
"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": "Duel",
"hidden": false,
"last_offline": 1787089823,
"last_online": 1790487295,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 415,
"wipe_period": null,
"dmflags": "0",
"protocol": "91",
"teamsize": "0",
"fraglimit": "50",
"g_factory": "q4",
"g_gravity": "800",
"g_loadout": "0",
"timelimit": "10",
"g_gametype": "1",
"g_instaGib": "0",
"g_overtime": "120",
"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": "0",
"g_teamSizeMin": "1",
"g_factoryTitle": "Quake 4",
"g_timeoutCount": "0",
"roundtimelimit": "180",
"g_weaponRespawn": "5",
"g_customSettings": "0",
"g_levelStartTime": "1790404178",
"g_startingHealth": "100",
"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/11173301");
$data = json_decode($json, true);
var_dump($data);