Announcements

Help Wizard

Step 1

NEXT STEP

Endpoint Get Show not working with short token

Solved!

Endpoint Get Show not working with short token

Plan

Free

Country

Brazil

Device

 

Operating System

Windows, C#

 

My Question or Issue

I am developing in C# a routine to get info about shows using the endpoint https://api.spotify.com/v1/shows/{id} .
When I call the endpoint using the same token generated in the page (https://developer.spotify.com/console/get-show/) the endpoint works perfectly, but when I use a token generated by https://accounts.spotify.com/api/token (passing grant_type=client_credentials) I reveive an error The remote server returned an error: (404) Not Found.

One strange thing is that the token generated by page has 179 characteres while my routine returns a token with only 83 characters.

Another strange thing it is that token of my routine works when it is used in the endpoint https://api.spotify.com/v1/tracks/{id}

Reply

Accepted Solutions
Marked as solution

The Get a Show endpoint may also require the market to be provided, although this is usually optional and even is displayed as such, when using this endpoint, and other Show and Episode ones the market  must be provided as the documentation mentions the following:

 

If neither market or user country are provided, the content is considered unavailable for the client.

 

That may explain the 404 error you are getting, whereas the Get a Track endpoint doesn't require this.

View solution in original post

1 Reply
Marked as solution

The Get a Show endpoint may also require the market to be provided, although this is usually optional and even is displayed as such, when using this endpoint, and other Show and Episode ones the market  must be provided as the documentation mentions the following:

 

If neither market or user country are provided, the content is considered unavailable for the client.

 

That may explain the 404 error you are getting, whereas the Get a Track endpoint doesn't require this.

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