Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Playlist API not returning deeply nested field

Playlist API not returning deeply nested field

I want to fetch user playlist items (tracks mainly) and for each track it's authors and for each author genres and images. This is the fields query parameter: `items.track(id,name,artists(id,name,genres,images))`. But API isn't returning "deeply nested" fields past artists (see response screenshot below)

 

eeeevrsince_0-1692872169787.png

Here is `curl` request copied from Web API reference:

```

curl --request GET \
--url 'https://api.spotify.com/v1/playlists/3cEYpjA9oz9GiPac4AsH4n/tracks?fields=items.track%28id%2Cname%2C...' \
--header 'Authorization: Bearer <token>'

```

 

This is probably a bug since example fields argument `items(added_by.id,track(name,href,album(name,href)))` fetches fields to the "same" depth (although artists is an array of objects)

Reply
0 Replies

Suggested posts

Staff
Let's introduce ourselves!

Hey there you,   Yeah, you! ๐Ÿ˜   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and getโ€ฆ

Staff
ModeratorStaff / Moderator/ 3 years ago  in Social & Random

Type a product name