API для Ark Server van Dennis
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1788057296,
"app": {
"id": 67,
"name": "ARK: Survival Evolved",
"steam_id": 346110,
"url": "ark-survival-evolved"
},
"color": 0,
"connect": "176.57.173.125:28800",
"country": "DE",
"domain": null,
"game": 346110,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14222975,
"ip": "176.57.173.125",
"language": "de",
"last_update": 1791254706,
"map": "LostIsland",
"maxplayers": 20,
"name": "Ark Server van Dennis",
"numplayers": 0,
"official": null,
"points": 30,
"port": 28800,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28815,
"request": "176.57.173.125:28815",
"secured": true,
"status": true,
"steam_id": "90294109629327387",
"version": "361.7",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": null,
"disabled_modules": [],
"gamemode": "TestGameMode_C",
"hidden": false,
"last_offline": 1791243965,
"last_online": 1791254706,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 8432,
"wipe_period": null,
"MOD0_s": "731604991:E3E2E41644CFFFCC8E42AA8B8D748948",
"MOD1_s": "1204667931:D5ED161E4C493F8B026A2A98CA4C1926",
"MOD2_s": "2724167243:94D2035742C2CD5F9ED212B57D1075E3",
"MOD3_s": "902548451:B9AC689C42E2DB6E50EF4D8FBAE4EC3F",
"ModId_l": "0",
"P2PADDR": "90294109629327387",
"P2PPORT": "28800",
"LEGACY_i": "0",
"DayTime_s": "1257",
"OWNINGNAME": "90294109629327387",
"listentype": "d",
"environment": "w",
"Networking_i": "0",
"SESSIONFLAGS": "683",
"a2s_protocol": 17,
"MATCHTIMEOUT_f": "120.000000",
"NUMOPENPUBCONN": "20",
"SESSIONISPVE_i": "1",
"HASACTIVEMODS_i": "1",
"OFFICIALSERVER_i": "0",
"SEARCHKEYWORDS_s": "Custom",
"ServerPassword_b": "true",
"players_complete": true,
"CUSTOMSERVERNAME_s": "ark server van dennis",
"ALLOWDOWNLOADCHARS_i": "0",
"ALLOWDOWNLOADITEMS_i": "0",
"SERVERUSESBATTLEYE_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14222975");
$data = json_decode($json, true);
var_dump($data);