Minecraft
API для Survival Economy & New Mode CPVP!
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11156179json
{
"response": {
"steam_id": null,
"domain": "lithterrasmp.fun",
"id": 11156179,
"ip": "45.59.168.52",
"port": 19132,
"query": 19132,
"color": 0,
"city": "Singapore",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776811353,
"score": 0,
"last_online": 1776688840,
"icon": null,
"name": "Survival Economy & New Mode CPVP!",
"connect": "lithterrasmp.fun:19132",
"request": "45.59.168.52:19132",
"map": "Another Geyser server.",
"gamemode": "Survival",
"version": "26.10",
"numplayers": 17,
"maxplayers": 500,
"bots": 0,
"secured": null,
"private": null,
"country": "SG",
"status": false,
"votes": 0,
"points": 1,
"add_date": 1772227991,
"last_update": 1776811353,
"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": 5207,
"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/11156179");
$data = json_decode($json, true);
var_dump($data);