Announcements

Help Wizard

Step 1

NEXT STEP

Premium Required error despite having Premium Plan

Solved!

Premium Required error despite having Premium Plan

Plan

Premium

 

Country

United States

 

Operating System

Windows 11

 

My Question or Issue

Getting the error below despite my plan being Premium...

 

curl -X "POST" "https://api.spotify.com/v1/me/player/next" -H "Authorization: Bearer BQCqmBGyrLhdwVAyiU-PjCh4QRi9yMDRPaJ-Qk5YVpqxnxtWVXwZA6JC4z2RHiLMuYgwfLNyHJPUpWdnTy9Y3xWiDHa_7tj302Ct9-UAJ6VynWDZ1ClIO6I1_Pdiy6-7VJves6xkas4" -H "Content-length: 0"
{
"error" : {
"status" : 403,
"message" : "Player command failed: Premium required",
"reason" : "PREMIUM_REQUIRED"
}
}

 

Reply

Accepted Solutions
Marked as solution

Hi @kikitogi 

Thank you for your reply.

As I can see now, you are trying to use Client Credentials.

This endpoint requires you to login, and Client Credentials doesn't support this.

Instead, you should use another Authorization Code Flow from this page.

I hope this helps. If you need further assistance, feel free to ask.

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.

View solution in original post

6 Replies

Hi @kikitogi 

Thanks for posting this in the Spotify Community!

 

To troubleshoot, how did you acquire this Bearer token?

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.

curl -X POST "https://accounts.spotify.com/api/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=4af86c3aa77d434ebe16dff4dbd3f492&client_secret=2f9e955e2fe340e4aa7acff534e3c44f"

{"access_token":"BQCqmBGyrLhdwVAyiU-PjCh4QRi9yMDRPaJ-Qk5YVpqxnxtWVXwZA6JC4z2RHiLMuYgwfLNyHJPUpWdnTy9Y3xWiDHa_7tj302Ct9-UAJ6VynWDZ1ClIO6I1_Pdiy6-7VJves6xkas4","token_type":"Bearer","expires_in":3600}

Getting the error below despite my plan being Premium...

 

curl -X "POST" "https://api.spotify.com/v1/me/player/next" -H "Authorization: Bearer BQCqmBGyrLhdwVAyiU-PjCh4QRi9yMDRPaJ-Qk5YVpqxnxtWVXwZA6JC4z2RHiLMuYgwfLNyHJPUpWdnTy9Y3xWiDHa_7tj302Ct9-UAJ6VynWDZ1ClIO6I1_Pdiy6-7VJves6xkas4" -H "Content-length: 0" { "error" : { "status" : 403, "message" : "Player command failed: Premium required", "reason" : "PREMIUM_REQUIRED" } }

Marked as solution

Hi @kikitogi 

Thank you for your reply.

As I can see now, you are trying to use Client Credentials.

This endpoint requires you to login, and Client Credentials doesn't support this.

Instead, you should use another Authorization Code Flow from this page.

I hope this helps. If you need further assistance, feel free to ask.

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.

Was able to do OAuth 2.0 authorization so we are a step closer.

Here now is the new error I am getting:

 

{
"error" : {
"status" : 401,
"message" : "Permissions missing"
}
}

Great news, I missed specifying the requested scope before. It works now.

Thanks very much for your insights.

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