Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Please see below the most popular frequently asked questions.
Loading article...
Loading faqs...
Please see below the current ongoing issues which are under investigation.
Loading issue...
Loading ongoing issues...
Plan
Free
Country
India
Device
(Dell Inspiron)
Operating System
(Windows 11)
My Question or Issue
I am currently implementing an authorization flow with PKCE, and I have encountered an issue. When making an API request to the `Start/Resume Playback` endpoint- https://api.spotify.com/v1/me/player/play, I receive an error- 403: "PREMIUM_REQUIRED". It's important to note that I am using a free Spotify account that does not have any paid membership.
This is how i am making the request in plain js.
const accessToken = await getAccessToken();
// Request body
const requestBody = {
context_uri: `spotify:playlist:${playlistId}`,
offset: 0,
position_ms: 0,
};
// Request options
const requestOptions = {
method: "PUT",
headers: {
Accept: "application/json",
Authorization: "Bearer " + accessToken,
"Content-Type": "application/json",
},
body: JSON.stringify(requestBody),
};
// Make the PUT request
const response = await fetch(
"https://api.spotify.com/v1/me/player/play",
requestOptions
);
console.log("Response:", response.status, response.statusText);
Here, playlistId is a valid playlist ID which I am using for this request. Access token valid too.
But i am getting this response.
{
"error" : {
"status" : 403,
"message" : "Player command failed: Premium required",
"reason" : "PREMIUM_REQUIRED"
}
}
Interestingly, I am receiving a 200 response when using the 'Get Playback State' endpoint.
My question is, do I require a premium account to make API requests to this particular endpoint?
Solved! Go to Solution.
The error says: PREMIUM_REQUIRED, so, yes, a premium account is required to make API requests to this particular endpoint.
The error says: PREMIUM_REQUIRED, so, yes, a premium account is required to make API requests to this particular endpoint.
Is there any documentation for all the APIs that need a premium account? I dont see it on the Web API Reference Page.
It is mentioned in this article and at this page that (most) Player endpoints require a Spotify Premium subscription.
but the apis are not working for users wh obought premium too.
see the latest reply by user : divy to this post : https://community.spotify.com/t5/Spotify-for-Developers/API-403-Studen-Premium-Premium-required/m-p/...
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…