API для rat cave abiotic
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794324501,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "58.174.39.111:7778",
"country": "AU",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19912843,
"ip": "58.174.39.111",
"language": "en",
"last_update": 1794666290,
"map": "MFPumpsFixed",
"maxplayers": 6,
"name": "rat cave abiotic",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7778,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "58.174.39.111:27015",
"secured": false,
"status": true,
"steam_id": "90296959052690455",
"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": 1794377986,
"last_online": 1794666290,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2214,
"wipe_period": null,
"SN_i": "3",
"MI0_s": "76561198173908259_+_|000238aeef6a44738d087ea99afe41f1-!-",
"SN0_s": "rat",
"SN1_s": "cave",
"SN2_s": "abiotic",
"P2PADDR": "90296959052690455",
"P2PPORT": "7778",
"CONMETHOD": "P2P",
"GamePort_i": "7778",
"Hardcore_b": "false",
"OWNINGNAME": "rat cave abiotic",
"bHasMods_b": "false",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "FQHQI",
"environment": "w",
"MaxPlayers_i": "6",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "adb4904234ec418ebbc3d04431500e5f",
"players_complete": true,
"ModifiedRuleset_i": "0",
"AllowLocalOnlyMods_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19912843");
$data = json_decode($json, true);
var_dump($data);