Announcements

Help Wizard

Step 1

NEXT STEP

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.

 

Suggested posts