API dla ELCA Vanilla 1.21.4
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 5979884,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "[{\"id\":\"EJA3YplUPp\",\"type\":\"paragraph\",\"data\":{\"text\":\"Ванильное выживание Minecraft 1.21\\n\\nЗапрещён гриф!\"}}]",
"game": 9000034,
"owner": 84374,
"boosts": 1,
"last_offline": 1750457064,
"last_online": 1740207026,
"icon": null,
"name": "ELCA Vanilla 1.21.4",
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 1,
"bots": 0,
"secured": false,
"private": null,
"country": "BB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1726576950,
"last_update": 1750457064,
"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": 5586,
"language": "en",
"parked": true,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "shketov",
"avatar": "76e36761-5ef4-477a-9e04-64f146ed64bd.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/5979884");
$data = json_decode($json, true);
var_dump($data);