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

starting out using Spotify API

starting out using Spotify API

 

 

Plan

Premium

Country

Canada (but currently vacationing in Mexico)

 

Device

Notebook

Operating System

POP!OS Linux

 

Maybe I am way out of my element here, but I am interested in trying to use the Spotify API to search if an album exists on Spotify or not. Using the Console I have been able to build a  curl statement that I can use in a shl script on my Linux Laptop and I can get back the data of all albums by the artist specified in the curl statement. However my script only seems to work for about  minutes. I am making an assumption this is because the token is expiring. I have searched for the internet and found a few code examples to renew a token but it is not clear what language it is in. Could someone tell me do I need to know Python, Java Script, etc. to be able to do what I want to do?  I know shl very well but don't know much about the above languages.

 

Reply
6 Replies

Hi glrider, welcome to the Community!

Yes, I recommend you to learn a programming language. Also, I recommend you to use a Web API Wrapper.

I always use the Web API Wrapper for Python called Spotipy (GitHub / Documentation). It's light wait and easy to use.

Cheers,

 

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.

Thanks Ximend,

 

Glad to be here.

 

Which programming language do you suggest I learn? Which is best? I see from the API wrapper list, there is Perl. I already know Perl. Is that a good option for what I want to do?

Hi,

Because you already know Perl, I recommend you to use the WWW-Spotify wrapper for Perl. (The other one is outdated and not maintained since 2016.)

Good luck with your project.

Cheers,

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.

Okay I downloaded the wrapper. Looking at the documentation it seems I need to install spotipy first, but it doesn't seem to be available for POP!_OS.  Do you know that to be true?

Okay I downloaded the source code from  'https://github.com/plamere/spotipy'. Do I unzip it to whatever directory I want? I am assuming there is something I have to do to my PATH or set other environmental variables for things to work?

In the terminal, you just could do: pip3 install spotipy

Or if you've downloaded the code and unzipped it somewhere, go with the terminal inside that folder and do: python3 setup.py install

You can remove that folder and the zip after installation.

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

Type a product name