Announcements

Topics with Label: javascript

Labels

Forum Posts

Welcome to the Spotify for Developers board!

Welcome to the Spotify for Developers board! This forum is the place for conversations about Spotify's Web API, Web Playback SDK, Widgets, and other developer tools. Here you can ask questions about the Spotify platform, chat with other developers, a...

  • Spotify
  • Spotify
  • 18605 Views
  • 0 replies
  • 58 likes
  • Discussion
  • 18605 Views
  • 0 replies
  • 58 likes

Cannot delete tracks from a playlist using the API. Receiving 401 error.

PlanFree/PremiumCountryCanada My Question or IssueI've been trying and failing to delete tracks from a playlist using the API. Every method I attempt results in a 401 error from spotify. This is a JavaScript Web App and I'm performing both Oauth and ...

  • Newbie
  • ...potify.    This is a JavaScript Web App and I'm performing both Oauth and delete requests from a Node.js backend.    I have a valid Oauth2 flow and can create/add tracks to p...
  • Ximzend
  • Roadie
  • 193 Views
  • 1 replies
  • 0 likes
  • api
    javascript
    question
    troubleshoot
  • 193 Views
  • 1 replies
  • 0 likes

How can I get results from Web-API queries without using JavaScript?

I've been trying to set up Spotify Web-API for use on my own site for 1 week, but I couldn't get any results. With the help of the document below, I created a simple query interface over nodeJS.Authorization Code Flow | Spotify for Developers You nee...

vSky_0-1666438603421.png vSky_1-1666439375412.png
  • Newbie
  • ...sking the Spotify community, how can I use this Web-Api without using JavaScript?
  • 101 Views
  • 0 replies
  • 0 likes
  • authorize
    Get
    Help
    how
    howto
    javascript
    nodejs
  • 101 Views
  • 0 replies
  • 0 likes

400 bad requests error every time user atuh is provided

My Question or IssueI'm getting Bad Request errors every time I try to make a call with the code generated by giving clientID and clientSecret.I do get a new code every time I log in with Spotify and authorize access and get redirected to the new pag...

  • Casual Listener
  • My Question or Issue I'm getting Bad Request errors every time I try to make a call with the code generated by giving clientID and clientSecret. I do get a new code every time I log in with Spotify...
  • Peter_Schorn
  • Roadie
  • 257 Views
  • 3 replies
  • 0 likes
  • javascript
    Node
    web-api
  • 257 Views
  • 3 replies
  • 0 likes

Track not being fetched - 404 error

PlanPremiumCountryArgentinaDevice(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)Operating SystemWindows 10 My Question or IssueI'm trying to make a GET request to the Spotify Web API for a track using simple JavaScript (I don't know curl), but it...

  • Visitor
  • ...potify Web API for a track using simple JavaScript (I don't know curl), but it's giving me a 404 error My code: //async function to get the token const getToken = async () =&g...
  • 151 Views
  • 0 replies
  • 0 likes
  • API request
    javascript
  • 151 Views
  • 0 replies
  • 0 likes

Superuser Contribution Track Start/Pause Events with Matomo

Is there any way to get callbacks from Embed iFrame API?I would like to track with Matomo Play and Stop events from embedded Spotify iFrames.

  • Newbie
  • Is there any way to get callbacks from Embed iFrame API? I would like to track with Matomo Play and Stop events from embedded Spotify iFrames.
  • spotifyjosh
  • Spotify
  • 390 Views
  • 1 replies
  • 0 likes
  • Analytics
    api
    Callbacks
    embed
    javascript
    Matomo
    question
    tracking
  • 390 Views
  • 1 replies
  • 0 likes

Spotify Authorization Problems

PlanFreeCountryUnited StatesDevice(Desktop)Operating System(Windows 10) My Question or IssueHello, I'm currently making an app on Desktop (no backend) with React where a user can see their top songs and artists. I'm using the Implicit Grant Flow Auth...

  • Casual Listener
  • Plan Free Country United States Device (Desktop) Operating System (Windows 10)   My Question or Issue Hello, I'm currently making an app on Desktop (no backend) with React where a user...
  • Slaeh
  • Casual Listener
  • 914 Views
  • 2 replies
  • 0 likes
  • Implicit Flow
    javascript
    React
    spotify api
  • 914 Views
  • 2 replies
  • 0 likes

Standardizing Completion of API calls to player/play

Dear Spotify: I’m developing an app that creates a series of asynchronous calls to Spotify’s player/play endpoint. The code I wrote is working correctly in that it sends PUT requests to the endpoint near simultaneously. However, each PUT request take...

  • Visitor
  • Dear Spotify:   I’m developing an app that creates a series of asynchronous calls to Spotify’s player/play endpoint. The code I wrote is working correctly in that it sends PUT requests to the ...
  • 220 Views
  • 0 replies
  • 0 likes
  • api
    javascript
    player
    PUT
  • 220 Views
  • 0 replies
  • 0 likes

Cross-Origin Request Blocked: CORS request did not succeed

Hi, I'm currently having an issue where any Spotify API requests I send from client-side JavaScript are resulting in CORS errors. For example, a request to get a user's saved tracks would result in the following error: Cross-Origin Request Blocked: T...

  • Newbie
  • Hi, I'm currently having an issue where any Spotify API requests I send from client-side JavaScript are resulting in CORS errors. For example, a request to get a user's saved tracks would result in t...
  • 1377 Views
  • 0 replies
  • 3 likes
  • api
    CORS
    Error
    javascript
  • 1377 Views
  • 0 replies
  • 3 likes

Preview URL NULL? when making API call?

I just built a practice website yesterday using the Spotify API and used the preview_url to play a song preview with a button to listen to full song on spotifynow today all my API calls return NULL ONLY for the preview_url What gives?? PlanFree/Premi...

  • Visitor
  • I just built a practice website yesterday using the Spotify API and used the preview_url to play a song preview with a button to listen to full song on spotify now today all my API calls return NULL...
  • 1080 Views
  • 0 replies
  • 1 likes
  • api
    javascript
    preview_url
  • 1080 Views
  • 0 replies
  • 1 likes

Web Playback SDK: only first 10 seconds of each song is played

Plan: PremiumCountry: USA Device: Samsung 2020 TVOperating System: Tizen My Question or IssueI am developing an application on Tizen for Samsung TVs which I am attempting to integrate with Spotify. I am using the Spotify Web Playback SDK and initiati...

  • Newbie
  • Plan: Premium Country: USA   Device: Samsung 2020 TV Operating System: Tizen   My Question or Issue I am developing an application on Tizen for Samsung TVs which I am ...
  • Hubo
  • Community Legend
  • 668 Views
  • 1 replies
  • 0 likes
  • javascript
    Possible Bug
    tizen
    TizenOS
    TV app
    web playback sdk
  • 668 Views
  • 1 replies
  • 0 likes