API dla [PG] #1 Русский Официальный Сервер 1.63
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "85568392923862282",
"domain": null,
"id": 83223,
"ip": "37.230.162.84",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": "",
"game": 4000,
"owner": 199527,
"boosts": 1,
"last_offline": 1780901659,
"last_online": 1780911026,
"icon": null,
"name": "[PG] #1 Русский Официальный Сервер 1.63",
"connect": "37.230.162.84:27015",
"request": "37.230.162.84:27015",
"map": "gm_site19_premiumgaming",
"gamemode": "Breach",
"version": "2026.04.29",
"numplayers": 4,
"maxplayers": 45,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 1,
"points": 62,
"add_date": 1521501447,
"last_update": 1780911026,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 84,
"language": "ru",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": {
"username": "dubrovski",
"avatar": "9ccc205a-8307-4597-b357-a9e25831e864.webp"
},
"mods": [
{
"id": 1793,
"name": "PvP"
},
{
"id": 2229,
"name": "Respawn"
},
{
"id": 2284,
"name": "SCP RP"
},
{
"id": 2327,
"name": "Garry's mod Horror Coop"
},
{
"id": 2328,
"name": "Pve"
}
],
"disabled_modules": [
"chat"
]
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/83223");
$data = json_decode($json, true);
var_dump($data);