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
  • 15014 Views
  • 0 replies
  • 51 likes
  • Discussion
  • 15014 Views
  • 0 replies
  • 51 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
  • 180 Views
  • 3 replies
  • 0 likes
  • javascript
    Node
    web-api
  • 180 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...
  • 105 Views
  • 0 replies
  • 0 likes
  • API request
    javascript
  • 105 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
  • 295 Views
  • 1 replies
  • 0 likes
  • Analytics
    api
    Callbacks
    embed
    javascript
    Matomo
    question
    tracking
  • 295 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
  • 504 Views
  • 2 replies
  • 0 likes
  • Implicit Flow
    javascript
    React
    spotify api
  • 504 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 ...
  • 191 Views
  • 0 replies
  • 0 likes
  • api
    javascript
    player
    PUT
  • 191 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...
  • 1175 Views
  • 0 replies
  • 2 likes
  • api
    CORS
    Error
    javascript
  • 1175 Views
  • 0 replies
  • 2 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...
  • 673 Views
  • 0 replies
  • 1 likes
  • api
    javascript
    preview_url
  • 673 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
  • Spotify Star
  • 606 Views
  • 1 replies
  • 0 likes
  • javascript
    Possible Bug
    tizen
    TizenOS
    TV app
    web playback sdk
  • 606 Views
  • 1 replies
  • 0 likes

Env: prod