I’m working with Python to fetch data from Spotify’s web API. My goal is to extract track details like title, performer, and album from my personal playlists.
Everything works fine for playlists under 100 songs, but I’m stuck with larger collections because the API only returns 100 tracks per request.
I found that the endpoint /playlists/{playlist_id}/tracks
accepts an offset
parameter. My understanding is that setting offset=100
should give me tracks 101-200, then offset=200
for tracks 201-300, and so on.
However, when I try this approach, every request keeps returning the same initial 100 tracks regardless of the offset value I use. It seems like the parameter isn’t working as expected.
Has anyone encountered this issue before? What am I missing here?