官方API

请求URL:

  • https://api.mojang.com/users/profiles/minecraft/用户名

请求方式:

  • GET

返回示例:

{"id":"1aa95b7148fc4636962be95de5071da6","name":"Zi_Min"}

请求示例:

curl https://api.mojang.com/users/profiles/minecraft/Zi_Min | Select -ExpandProperty Content
{"id":"1aa95b7148fc4636962be95de5071da6","name":"Zi_Min"}

注:请求时用户名不区分大小写