API для The Final Abiotic
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1787809349,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "45.137.247.54:30600",
"country": "DE",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14129610,
"ip": "45.137.247.54",
"language": "de",
"last_update": 1794685489,
"map": "Residence",
"maxplayers": 4,
"name": "The Final Abiotic",
"numplayers": 0,
"official": null,
"points": 30,
"port": 30600,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30615,
"request": "45.137.247.54:30615",
"secured": false,
"status": true,
"steam_id": "90297452367470623",
"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": 1789038227,
"last_online": 1794685489,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 999,
"wipe_period": null,
"SN_i": "3",
"SN0_s": "the",
"SN1_s": "final",
"SN2_s": "abiotic",
"P2PADDR": "90297452367470623",
"P2PPORT": "30600",
"CONMETHOD": "P2P",
"GamePort_i": "30600",
"Hardcore_b": "false",
"OWNINGNAME": "The Final Abiotic",
"bHasMods_b": "false",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "AWFW8",
"environment": "w",
"MaxPlayers_i": "4",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "1310b8656e23452b85cdd8bd2b4c24e4",
"players_complete": true,
"ModifiedRuleset_i": "0",
"AllowLocalOnlyMods_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14129610");
$data = json_decode($json, true);
var_dump($data);