API для ALTN
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794210539,
"app": {
"id": 11540,
"name": "SCUM",
"steam_id": 513710,
"url": "scum"
},
"color": 0,
"connect": "5.36.59.53:7779",
"country": "OM",
"domain": null,
"game": 513710,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19861886,
"ip": "5.36.59.53",
"language": "ar",
"last_update": 1794308413,
"map": null,
"maxplayers": 7,
"name": "ALTN",
"numplayers": 0,
"official": false,
"points": 0,
"port": 7779,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7779,
"request": "5.36.59.53:7779",
"secured": null,
"status": false,
"steam_id": null,
"version": "1.2.1.1.106289",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Seeb",
"description": null,
"disabled_modules": [],
"gamemode": "community-direct",
"hidden": false,
"last_offline": 1794308413,
"last_online": 1794221641,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 11265,
"wipe_period": null,
"type": 0,
"build": 106289,
"extraFlags": 0,
"statusFlags": 0,
"nameHeaderRaw": "10f319010102",
"unknownStatusFlags": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19861886");
$data = json_decode($json, true);
var_dump($data);