Minecraft
API для --=[CrafterWars]=-- [] Version 1.21.11 New IP: crafterwars.com
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/452703json
{
"response": {
"steam_id": null,
"domain": "crafterwars.com",
"id": 452703,
"ip": "164.132.201.22",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776747836,
"score": null,
"last_online": 1776829891,
"icon": null,
"name": "--=[CrafterWars]=-- [] Version 1.21.11 New IP: crafterwars.com",
"connect": "crafterwars.com:25565",
"request": "164.132.201.22:25565",
"map": null,
"gamemode": "FML",
"version": "BungeeCord 1.8.x-1.21.x",
"numplayers": 0,
"maxplayers": 6767,
"bots": 0,
"secured": null,
"private": null,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1630780357,
"last_update": 1776829891,
"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": 1625,
"language": "fr",
"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/452703");
$data = json_decode($json, true);
var_dump($data);