API для Freeland
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1779916046,
"app": {
"id": 1625562,
"name": "Soulmask",
"steam_id": 2646460,
"url": "soulmask"
},
"color": 0,
"connect": "217.146.80.165:6520",
"country": "GB",
"domain": null,
"game": 2646460,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11621302,
"ip": "217.146.80.165",
"language": "en",
"last_update": 1794600951,
"map": "Level01_Main",
"maxplayers": 10,
"name": "Freeland",
"numplayers": 0,
"official": null,
"points": 30,
"port": 6520,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7530,
"request": "217.146.80.165:7530",
"secured": true,
"status": true,
"steam_id": "90295979857292297",
"version": "1.0.0.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сити",
"description": null,
"disabled_modules": [],
"gamemode": "00",
"hidden": false,
"last_offline": 1793168076,
"last_online": 1794600951,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 343,
"wipe_period": null,
"AD_s": "217.146.80.165:6520:7530",
"GG_s": "20260410",
"Go_s": "-1",
"ID_s": "0",
"NO_s": "1.0.7",
"OL_s": "10",
"SU_s": "5AY8ZHIL75W6E6CTS5JXE4SBZ",
"CGM_i": "0",
"SEC_s": "17534038",
"pvp_i": "0",
"P2PADDR": "90295979857292297",
"P2PPORT": "6520",
"Season_i": "0",
"CONMETHOD": "Direct",
"Cluster_s": "none",
"WITHPSW_i": "0",
"DISTRICT_i": "0",
"OFFICIAL_i": "0",
"OWNINGNAME": "Freeland",
"listentype": "d",
"GREENGAME_s": "0",
"environment": "w",
"SESSIONFLAGS": "683",
"a2s_protocol": 17,
"MATCHTIMEOUT_f": "120.000000",
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11621302");
$data = json_decode($json, true);
var_dump($data);