Minecraft
API für ✿ ᴘᴜɴᴋᴄʀᴀꜰᴛ ɴᴇᴛᴡᴏʀᴋ ✿ ᴅᴀᴍɴ ꜱᴏɴ, ᴡʜᴇʀᴇ'ᴅ ʏᴏᴜ ꜰɪɴᴅ ᴛʜɪꜱ?
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11156111json
{
"response": {
"steam_id": null,
"domain": "play.punkcraft.org",
"id": 11156111,
"ip": "38.190.133.79",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Toronto",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776569036,
"score": 0,
"last_online": 1776809435,
"icon": null,
"name": "✿ ᴘᴜɴᴋᴄʀᴀꜰᴛ ɴᴇᴛᴡᴏʀᴋ ✿ ᴅᴀᴍɴ ꜱᴏɴ, ᴡʜᴇʀᴇ'ᴅ ʏᴏᴜ ꜰɪɴᴅ ᴛʜɪꜱ?",
"connect": "play.punkcraft.org:25565",
"request": "38.190.133.79:25565",
"map": null,
"gamemode": null,
"version": "Velocity 1.7.2-26.1.1",
"numplayers": 1,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "CA",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1772227988,
"last_update": 1776809435,
"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": 1122,
"language": "en",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11156111");
$data = json_decode($json, true);
var_dump($data);