Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Spotify API, 403 'Forbidden'

Spotify API, 403 'Forbidden'

 

Plan

Premium

Country

Sweden

Device

PC (node.js)

Operating System

Windows11

 

My Question or Issue

Hi! Im getting unexpected errors from the Spotify API. All other answers ive seen on similar errors, has been due to not having premium accounts.

  • Have premium account.
  • Getting an access_token
  • trying to make a call to:
            return fetch('https://api.spotify.com/v1/me/player/play', {
                method: 'PUT',
                headers: {
                    Authorization: `Bearer ${accessToken}`,
                    'Content-Type': 'application/json'
                },
                body: JSON.stringify(bodyData)
            });
Getting 403, Forbidden.
Reply
2 Replies

Can you please post code on how you get an Access 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.

I think it's an Access Token or Authorization issue, and not a subscription issue.

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.

Suggested posts

Staff
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…

Staff
ModeratorStaff / Moderator/ 3 years ago  in Social & Random