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

Extracting genre seeds per artist ID using R

Extracting genre seeds per artist ID using R

Plan

Free/Premium

Country

 

Device

(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)

Operating System

(iOS 10, Android Oreo, Windows 10,etc.)

 

My Question or Issue

We have a list of artist ID's in Excel and we want to know the genres of each corresponding artist ID. We want to extract this with the SpotifyR package/wrapper in R using Spotify API. Does anyone have suggestions of how to handle this? Because we have a large number of artist ID's and we can't extract all genre seeds per single artist ID manually but we want to do this in bulk. We also need all genre seeds and not only the first one that Spotify API gives us. Thank you very much in advance for your help.

Reply
1 Reply

With get_artists() you can get Spotify catalog information for up to 50 artists identified by their Spotify IDs: https://www.rcharlie.com/spotifyr/reference/get_artists.html

To reduce the amount of requests, you should make your script in a way it uses batches of 50 artist ids per request. Edit: In a loop ofcourse.

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

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…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random