API dla SEASON 2 IS LIVE ☠ ʟɪꜰᴇѕᴛᴇᴀʟ + ѕᴜʀᴠɪᴠᴀʟ + ᴘʀᴀᴄᴛɪᴄᴇ ☠.
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": "play.ignitemc.fun",
"id": 11764060,
"ip": "172.236.185.89",
"port": 25565,
"query": 25565,
"project_id": null,
"color": 0,
"city": "Mumbai",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1780932252,
"last_online": 1780960998,
"icon": null,
"name": "SEASON 2 IS LIVE ☠ ʟɪꜰᴇѕᴛᴇᴀʟ + ѕᴜʀᴠɪᴠᴀʟ + ᴘʀᴀᴄᴛɪᴄᴇ ☠.",
"connect": "play.ignitemc.fun:25565",
"request": "172.236.185.89:25565",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 5,
"maxplayers": 500,
"bots": 0,
"secured": null,
"private": null,
"country": "IN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780932252,
"last_update": 1780960998,
"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": 1926,
"language": "hi",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11764060");
$data = json_decode($json, true);
var_dump($data);