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

How to fetch songs data

How to fetch songs data

Country

India

My Question or Issue

Hi, I am a student trying to build a small song recommendation project for my college. How can I get the authentic song dataset using the API?

Reply
1 Reply

Welcome to the Spotify Community, it's great to have you here! ๐Ÿ˜Š


It's great to hear that you're creating a music recommendation project โ€” these kinds of initiatives are great for learning more about data and music!

 

To access authentic music data using the Spotify Web API, you can use the following resources:

 

1. Spotify Developer Portal
First, create an app in the developer dashboard:

 

https://developer.spotify.com/dashboard

 

This will provide you with the credentials (Client ID and Client Secret) to authenticate to the API.

 

2. Useful recommendation endpoints
Here are some endpoints you can use to get track data:

 

/search โ€“ Search for songs, artists, albums, etc.

/tracks/{id} โ€“ Basic song metadata (name, artists, popularity, etc.)

/audio-features/{id} โ€“ Technical data like danceability, energy, valence, etc.

/recommendations โ€“ Returns suggestions based on tracks, artists, or genres.

/artists/{id} โ€“ Information about artists.

 

3. Examples of data you can collect
Music genre (via artist)

Popularity of the track

Tempo (BPM)

Energy and danceability

Valence (how positive the song is)

Instrumentality, acoustics, etc.

 

Just remember! The Web API does not provide full datasets in bulk, for licensing reasons. Instead, you query track by track (or in small batches). For academic use, it is fine to work with a subset of popular songs or your own saved playlists.

 

Keep me updated

 

Cheers,
ribezaz ๐Ÿ’š

ribezazSpotify 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

Staff
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โ€ฆ

Staff
ModeratorStaff / Moderator/ 3 years ago  in Social & Random