Minecraft
Лучший политический сервер SuperPolit için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11488173json
{
"response": {
"steam_id": null,
"domain": "ru8.mc-serv.ru",
"id": 11488173,
"ip": "217.106.107.128",
"port": 28503,
"query": 28503,
"color": 0,
"city": "Moscow",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776039111,
"score": 5,
"last_online": 1776088224,
"icon": null,
"name": "Лучший политический сервер SuperPolit",
"connect": "ru8.mc-serv.ru:28503",
"request": "217.106.107.128:28503",
"map": null,
"gamemode": null,
"version": "Paper 1.20.6",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 2,
"points": 32,
"add_date": 1775315865,
"last_update": 1776088224,
"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": 1526,
"language": "ru",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11488173");
$data = json_decode($json, true);
var_dump($data);