API dla 1.21 Ironclad Network -> Factions sʜᴏᴘs - ᴀᴜᴄᴛɪᴏɴ ʜᴏᴜsᴇ - ᴍᴄᴍᴍᴏ
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": "pvp.ironcladnetwork.us",
"id": 8564736,
"ip": "23.139.82.174",
"port": 25555,
"query": 25555,
"color": 0,
"city": "Sterling",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1773646369,
"last_online": 1780629132,
"icon": null,
"name": "1.21 Ironclad Network -> Factions sʜᴏᴘs - ᴀᴜᴄᴛɪᴏɴ ʜᴏᴜsᴇ - ᴍᴄᴍᴍᴏ",
"connect": "pvp.ironcladnetwork.us:25555",
"request": "23.139.82.174:25555",
"map": null,
"gamemode": null,
"version": "1.21, 1.21.11",
"numplayers": 0,
"maxplayers": 311,
"bots": 0,
"secured": null,
"private": null,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1744789364,
"last_update": 1780629132,
"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": 2672,
"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/8564736");
$data = json_decode($json, true);
var_dump($data);