Minecraft
API для A Minecraft Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/5881805json
{
"response": {
"steam_id": null,
"domain": "s2.goodminecraft.com",
"id": 5881805,
"ip": "78.46.91.171",
"port": 25572,
"query": 25572,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776458005,
"score": 0,
"last_online": 1776805242,
"icon": null,
"name": "A Minecraft Server",
"connect": "s2.goodminecraft.com:25572",
"request": "78.46.91.171:25572",
"map": null,
"gamemode": null,
"version": "1.20.1",
"numplayers": 2,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1725658885,
"last_update": 1776805242,
"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": 990,
"language": "de",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/5881805");
$data = json_decode($json, true);
var_dump($data);