基础数据API

API地址

https://api.mcsunnyside.com/game/mojang/minecraft/profile/sunnyside

使用说明

基础数据API提供了一个您可以获取玩家playerdata, advancements和stats的地方。

本API数据会每隔8小时更新一次。如果遇到服务器重启,将会立即更新。

本API数据会由CDN缓存,您可能遇到数据不一致的问题。

API介绍

Index API

请求文件:/root.info

描述:获取一个包含玩家总计数、最后更新时间和UUID<->Username的映射表。

返回:

{
	"total": 1,
	"lastupdate": 1584970058378,
	"mapping": {
		"uuid": "username",
		"0000-0000-0000-000000-0000": "foobar"
	}
}
PlayerData API

请求文件: /playerdata/<uuid>.dat

描述:获取指定UUID的玩家的玩家数据 NBT 文件。

返回:

<无法预览 Minecraft NBT 格式文件>
Advancements API

请求文件: /advancements/<uuid>.json

描述:获取指定UUID的玩家的进度数据 JSON 文件。

返回:

{
	"minecraft:recipes/decorations/smoker": {
		"criteria": {
			"has_furnace": "2019-09-15 21:21:09 +0800"
		},
		"done": true
	},
	"minecraft:recipes/decorations/diorite_wall": {
		"criteria": {
			"has_diorite": "2019-09-15 21:20:51 +0800"
		},
		"done": true
	},
	"minecraft:adventure/adventuring_time": {
		"criteria": {
			"minecraft:forest": "2019-09-15 20:48:28 +0800",
			"minecraft:desert_hills": "2019-09-15 21:02:44 +0800",
			"minecraft:desert": "2019-09-15 20:52:30 +0800",
			"minecraft:jungle": "2019-09-15 21:12:07 +0800",
			"minecraft:birch_forest": "2019-09-15 21:11:46 +0800",
			"minecraft:badlands": "2019-09-15 21:13:07 +0800",
			"minecraft:beach": "2019-09-15 21:00:18 +0800",
			"minecraft:river": "2019-09-15 20:51:10 +0800",
			"minecraft:savanna": "2019-09-15 20:51:29 +0800",
			"minecraft:plains": "2019-09-15 20:40:40 +0800"
		},
		"done": false
	},
	"minecraft:recipes/building_blocks/polished_andesite_slab_from_andesite_stonecutting": {
		"criteria": {
			"has_andesite": "2019-09-15 21:22:21 +0800"
		},
		"done": true
	},
	"minecraft:recipes/building_blocks/cyan_concrete_powder": {
		"criteria": {
			"has_sand": "2019-09-15 20:52:39 +0800"
		},
		"done": true
	},
	"DataVersion": 1976
}
Stats API

请求文件: /stats/<uuid>.json

描述:获取指定UUID的玩家的统计数据 JSON 文件。

返回:

{
	"stats": {
		"minecraft:crafted": {
			"minecraft:cooked_beef": 6
		},
		"minecraft:used": {
			"minecraft:dark_oak_log": 12
		},
		"minecraft:custom": {
			"minecraft:time_since_rest": 24892
		},
		"minecraft:broken": {
			"minecraft:stone_pickaxe": 1
		},
		"minecraft:mined": {
			"minecraft:furnace": 2,
			"minecraft:iron_ore": 28
		},
		"minecraft:killed": {
			"minecraft:skeleton": 1
		},
		"minecraft:picked_up": {
			"minecraft:stick": 5
		}
	},
	"DataVersion": 1976
}