Minecraft
API pentru ASTRAL CLUB | #1 Minecraft Network k ꜱᴇᴀꜱᴏɴ 𝟦 |ʟɪꜰᴇꜱᴛᴇᴀʟ x ɪɴꜰᴜꜱᴇ k
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/9531153json
{
"response": {
"steam_id": null,
"domain": "play.astralclub.xyz",
"id": 9531153,
"ip": "51.195.47.43",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Limburg an der Lahn",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1775221890,
"score": 0,
"last_online": 1776842520,
"icon": null,
"name": "ASTRAL CLUB | #1 Minecraft Network k ꜱᴇᴀꜱᴏɴ 𝟦 |ʟɪꜰᴇꜱᴛᴇᴀʟ x ɪɴꜰᴜꜱᴇ k",
"connect": "play.astralclub.xyz:25565",
"request": "51.195.47.43:25565",
"map": null,
"gamemode": "FML",
"version": "XCord 1.7.x - 1.21.x",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1750538728,
"last_update": 1776842520,
"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": 2851,
"language": "de",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/9531153");
$data = json_decode($json, true);
var_dump($data);