API для IronPunch.org #1 | Hell on Earth
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1772229125,
"app": {
"id": 51,
"name": "Killing Floor 2",
"steam_id": 232090,
"url": "killing-floor-2"
},
"color": 0,
"connect": "2.248.92.60:7778",
"country": "SE",
"domain": null,
"game": 232090,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11172901,
"ip": "2.248.92.60",
"language": "sv",
"last_update": 1791412579,
"map": "KF-NUKED",
"maxplayers": 6,
"name": "IronPunch.org #1 | Hell on Earth",
"numplayers": 0,
"official": null,
"points": 0,
"port": 7778,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27036,
"request": "2.248.92.60:27036",
"secured": true,
"status": false,
"steam_id": "90294036287114256",
"version": "1150",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Турсбю",
"description": null,
"disabled_modules": [],
"gamemode": "Killing Floor 2",
"hidden": false,
"last_offline": 1791412579,
"last_online": 1791172594,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1423,
"wipe_period": null,
"Mode": "0",
"Region": "USCentral",
"bCustom": "False",
"NumWaves": "4",
"PingInMs": "0",
"ZedCount": "10",
"GameState": "OGS_NoSession",
"bMutators": "False",
"BotPlayers": "1",
"Difficulty": "1",
"JoinString": "2.248.92.60:7778",
"bUsesStats": "True",
"listentype": "l",
"CurrentWave": "4",
"MaxZedCount": "100",
"bInProgress": "True",
"bIsLanMatch": "False",
"environment": "l",
"MatchQuality": "0.000000",
"a2s_protocol": 17,
"bCloudServer": "False",
"bIsDedicated": "False",
"NumSpectators": "0",
"bAllowInvites": "True",
"bServerExiled": "False",
"bUsesPresence": "True",
"OwningPlayerId": "0",
"OwningPlayerName": "IronPunch.org #1 | Hell on Earth",
"bNoSeasonalSkins": "False",
"bShouldAdvertise": "True",
"bUsesArbitration": "False",
"players_complete": true,
"bRequiresPassword": "False",
"SecondsDeallocated": "0",
"SteamEngineVersion": "10897",
"WeeklySelectorIndex": "-1",
"bAntiCheatProtected": "True",
"NumPublicConnections": "6",
"bAllowJoinInProgress": "True",
"NumPrivateConnections": "0",
"bAllowJoinViaPresence": "True",
"bAvailableForTakeover": "False",
"NumOpenPublicConnections": "5",
"SecondsDeallocatedBucket": "0",
"NumOpenPrivateConnections": "0",
"bAllowJoinViaPresenceFriendsOnly": "False"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11172901");
$data = json_decode($json, true);
var_dump($data);