Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Please see below the most popular frequently asked questions.
Loading article...
Loading faqs...
Please see below the current ongoing issues which are under investigation.
Loading issue...
Loading ongoing issues...
As of 2/22/2024, the `https://api.spotify.com/v1/me/player/recently-played` endpoint is no longer returning the latest recently played tracks.
This is the full response (screenshot attached too so it's easier to spot):
{
"items": [
{
"track": {
"album": {
"album_type": "album",
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/33qOK5uJ8AR2xuQQAhHump"
},
"href": "https://api.spotify.com/v1/artists/33qOK5uJ8AR2xuQQAhHump",
"id": "33qOK5uJ8AR2xuQQAhHump",
"name": "Teddy Swims",
"type": "artist",
"uri": "spotify:artist:33qOK5uJ8AR2xuQQAhHump"
}
],
"available_markets": [...],
"external_urls": {
"spotify": "https://open.spotify.com/album/7nacKlk586eLRBSIsrk9DB"
},
"href": "https://api.spotify.com/v1/albums/7nacKlk586eLRBSIsrk9DB",
"id": "7nacKlk586eLRBSIsrk9DB",
"images": [
{
"height": 640,
"url": "https://i.scdn.co/image/ab67616d0000b2731a0323cc23419360a34a3ace",
"width": 640
},
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e021a0323cc23419360a34a3ace",
"width": 300
},
{
"height": 64,
"url": "https://i.scdn.co/image/ab67616d000048511a0323cc23419360a34a3ace",
"width": 64
}
],
"name": "I've Tried Everything But Therapy (Part 1)",
"release_date": "2023-09-15",
"release_date_precision": "day",
"total_tracks": 10,
"type": "album",
"uri": "spotify:album:7nacKlk586eLRBSIsrk9DB"
},
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/33qOK5uJ8AR2xuQQAhHump"
},
"href": "https://api.spotify.com/v1/artists/33qOK5uJ8AR2xuQQAhHump",
"id": "33qOK5uJ8AR2xuQQAhHump",
"name": "Teddy Swims",
"type": "artist",
"uri": "spotify:artist:33qOK5uJ8AR2xuQQAhHump"
}
],
"available_markets": [...],
"disc_number": 1,
"duration_ms": 210688,
"explicit": false,
"external_ids": {
"isrc": "USWB12302315"
},
"external_urls": {
"spotify": "https://open.spotify.com/track/17phhZDn6oGtzMe56NuWvj"
},
"href": "https://api.spotify.com/v1/tracks/17phhZDn6oGtzMe56NuWvj",
"id": "17phhZDn6oGtzMe56NuWvj",
"is_local": false,
"name": "Lose Control",
"popularity": 94,
"preview_url": "https://p.scdn.co/mp3-preview/51e51cc257e4186893b1923abf42fdaabbeeda37?cid=286951e89fc54a6796a6e725aaac3acf",
"track_number": 2,
"type": "track",
"uri": "spotify:track:17phhZDn6oGtzMe56NuWvj"
},
"played_at": "2024-02-22T20:41:08.793Z",
"context": {
"type": "playlist",
"external_urls": {
"spotify": "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
},
"href": "https://api.spotify.com/v1/playlists/37i9dQZF1DXcBWIGoYBM5M",
"uri": "spotify:playlist:37i9dQZF1DXcBWIGoYBM5M"
}
}
],
"next": "https://api.spotify.com/v1/me/player/recently-played?before=1708634468793&limit=1",
"cursors": {
"after": "1708634468793",
"before": "1708634468793"
},
"limit": 1,
"href": "https://api.spotify.com/v1/me/player/recently-played?limit=1"
}
Notice the
"played_at": "2024-02-22T20:41:08.793Z",
key... that's supposedly the last thing played for that user, but it's definitely not.
Any ideas? I don't see any recent changes that may have caused this but definitely not working for me.
Now the response is coming back completely empty.
When I try this, I do get a response, with items. One being from yesterday when I last listened to Spotify.. Is it still not working for you?
Thanks for replying. It looks like it was back to returning results.
Interestingly, after I read your reply, it was not returning the last few things I had listened to: I listened to a song on my phone Sunday morning. Then in the afternoon I listened to a couple dozen songs in my car (through the car's Spotify app) and didn't get any of those songs.
I just played something else on my computer's app and it was still not returning last played. When I opened my phone, it first showed that last song from Sunday morning. But after a second it started showing what I was playing on my computer's app.
Made me restart both apps (on phone and computer) and now it seems to be working.
I don't know if the apps got stale (maybe the car's app is stale too?), but what I find odd is that the 'now playing' endpoint has not failed at all during this whole time.
¯\_(ツ)_/¯
Magic.
Once again, thanks for your reply.
Seems to be that the issue is happening again.
There's over 15 songs I've played that are simply not registering on the API.
And just like last time, it is now returning a `null` response.
Hi guys,
I'm experiencing the same problem now, since May 31st. Neither my long-time working script nor the Spotify API Console provides any played tracks ("items" is null), though I've played quite a lot the last few days.
Did you find out any reason for this error?
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…