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

Getting Started

Getting Started

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

I am a first year high school, computer science teacher. I teach a course called Programming for Problem Solving. I want to show my students Spotify Wrapped. I want to show them APIs, especially the Spotify API. I want my students to create a playlist that incorporates all their Spotify Wrapped Playlists and creates a playlist with songs that only appeared in all of them. How can they do this? Can they use the Spotify API in CodeHS? Or would they need to code it in lie Visual Studio Code? What steps need to be taken in order to accomplish this?

Reply
4 Replies

One problem is that everyone has the same web address (URI) for their personal Top 100 playlist. As a result, the API only fetches the version of that playlist for the user who's logged in using the Authorization Code flow. In my opinion, this might make this project a bit too challenging for first-year high school students.

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.

For playlists that are made by them and are publicly displayed at the user's profile, you can use Client Credentials. That is a lot easier.

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.

Your students can copy the Wrapped playlists to an other playlist using Add to another playlist function, accessable through the tree-dots-menu of the playlist. Then they need to add the destination playlist to their profile. After that, they can use Client Credentials to get the playlist info (also the info from the playlists of the other students that are added to their profile.)

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.

Finally, here is a Getting Started guide: https://developer.spotify.com/documentation/web-api/tutorials/getting-started

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