spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
981 stars 79 forks source link

Issue with GET /v1/me/player/recently-played paging #1405

Open MikePenhall opened 4 years ago

MikePenhall commented 4 years ago

Issue found on December 4th 2019.

Endpoint(s):

Scope(s):

Steps to reproduce:

  1. Open the API Console
  2. Go to the console for get-recently-playedand request user-read-recently-played scope
  3. Enter type=track, limit=50 then submit
  4. Results come back with 50 tracks and paging info that looks like:
    "next": "https://api.spotify.com/v1/me/player/recently-played?before=1575332662799&limit=50&type=track",
    "cursors": {
    "after": "1575405194517",
    "before": "1575332662799"
    },
    "limit": 50,
    "href": "https://api.spotify.com/v1/me/player/recently-played?limit=50&type=track"
  5. Go back to the console and add before=1575332662799 with other fields the same and submit.

Expected behaviour:

The previous 50 recently played tracks are returned.

Actual behaviour:

An empty result set is returned that looks like:

{
  "items": [],
  "next": null,
  "cursors": null,
  "limit": 50,
  "href": "https://api.spotify.com/v1/me/player/recently-played?before=1575332662799&limit=50&type=track"
}

Points

MikePenhall commented 4 years ago

Anyone else having a similar issue?

dominik-meissner commented 4 years ago

50 is the max overall you can retrieve.