API для Abiotic Factory
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1788912277,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "71.211.137.136:7777",
"country": "US",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 15676365,
"ip": "71.211.137.136",
"language": "en",
"last_update": 1791057376,
"map": "Botanical",
"maxplayers": 6,
"name": "Abiotic Factory",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7777,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "71.211.137.136:27015",
"secured": false,
"status": true,
"steam_id": "90292777137990669",
"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": 1788912277,
"last_online": 1791057376,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1880,
"wipe_period": null,
"SN_i": "2",
"SN0_s": "abiotic",
"SN1_s": "factory",
"P2PADDR": "90292777137990669",
"P2PPORT": "7777",
"CONMETHOD": "P2P",
"GamePort_i": "7777",
"Hardcore_b": "false",
"OWNINGNAME": "Abiotic Factory",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "4R2JJ",
"environment": "w",
"MaxPlayers_i": "6",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "496d6cc604514f7f85c2009a776eeebd",
"players_complete": true,
"ModifiedRuleset_i": "1"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/15676365");
$data = json_decode($json, true);
var_dump($data);