<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic API paging issue, 'next' page is incorrect in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533053#M8606</link>
    <description>&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm using the Spotify API to pull back a list of liked tracks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been working fine until today, but it got stuck where the `next` page is actually the previous page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I'm calling&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://api.spotify.com/v1/me/tracks?offset=50&amp;amp;limit=50" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me/tracks?offset=50&amp;amp;limit=50&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Which returns my second page of liked tracks (offset of 50)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But in the response to this, the `next` element of the JSON response has this&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    "limit" : 50,
    "next" : "https://api.spotify.com/v1/me/tracks?offset=0&amp;amp;limit=50",
    "offset" : 50,
    "previous" : null,
    "total" : 188&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;This indicates that the next page has an offset of 0 (so starting at the beginning again)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Which takes me back to the first page.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This causes an endless loop where my code was constantly loading the first and second pages.&lt;/DIV&gt;</description>
    <pubDate>Mon, 03 Apr 2023 10:52:00 GMT</pubDate>
    <dc:creator>rsouthward</dc:creator>
    <dc:date>2023-04-03T10:52:00Z</dc:date>
    <item>
      <title>API paging issue, 'next' page is incorrect</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533053#M8606</link>
      <description>&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm using the Spotify API to pull back a list of liked tracks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been working fine until today, but it got stuck where the `next` page is actually the previous page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I'm calling&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://api.spotify.com/v1/me/tracks?offset=50&amp;amp;limit=50" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me/tracks?offset=50&amp;amp;limit=50&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Which returns my second page of liked tracks (offset of 50)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But in the response to this, the `next` element of the JSON response has this&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    "limit" : 50,
    "next" : "https://api.spotify.com/v1/me/tracks?offset=0&amp;amp;limit=50",
    "offset" : 50,
    "previous" : null,
    "total" : 188&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;This indicates that the next page has an offset of 0 (so starting at the beginning again)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Which takes me back to the first page.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This causes an endless loop where my code was constantly loading the first and second pages.&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Apr 2023 10:52:00 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533053#M8606</guid>
      <dc:creator>rsouthward</dc:creator>
      <dc:date>2023-04-03T10:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: API paging issue, 'next' page is incorrect</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533092#M8607</link>
      <description>&lt;P&gt;Same issue here, endpoint has been functioning correctly till about 12:00 local time, now seeing the same behaviour where next parameter is stuck / toggling between the 'first page' and 'second page'.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 11:37:38 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533092#M8607</guid>
      <dc:creator>Knifevillage</dc:creator>
      <dc:date>2023-04-03T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: API paging issue, 'next' page is incorrect</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533099#M8608</link>
      <description>&lt;P&gt;Also, if you try to load the 3rd page manually, by passing in offset=100, limit=50, the 'next' page comes back with offset=50, so it seems that the next page is always the 'previous' page, and 'previous' is never populated.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 11:50:37 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533099#M8608</guid>
      <dc:creator>rsouthward</dc:creator>
      <dc:date>2023-04-03T11:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: API paging issue, 'next' page is incorrect</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533100#M8609</link>
      <description>&lt;P&gt;FYI: Issue is not reproducible in the use case of getting all tracks of a 'regular' user playlist, i.e. the following endpoint:&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="https://api.spotify.com/v1/playlists/playlist_Iid/etc" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/playlists/playlist_id/etc&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 11:54:34 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533100#M8609</guid>
      <dc:creator>Knifevillage</dc:creator>
      <dc:date>2023-04-03T11:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: API paging issue, 'next' page is incorrect</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533498#M8629</link>
      <description>&lt;P&gt;Thanks for the clear and detailed bug report&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/21438873"&gt;@Knifevillage&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/24767272"&gt;@rsouthward&lt;/a&gt;! We looked into it on our side and I think the problem is now fixed. Would you mind letting me know if you are still experiencing the problem?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 04:24:39 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533498#M8629</guid>
      <dc:creator>spotifyjosh</dc:creator>
      <dc:date>2023-04-04T04:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: API paging issue, 'next' page is incorrect</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533579#M8634</link>
      <description>&lt;P&gt;@&lt;A class="" href="https://community.spotify.com/t5/user/viewprofilepage/user-id/24767272" target="_self"&gt;&lt;SPAN class=""&gt;rsouthward&lt;/SPAN&gt;&lt;/A&gt;, @&lt;A class="" href="https://community.spotify.com/t5/user/viewprofilepage/user-id/23171169" target="_self"&gt;&lt;SPAN class=""&gt;spotifyjosh&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;Checked it, seems like it is working properly again. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 06:43:40 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5533579#M8634</guid>
      <dc:creator>Knifevillage</dc:creator>
      <dc:date>2023-04-04T06:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: API paging issue, 'next' page is incorrect</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5632052#M10631</link>
      <description>&lt;P&gt;im having this same issue, its driving me mad at this point&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 18:31:27 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-paging-issue-next-page-is-incorrect/m-p/5632052#M10631</guid>
      <dc:creator>Ayoooo2</dc:creator>
      <dc:date>2023-09-05T18:31:27Z</dc:date>
    </item>
  </channel>
</rss>

