Announcements

Help Wizard

Step 1

NEXT STEP

Search API restricted with client_credential access?

Solved!

Search API restricted with client_credential access?

Plan

Free

Country

DE

Device

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

Operating System

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

Windows 10

 

My Question or Issue

A track search with a query like this:

'track%3ATrackname+artist%3AArtistname+album%3AAlbumname&type=track'

For many tracks, I only get the correct location if the access token was requested via the 'Authorization code flow'.
However, the track cannot be found with an access token via 'Client Credentials flow'.

Examples (track - artist - album)
Searching for 'Bad Boy - Marty Wilde - The Full Marty'
Query:
track%3ABad+Boy+artist%3AMarty+Wilde+album%3ATe+Full+Marty&type=track
Only found with Authorization code flow.

Searching for 'Growin' Pain - Peter Wolf - Sleepless'
Query:
track%3AGrowin+Pain+artist%3APeter+Wolf+album%3ASleepless&type=track
Found with both Client Credentials flow and Authorization code flow.

Statuscode is always 200

Is this a bug or a feature?

Greetings LP

 

 

Reply

Accepted Solutions
Marked as solution

If you want to use Client Credentials, you have to set a market, because if neither market or user country are provided, the content is considered unavailable for the client, as you can read here.

View solution in original post

2 Replies
Marked as solution

If you want to use Client Credentials, you have to set a market, because if neither market or user country are provided, the content is considered unavailable for the client, as you can read here.

That's how it actually works. Thanks for the help!

Suggested posts