Minecraft
API für StoneBlock2 GrandGear
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/9395531json
{
"response": {
"steam_id": null,
"domain": "grandgear.top",
"id": 9395531,
"ip": "103.113.68.118",
"port": 25111,
"query": 25111,
"color": 0,
"city": "Moscow",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1775983274,
"score": 0,
"last_online": 1776005448,
"icon": null,
"name": "StoneBlock2 GrandGear",
"connect": "grandgear.top:25111",
"request": "103.113.68.118:25111",
"map": null,
"gamemode": "FML",
"version": "Mohist 1.12.2",
"numplayers": 2,
"maxplayers": 30,
"bots": 0,
"secured": false,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1748178093,
"last_update": 1776005448,
"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": 1392,
"language": "ru",
"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/9395531");
$data = json_decode($json, true);
var_dump($data);