Skip to content Skip to sidebar Skip to footer

Grab Band Name Search Results From Spotify Api

I am seeking to add a search ability to my custom search bar of a web app I am developing to grab recognized band names and have the result grab the Spotify Result. I have found th

Solution 1:

As stated in the comment, it doesn't look like the API provides CORS or JSONP so you can't access it directly from JavaScript unless your page is on the same domain as the API (or if you use forcecors plugin for firefox but that means every client visiting your site has to install and activate the plugin).

To use the API on a public website with a different domain as the API your site has to proxy requests from JavaScript to the API. You have to use server side script like PHP, .net, Python or Java for this.

Post a Comment for "Grab Band Name Search Results From Spotify Api"