API dla [RU] Astronavt PvEvP
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286584239499279",
"domain": null,
"id": 3462623,
"ip": "92.38.222.26",
"port": 2332,
"query": 2333,
"color": 0,
"city": "Moscow",
"description": "",
"game": 221100,
"owner": 45981,
"boosts": 1,
"last_offline": 1780470419,
"last_online": 1780563629,
"icon": null,
"name": "[RU] Astronavt PvEvP",
"connect": "92.38.222.26:2332",
"request": "92.38.222.26:2333",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.163047",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1710583814,
"last_update": 1780563629,
"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": 3633,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "kolyasnikovaleksandr",
"avatar": "01df181e-e36c-403f-a249-68388951fbb0.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/3462623");
$data = json_decode($json, true);
var_dump($data);