Get Current User's Profile
GET
/me
category-users-profile
current user's username).
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.spotify.com/me' \
--header 'Authorization;'
响应示例响应示例
200 - 示例 1
{
"country": "string",
"display_name": "string",
"email": "string",
"explicit_content": {
"filter_enabled": true,
"filter_locked": true
},
"external_urls": {
"spotify": "string"
},
"followers": {
"href": "string",
"total": 0
},
"href": "string",
"id": "string",
"images": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"product": "string",
"type": "string",
"uri": "string"
}
请求参数
Header 参数
Authorization
必需
Reading the user's email address requires the
user-read-email
scope; reading country, product subscription level and explicit content settings requires the user-read-private
scope. See Using Scopes.返回响应
修改于 2021-08-02 10:49:33