Missing pagination information in /v2/playlist/{id} and included missing in /playlists/{id}/relationships/items #119
Replies: 2 comments 2 replies
-
Hey @semohr, Turns out there was a bug in inclusion logic for relationships with meta, should be fixed now. Can you please try again? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick fix! The The If I had a say in it, I would just remove the include parameter from the Feel free to close the issue :) |
Beta Was this translation helpful? Give feedback.
-
Hey guys,
Thank you for providing an open API!
I've a playlist with more than 20 tracks in it. I'm doing a request with
include=items
to/v2/playlists/{id}
. I was expecting to be able to iterate the response but there is no next link included for the playlist only for the relationship items.If I use the relationship links to iterate all items I do not get the included data (track attributes) returned. Am I doing anything wrong or is this a genuine oversight?
Examples
For reference, in this example the returned data does not include a root level links.
Next up if I use the relationship links there is no included field even though I use
include=items
.Unsatisfying workaround
It is possible to circumvent this problem by getting the playlist relationships first and than retrieving the track information but this is basically an 2x multiplier to the number of requests and for big playlists this adds alot of wait time since your guys rate limiting is pretty strict imo.
For instance for a playlist with 300 tracks the wait time goes from already 75s to more than 150s because each request has to wait an additional 5s for the rate limit tokens to replenish.
I would highly appreciate some feedback!
Best, Sebastian
Beta Was this translation helpful? Give feedback.
All reactions