Announcements

Help Wizard

Step 1

NEXT STEP

"genres" in get-track response

"genres" in get-track response

Plan

Free/Premium

Country

 

Device

(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)

Operating System

(iOS 10, Android Oreo, Windows 10,etc.)

 

My Question or Issue

I was playing around with the get-track endpoint (see https://developer.spotify.com/documentation/web-api/reference/#/operations/get-track). I see that in the artists' subarray in the example response the "genres" is provided. Having done a sample request on Adele's "Hello" (trackid: 4aebBr4JAihzJQR0CiIZJv) I got a valid response but the genres was missing. Does anyone have information regarding if the "genres" part of the response could have been removed from the response of the get-track endpoint and what a valid alternative could be?

Reply
4 Replies

That's because artists have genres, but tracks themselves don't.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

In the documents, there is a "genres" field in the "artists" sub-object in the response of get-track though. It goes like this:

```

response

   |_ artists (zero-indexed array)

       |_ genres (zero-indexed array)

```

 

 

I think they removed that info from that endpoint and forgot to change the documentation.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Yeah I have that feeling too, just wanted to check here for sure. Thanks!

Suggested posts

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…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random