API для Age of Dino (SU) Training #1
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1782791241,
"app": {
"id": 136,
"name": "The Isle",
"steam_id": 376210,
"url": "the-isle"
},
"color": 0,
"connect": "109.248.4.12:24315",
"country": "RU",
"domain": null,
"game": 376210,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11864777,
"ip": "109.248.4.12",
"language": "ru",
"last_update": 1790552166,
"map": "Isle V3",
"maxplayers": 100,
"name": "Age of Dino (SU) Training #1",
"numplayers": 0,
"official": null,
"points": 30,
"port": 24315,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 24316,
"request": "109.248.4.12:24316",
"secured": true,
"status": true,
"steam_id": "90293516844298250",
"version": "0.1.8.1",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Москва",
"description": null,
"disabled_modules": [],
"gamemode": "Sandbox",
"hidden": false,
"last_offline": 1789516328,
"last_online": 1790552166,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 314,
"wipe_period": null,
"P2PADDR": "90293516844298250",
"P2PPORT": "24315",
"SECURE_b": "true",
"CONMETHOD": "P2P",
"OWNINGNAME": "90293516844298250",
"listentype": "d",
"environment": "w",
"SESSIONFLAGS": "651",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11864777");
$data = json_decode($json, true);
var_dump($data);