'Getting Artist's Public Playlists using Spotifyr

I am new to using Spotify for Developers and I am using spotifyR (a wrapper package for R) for a project comparing Artist's handmade playlists with the music they release. I have identified several artists that have public handmade playlists. I can find these simply by typing their name into the Spotify app and scrolling to the bottom to see the "Artist Playlists" so I know these playlists are public. I will list the artists I have identified below along with their Spotify ids pulled directly from using the Spotify API.

"id","name"
"26VFTg2z8YR0cCuwLzESi2","Halsey"
"2YZyLoL8N0Wb9xBt1NhZWg","Kendrick Lamar"
"5p7f24Rk5HkUZsaS3BLG5F","Hailee Steinfeld"
"5rSXSAkZ67PYJSvpUpkOr7","Backstreet Boys"
"2h93pZq0e7k5yf4dywlkpM","Frank Ocean"
"163tK9Wjr9P9DmM0AVK7lm","Lorde"
"7EQ0qTo7fWT7DPxmxtSYEc","Bastille"
"0hEurMDQu99nJRq8pTxO14","John Mayer"
"2FXC3k01G6Gw61bmprjgqS","Hozier"
"1QRj3hoop9Mv5VvHQkwPEp","Olivia O'Brien"
"60d24wfXkVzDSfLS6hyCjZ","Martin Garrix"

I am trying to get their playlists using the following code (again in the wrapper package for R) but all artists return a 404 error if I use their id in the following call (which is what is recommended to use in the spotifyR documentation). If I use their names only a few artists return any playlists. For most of the artists, I get a 400 error. This error/ occurrence is more confusing to me because the documentation says to use their Spotify user ids to do this.

get_user_playlists(id or name)

Does this sound like an access/authorization issue or something else? Has anyone run into similar problems?

Let me know if you need additional information to help answer my question and thank you in advance!

I did look at the following post to see if it was a scopes issue, however, I am not sure that that is the issue. Data Scraping Using Spotifyr



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source