Skip to content

Commit 8190e7c

Browse files
committed
fix(integrations): keep spotify get playlist tracks on the read endpoint that serves any public playlist
1 parent 5454724 commit 8190e7c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/sim/tools/spotify/get_playlist_tracks.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export const spotifyGetPlaylistTracksTool: ToolConfig<
5252
url: (params) => {
5353
const limit = Math.min(Math.max(params.limit || 50, 1), 50)
5454
const offset = params.offset || 0
55-
let url = `https://api.spotify.com/v1/playlists/${params.playlistId}/items?limit=${limit}&offset=${offset}`
55+
// `/items` only returns playlists the user owns or collaborates on; `/tracks` still reads any
56+
// public playlist for Extended Quota Mode apps.
57+
let url = `https://api.spotify.com/v1/playlists/${params.playlistId}/tracks?limit=${limit}&offset=${offset}`
5658
if (params.market) {
5759
url += `&market=${params.market}`
5860
}

0 commit comments

Comments
 (0)