API dla Abyssal Haven SMP | discord.gg/abyssalhaven
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": "play.abyssalhaven.online",
"id": 11750352,
"ip": "50.114.4.3",
"port": 19132,
"query": 19132,
"color": 0,
"city": "Lethbridge",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1780519119,
"last_online": 1780561256,
"icon": null,
"name": "Abyssal Haven SMP | discord.gg/abyssalhaven",
"connect": "play.abyssalhaven.online:19132",
"request": "50.114.4.3:19132",
"map": "˙⋆✮ Start your cozy journey through the depths ✮⋆˙",
"gamemode": "Survival",
"version": "26.20",
"numplayers": 1,
"maxplayers": 60,
"bots": 0,
"secured": null,
"private": null,
"country": "CA",
"status": true,
"votes": 0,
"points": 31,
"add_date": 1780519119,
"last_update": 1780561256,
"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": 1701,
"language": "en",
"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/11750352");
$data = json_decode($json, true);
var_dump($data);