Minecraft
InMine.ru #3 | 1.16-1.21 için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11156597json
{
"response": {
"steam_id": null,
"domain": "inmine.ru",
"id": 11156597,
"ip": "91.192.93.74",
"port": 19134,
"query": 19134,
"color": 0,
"city": "Veliky Novgorod",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1774747370,
"score": 0,
"last_online": 1776109823,
"icon": null,
"name": "InMine.ru #3 | 1.16-1.21",
"connect": "inmine.ru:19134",
"request": "91.192.93.74:19134",
"map": "InCore",
"gamemode": "Survival",
"version": "2.0",
"numplayers": 22,
"maxplayers": 150,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 36,
"add_date": 1772228028,
"last_update": 1776109823,
"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": 942,
"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/11156597");
$data = json_decode($json, true);
var_dump($data);