API для jstrnad-abiotic
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794155933,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "84.242.74.110:7777",
"country": "CZ",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19825194,
"ip": "84.242.74.110",
"language": "cs",
"last_update": 1794680183,
"map": "ReactorsAll",
"maxplayers": 6,
"name": "jstrnad-abiotic",
"numplayers": 2,
"official": null,
"points": 67,
"port": 7777,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "84.242.74.110:27015",
"secured": false,
"status": true,
"steam_id": "90297306203254797",
"version": "1.0.0.6",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Брно",
"description": null,
"disabled_modules": [],
"gamemode": "Abiotic Factor",
"hidden": false,
"last_offline": 1794217152,
"last_online": 1794680183,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 18,
"wipe_period": null,
"SN_i": "2",
"MI0_s": "76561198262999780_+_|000222ff218a4708a8628d0524413abd-!-76561199248599304_+_|0002b095873e406b96013576b40d41e0-!-",
"SN0_s": "jstrnad",
"SN1_s": "abiotic",
"P2PADDR": "90297306203254797",
"P2PPORT": "7777",
"CONMETHOD": "P2P",
"GamePort_i": "7777",
"Hardcore_b": "false",
"OWNINGNAME": "jstrnad-abiotic",
"bHasMods_b": "false",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "0Z82V",
"environment": "w",
"MaxPlayers_i": "6",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "64ffc7ede8cb4703bf7cbb9a99fe61d1",
"players_complete": true,
"ModifiedRuleset_i": "0",
"AllowLocalOnlyMods_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19825194");
$data = json_decode($json, true);
var_dump($data);