API для Rojek gameplay
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1791980168,
"app": {
"id": 67,
"name": "ARK: Survival Evolved",
"steam_id": 346110,
"url": "ark-survival-evolved"
},
"color": 0,
"connect": "176.57.169.3:29100",
"country": "DE",
"domain": null,
"game": 346110,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18170189,
"ip": "176.57.169.3",
"language": "de",
"last_update": 1794750338,
"map": "ScorchedEarth",
"maxplayers": 10,
"name": "Rojek gameplay",
"numplayers": 1,
"official": null,
"points": 34,
"port": 29100,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 29115,
"request": "176.57.169.3:29115",
"secured": true,
"status": true,
"steam_id": "90296830821146630",
"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": 1793127489,
"last_online": 1794750338,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2028,
"wipe_period": null,
"ModId_l": "0",
"P2PADDR": "90296830821146630",
"P2PPORT": "29100",
"LEGACY_i": "0",
"DayTime_s": "72",
"OWNINGNAME": "90296830821146630",
"listentype": "d",
"environment": "w",
"Networking_i": "0",
"SESSIONFLAGS": "683",
"a2s_protocol": 17,
"MATCHTIMEOUT_f": "120.000000",
"NUMOPENPUBCONN": "9",
"SESSIONISPVE_i": "0",
"HASACTIVEMODS_i": "0",
"OFFICIALSERVER_i": "0",
"SEARCHKEYWORDS_s": "Custom",
"ServerPassword_b": "true",
"players_complete": true,
"CUSTOMSERVERNAME_s": "rojek gameplay",
"ALLOWDOWNLOADCHARS_i": "1",
"ALLOWDOWNLOADITEMS_i": "1",
"SERVERUSESBATTLEYE_b": "false"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18170189");
$data = json_decode($json, true);
var_dump($data);