API для RavenHavens Gaming - The Ascension Journey S1
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794601559,
"app": {
"id": 67,
"name": "ARK: Survival Evolved",
"steam_id": 346110,
"url": "ark-survival-evolved"
},
"color": 0,
"connect": null,
"country": "US",
"domain": null,
"game": 346110,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20087862,
"ip": null,
"language": "en",
"last_update": 1794626078,
"map": "TheIsland",
"maxplayers": 70,
"name": "RavenHavens Gaming - The Ascension Journey S1",
"numplayers": 0,
"official": null,
"points": 0,
"port": null,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": null,
"request": null,
"secured": true,
"status": false,
"steam_id": "90296433699510289",
"version": "361.7",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Spanish Fork",
"description": null,
"disabled_modules": [],
"gamemode": "TestGameMode_C",
"hidden": false,
"last_offline": null,
"last_online": 1794626078,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": true,
"position_game": 7272,
"wipe_period": null,
"ModId_l": "0",
"P2PADDR": "90296433699510289",
"P2PPORT": "7777",
"LEGACY_i": "0",
"DayTime_s": "231",
"OWNINGNAME": "90296433699510289",
"listentype": "d",
"ClusterId_s": "haven123",
"environment": "w",
"Networking_i": "0",
"SESSIONFLAGS": "683",
"a2s_protocol": 17,
"MATCHTIMEOUT_f": "120.000000",
"NUMOPENPUBCONN": "70",
"SESSIONISPVE_i": "1",
"HASACTIVEMODS_i": "0",
"OFFICIALSERVER_i": "0",
"SEARCHKEYWORDS_s": "Custom",
"ServerPassword_b": "false",
"players_complete": true,
"CUSTOMSERVERNAME_s": "ravenhavens gaming - the ascension journey s1",
"ALLOWDOWNLOADCHARS_i": "0",
"ALLOWDOWNLOADITEMS_i": "0",
"SERVERUSESBATTLEYE_b": "false"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20087862");
$data = json_decode($json, true);
var_dump($data);