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"
}
}

 

Child Item
Child Item
Child Item

Accepted answers

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.

All comments

Hi @kikitogi 

Thanks for posting this in the Spotify Community!

 

To troubleshoot, how did you acquire this Bearer token?

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" } }

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.

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.

Child Item
Child Item