WebApi Get Currently Playing Track fails with 404 Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hey, I've tried to use https://developer.spotify.com/documentation/web-api/reference/get-the-users-currently-playing-track but I receive the following content:
{
"error" : {
"status" : 404,
"message" : "Invalid username"
}
}
instead of
{
"context": {
"type": "playlist",
"href": "https://api.spotify.com/v1/playlists/5SfsuZkhPp0MFVbPFshT5L",
"external_urls": {
"spotify": "https://open.spotify.com/playlist/5SfsuZkhPp0MFVbPFshT5L"
},
"uri": "spotify:playlist:5SfsuZkhPp0MFVbPFshT5L"
},
"timestamp": 1744893576278,
"progress_ms": 136,
"is_playing": false,
"item": {
"album": {
"album_type": "album",
"total_tracks": 48,
"available_markets": [
"AT",
"DE"
],
"external_urls": {
"spotify": "https://open.spotify.com/album/6QrJvzm8ZWxCV5Lje4Cjmw"
},
"href": "https://api.spotify.com/v1/albums/6QrJvzm8ZWxCV5Lje4Cjmw",
"id": "6QrJvzm8ZWxCV5Lje4Cjmw",
"images": [
{
"url": "https://i.scdn.co/image/ab67616d0000b27315e3c3424572a2baa648bad3",
"height": 640,
"width": 640
},
{
"url": "https://i.scdn.co/image/ab67616d00001e0215e3c3424572a2baa648bad3",
"height": 300,
"width": 300
},
{
"url": "https://i.scdn.co/image/ab67616d0000485115e3c3424572a2baa648bad3",
"height": 64,
"width": 64
}
],
"name": "Welcome to DJ Antoine - Remixed",
"release_date": "2011-10-28",
"release_date_precision": "day",
"type": "album",
"uri": "spotify:album:6QrJvzm8ZWxCV5Lje4Cjmw",
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/6yTYR09WCvsgdnurDW4WQo"
},
"href": "https://api.spotify.com/v1/artists/6yTYR09WCvsgdnurDW4WQo",
"id": "6yTYR09WCvsgdnurDW4WQo",
"name": "DJ Antoine",
"type": "artist",
"uri": "spotify:artist:6yTYR09WCvsgdnurDW4WQo"
}
]
},
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/6yTYR09WCvsgdnurDW4WQo"
},
"href": "https://api.spotify.com/v1/artists/6yTYR09WCvsgdnurDW4WQo",
"id": "6yTYR09WCvsgdnurDW4WQo",
"name": "DJ Antoine",
"type": "artist",
"uri": "spotify:artist:6yTYR09WCvsgdnurDW4WQo"
},
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/2vJfU7tjaOVFyh7oZF8L0J"
},
"href": "https://api.spotify.com/v1/artists/2vJfU7tjaOVFyh7oZF8L0J",
"id": "2vJfU7tjaOVFyh7oZF8L0J",
"name": "The Beatshakers",
"type": "artist",
"uri": "spotify:artist:2vJfU7tjaOVFyh7oZF8L0J"
}
],
"available_markets": [
"AT",
"DE"
],
"disc_number": 1,
"duration_ms": 191090,
"explicit": false,
"external_ids": {
"isrc": "DEN061101853"
},
"external_urls": {
"spotify": "https://open.spotify.com/track/2CbuG4ib5Wg5q8AEhVgll7"
},
"href": "https://api.spotify.com/v1/tracks/2CbuG4ib5Wg5q8AEhVgll7",
"id": "2CbuG4ib5Wg5q8AEhVgll7",
"name": "Ma Chรฉrie - DJ Antoine Vs Mad Mark 2K12 Radio Edit",
"popularity": 49,
"preview_url": null,
"track_number": 1,
"type": "track",
"uri": "spotify:track:2CbuG4ib5Wg5q8AEhVgll7",
"is_local": false
},
"currently_playing_type": "track",
"actions": {
"disallows": {
"pausing": true
}
}
}
any idea how it could work?
Labels:
- Labels:
-
webapi
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page