Minecraft
API für Vanilla Minecraft Survival
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10462396json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10462396,
"ip": "216.173.68.5",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Riga",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1775778161,
"score": 0,
"last_online": 1776098441,
"icon": null,
"name": "Vanilla Minecraft Survival",
"connect": "216.173.68.5:25565",
"request": "216.173.68.5:25565",
"map": null,
"gamemode": "FML",
"version": "BungeeCord 1.8.x-1.21.x",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": null,
"country": "LV",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1760475384,
"last_update": 1776098441,
"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": 3570,
"language": "lv",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/10462396");
$data = json_decode($json, true);
var_dump($data);