Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

Web API - Recently Played Next Link Response is Empty

Web API - Recently Played Next Link Response is Empty

My Question or Issue:

I am currently attempting to retrieve all of my recently played tracks up to the start of the day using the get-recently-played endpoint. I am able to get the first 50 tracks, but when attempting to use the "next" property provided in the response I receive an empty "items" list even though the status is 200.

I believe it was working before (maybe a couple weeks ago), not sure if there is something I missed. Any help would be appreciated.

 

Example for Better Context:

 

1st Request:

https://api.spotify.com/v1/me/player/recently-played?before=1594097999999&limit=50

1st Response (partial paste):

Status: 200 OK

{

 ...

      }
    }
  ],
  "cursors": {
    "after": "1594094900468",
    "before": "1594064630449"
  },
  "limit": 50,
}
 
2nd Request ("next" property):
2nd Response (full paste):
Status: 200 OK
{
  "items": [],
  "next": null,
  "cursors": null,
  "limit": 50,
}
 
Feel free to let me know if more information is needed.
Thank you!
Reply
1 Reply

I am also having this issue using spotify-web-api-node. The first call return the first 50 tracks but using the "next" URL provided responds with a 200 code and empty/null values in "data". 

Suggested posts

Let's introduce ourselves!

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…

ModeratorStaff / Moderator/ 5 years ago  in Social & Random