API dla Minecraft Multi-Platform S0 *Java v1.12.2 - v1.21.11 *Bedrock v1.21.111 - v26.0 Unlimited places!
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": "gateos.soloshin.su",
"id": 9846821,
"ip": "45.146.152.164",
"port": 25565,
"query": 25565,
"project_id": null,
"color": 0,
"city": "Vladivostok",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1778706730,
"last_online": 1780969315,
"icon": null,
"name": "Minecraft Multi-Platform S0 *Java v1.12.2 - v1.21.11 *Bedrock v1.21.111 - v26.0 Unlimited places!",
"connect": "gateos.soloshin.su:25565",
"request": "45.146.152.164:25565",
"map": null,
"gamemode": null,
"version": "1.12.2, 1.21.11, 1.21.111, 26.0",
"numplayers": 0,
"maxplayers": 1,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1753205351,
"last_update": 1780969315,
"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": 3209,
"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/9846821");
$data = json_decode($json, true);
var_dump($data);