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

Getting track genre data without logging in.

Getting track genre data without logging in.

Plan

Premium

I am currently developing an app for personal use, that should fetch the genre of a track If I provide track ID. This I belive Is possible, but only with authentication/logging in. Is there a method where I can avoid logging in, since all I do is fetch the genre of a track.

 

Device

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

Operating System

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

 

My Question or Issue

 

Reply
1 Reply

Yes, this can be done with the Client Credentials Flow.

 

Note: tracks don't have genres; artists have.

So, to get the genre of a track, you first need to get the artist(s) of that track with the Get Track or the Get Several Tracks endpoint, and then get the genre(s) of the artist(s) with the Get Artist or the Get Several Artists endpoint.

 

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.

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