API для Turd Island Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793638772,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "195.213.232.167:7797",
"country": "GB",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19563562,
"ip": "195.213.232.167",
"language": "en",
"last_update": 1794737691,
"map": "Voussoir",
"maxplayers": 6,
"name": "Turd Island Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 7797,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27035,
"request": "195.213.232.167:27035",
"secured": false,
"status": false,
"steam_id": "90297465173109769",
"version": "1.0.0.6",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Bordon",
"description": null,
"disabled_modules": [],
"gamemode": "Abiotic Factor",
"hidden": false,
"last_offline": 1794737691,
"last_online": 1794693978,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2897,
"wipe_period": null,
"SN_i": "3",
"MI0_s": "76561197996520151_+_|0002118bfe9a48e6b9534f0e6c35ba4c-!-76561198006915552_+_|000211adedac4c32b626a928e0157096-!-",
"SN0_s": "turd",
"SN1_s": "island",
"SN2_s": "server",
"P2PADDR": "90297465173109769",
"P2PPORT": "7797",
"CONMETHOD": "P2P",
"GamePort_i": "7797",
"Hardcore_b": "false",
"OWNINGNAME": "Turd Island Server",
"bHasMods_b": "false",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "V8OU0",
"environment": "l",
"MaxPlayers_i": "6",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "486ca9af75eb403fb3cb3e391dc0f6ec",
"players_complete": true,
"ModifiedRuleset_i": "2",
"AllowLocalOnlyMods_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19563562");
$data = json_decode($json, true);
var_dump($data);