Get User's Profile
users.retrieve_profile(struser_id) -> UserRetrieveProfileResponse
GET/users/{user_id}
Get public profile information about a Spotify user.
Parameters
Returns
Get User's Profile
import os
from spotted import Spotted
client = Spotted(
access_token=os.environ.get("SPOTIFY_ACCESS_TOKEN"), # This is the default and can be omitted
)
response = client.users.retrieve_profile(
"smedjan",
)
print(response.id){
"id": "id",
"display_name": "display_name",
"external_urls": {
"published": true,
"spotify": "spotify"
},
"followers": {
"href": "href",
"published": true,
"total": 0
},
"href": "href",
"images": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
],
"published": true,
"type": "user",
"uri": "uri"
}Returns Examples
{
"id": "id",
"display_name": "display_name",
"external_urls": {
"published": true,
"spotify": "spotify"
},
"followers": {
"href": "href",
"published": true,
"total": 0
},
"href": "href",
"images": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
],
"published": true,
"type": "user",
"uri": "uri"
}