API dla Now <inf>% gay! https://discord.gg/AmArDSBfFK
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": "twilightshollow.org",
"id": 11750564,
"ip": "93.202.200.178",
"port": 25565,
"query": 25565,
"project_id": null,
"color": 0,
"city": "Wiesbaden",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1780519125,
"last_online": 1780679459,
"icon": null,
"name": "Now <inf>% gay! https://discord.gg/AmArDSBfFK",
"connect": "twilightshollow.org:25565",
"request": "93.202.200.178:25565",
"map": null,
"gamemode": null,
"version": "1.21.11",
"numplayers": 8,
"maxplayers": 200,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1780519125,
"last_update": 1780679459,
"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": 1628,
"language": "de",
"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/11750564");
$data = json_decode($json, true);
var_dump($data);