Minecraft
API для -=ATM 10 | V: 5.4 | PVE=- -=Gyrax Servers | 24/7 | Friendly Staff=-
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/7679165json
{
"response": {
"steam_id": null,
"domain": "atm10.gyrax.net",
"id": 7679165,
"ip": "185.206.149.214",
"port": 25566,
"query": 25566,
"color": 0,
"city": "Solihull",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1775841129,
"score": 0,
"last_online": 1776083424,
"icon": null,
"name": "-=ATM 10 | V: 5.4 | PVE=- -=Gyrax Servers | 24/7 | Friendly Staff=-",
"connect": "atm10.gyrax.net:25566",
"request": "185.206.149.214:25566",
"map": null,
"gamemode": null,
"version": "1.21.1",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1739571425,
"last_update": 1776083424,
"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": 1844,
"language": "en",
"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/7679165");
$data = json_decode($json, true);
var_dump($data);