API для HUN | The Coalition Roleplay
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1791111405,
"app": {
"id": 18576,
"name": "SCP: Secret Laboratory",
"steam_id": 700330,
"url": "scp-secret-laboratory"
},
"color": 0,
"connect": "148.251.69.216:7789",
"country": "HU",
"domain": null,
"game": 700330,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17716584,
"ip": "148.251.69.216",
"language": "de",
"last_update": 1794949539,
"map": "Facility",
"maxplayers": 60,
"name": "HUN | The Coalition Roleplay",
"numplayers": 0,
"official": false,
"points": 30,
"port": 7789,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7789,
"request": "148.251.69.216:7789",
"secured": false,
"status": true,
"steam_id": 0,
"version": "14.2.9",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Falkenstein",
"description": null,
"disabled_modules": [],
"gamemode": "SCP: Secret Laboratory",
"hidden": false,
"last_offline": 1792177671,
"last_online": 1794949539,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 812,
"wipe_period": null,
"info": "<span style=\"color:#ff0000\">H</span>U<span style=\"color:#008000\">N</span> | <span style=\"color:#555555\">The Coalition Roleplay</span>",
"modded": true,
"pastebin": "3xw2qLtp",
"serverId": 102664,
"techList": [
{
"id": 162579967,
"name": "EXILED",
"version": "9.15.3"
}
],
"accountId": 31866,
"whitelist": false,
"friendlyFire": true,
"officialClass": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17716584");
$data = json_decode($json, true);
var_dump($data);