API для MrGulbis Server X3
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286639179227144",
"domain": null,
"id": 11756736,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Riga",
"description": null,
"game": 541300,
"owner": null,
"boosts": 1,
"last_offline": 1780734260,
"last_online": 1780733519,
"icon": null,
"name": "MrGulbis Server X3",
"connect": null,
"request": null,
"map": "Black_Island",
"gamemode": "Survive The Nights",
"version": "1.3.0.0",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "LV",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780696391,
"last_update": 1780734260,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 61,
"language": "lv",
"parked": true,
"app": {
"id": 12556,
"steam_id": 541300,
"name": "Survive the Nights",
"url": "survive-the-nights"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11756736");
$data = json_decode($json, true);
var_dump($data);