API dla GAVR - Namalsk Vanila Plus| 3PP | Bot | Craft | Vipe 16.12
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286410469985306",
"domain": null,
"id": 11602381,
"ip": "78.107.191.97",
"port": 2426,
"query": 27036,
"color": 0,
"city": "Volgograd",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1780544610,
"last_online": 1780174281,
"icon": null,
"name": "GAVR - Namalsk Vanila Plus| 3PP | Bot | Craft | Vipe 16.12",
"connect": "78.107.191.97:2426",
"request": "78.107.191.97:27036",
"map": "namalsk",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779359279,
"last_update": 1780544610,
"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": 10391,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11602381");
$data = json_decode($json, true);
var_dump($data);