API dla Q1X.RU × Пятый сезон Мир, где хочется быть
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": "q1x.ru",
"id": 9696207,
"ip": "92.63.189.233",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Nizhnevartovsk",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1778496817,
"last_online": 1780602128,
"icon": null,
"name": "Q1X.RU × Пятый сезон Мир, где хочется быть",
"connect": "q1x.ru:25565",
"request": "92.63.189.233:25565",
"map": null,
"gamemode": null,
"version": "26.1.2",
"numplayers": 0,
"maxplayers": 3333,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1751741582,
"last_update": 1780602128,
"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": 3132,
"language": "ru",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/9696207");
$data = json_decode($json, true);
var_dump($data);