API для Oh Yeah Its ARK
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794370286,
"app": {
"id": 67,
"name": "ARK: Survival Evolved",
"steam_id": 346110,
"url": "ark-survival-evolved"
},
"color": 0,
"connect": "154.12.249.30:30800",
"country": "US",
"domain": null,
"game": 346110,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19943954,
"ip": "154.12.249.30",
"language": "en",
"last_update": 1794756273,
"map": "Ragnarok",
"maxplayers": 10,
"name": "Oh Yeah Its ARK",
"numplayers": 0,
"official": null,
"points": 30,
"port": 30800,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30815,
"request": "154.12.249.30:30815",
"secured": false,
"status": true,
"steam_id": "90297480244414472",
"version": "361.7",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Orangeburg",
"description": null,
"disabled_modules": [],
"gamemode": "AG_TestGameMode_GenericMod_C",
"hidden": false,
"last_offline": 1794590090,
"last_online": 1794756273,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 6577,
"wipe_period": null,
"MOD0_s": "3412251317:1D20198F402E903D5D719EA085A4E47E",
"MOD1_s": "731604991:E3E2E41644CFFFCC8E42AA8B8D748948",
"MOD2_s": "751991809:08D51D7E4078F9DF0580B281589CC6D5",
"MOD3_s": "954051935:899679C549F03431BD904EAC0890A2A7",
"ModId_l": "0",
"P2PADDR": "90297480244414472",
"P2PPORT": "30800",
"LEGACY_i": "0",
"DayTime_s": "114",
"OWNINGNAME": "90297480244414472",
"listentype": "d",
"environment": "w",
"Networking_i": "0",
"SESSIONFLAGS": "171",
"a2s_protocol": 17,
"MATCHTIMEOUT_f": "120.000000",
"NUMOPENPUBCONN": "10",
"SESSIONISPVE_i": "1",
"HASACTIVEMODS_i": "1",
"OFFICIALSERVER_i": "0",
"SEARCHKEYWORDS_s": "Custom",
"ServerPassword_b": "true",
"players_complete": true,
"CUSTOMSERVERNAME_s": "oh yeah its ark",
"ALLOWDOWNLOADCHARS_i": "1",
"ALLOWDOWNLOADITEMS_i": "1",
"SERVERUSESBATTLEYE_b": "false"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19943954");
$data = json_decode($json, true);
var_dump($data);