API для [FR] NathanBrown - Serveur FR
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792681727,
"app": {
"id": 18576,
"name": "SCP: Secret Laboratory",
"steam_id": 700330,
"url": "scp-secret-laboratory"
},
"color": 0,
"connect": "54.37.245.45:5542",
"country": "GB",
"domain": null,
"game": 700330,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18822691,
"ip": "54.37.245.45",
"language": "en",
"last_update": 1794948347,
"map": "Facility",
"maxplayers": 20,
"name": "[FR] NathanBrown - Serveur FR",
"numplayers": 0,
"official": false,
"points": 30,
"port": 5542,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 5542,
"request": "54.37.245.45:5542",
"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": "Лондон",
"description": null,
"disabled_modules": [],
"gamemode": "SCP: Secret Laboratory",
"hidden": false,
"last_offline": 1794428318,
"last_online": 1794948347,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 942,
"wipe_period": null,
"info": "<span style=\"color:#FFFFFF\">[</span><span style=\"color:#2463FF\">FR</span><span style=\"color:#FFFFFF\">]</span> <span style=\"color:#2463FF\">NathanBrown</span> - <span style=\"color:#FF3030\">Serveur FR</span>",
"modded": false,
"pastebin": "JV9U1Kfs",
"serverId": 108137,
"techList": [],
"accountId": 38126,
"whitelist": false,
"friendlyFire": false,
"officialClass": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18822691");
$data = json_decode($json, true);
var_dump($data);