[GH-ISSUE #153] All playlist songs #99

Closed
opened 2026-02-27 19:26:02 +03:00 by kerem · 1 comment
Owner

Originally created by @LorenzNickel on GitHub (Feb 22, 2019).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/153

With this endpoint I only got I think the first 50 songs in the given playlist. Is there either a possibility to change the amount of songs I want to get or add an offset to the request to be able iterate over the playlist?

Originally created by @LorenzNickel on GitHub (Feb 22, 2019). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/153 With [this endpoint](https://github.com/jwilsson/spotify-web-api-php/blob/master/docs/examples/managing-user-playlists.md#getting-all-tracks-in-a-playlist) I only got I think the first 50 songs in the given playlist. Is there either a possibility to change the amount of songs I want to get or add an offset to the request to be able iterate over the playlist?
kerem 2026-02-27 19:26:02 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jwilsson commented on GitHub (Feb 23, 2019):

Hi!
It's possible to both add an offset and request more than 50 tracks at a time (I think the limit is 100). For example:

$tracks = $api-> getPlaylistTracks('PLAYLIST_ID', [
  'limit' => 100,
  'offset' => 100,
]);

All options are also documented here: https://github.com/jwilsson/spotify-web-api-php/blob/master/docs/method-reference/SpotifyWebAPI.md#getplaylisttracks

<!-- gh-comment-id:466623266 --> @jwilsson commented on GitHub (Feb 23, 2019): Hi! It's possible to both add an offset and request more than 50 tracks at a time (I think the limit is 100). For example: ```php $tracks = $api-> getPlaylistTracks('PLAYLIST_ID', [ 'limit' => 100, 'offset' => 100, ]); ``` All options are also documented here: https://github.com/jwilsson/spotify-web-api-php/blob/master/docs/method-reference/SpotifyWebAPI.md#getplaylisttracks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#99
No description provided.