Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get track information from Spotify API using ISRC code

Tags:

spotify

Is it possible to get the track id (or better, the entire track metadata) using an ISRC code?

like image 553
Paul Avatar asked Feb 03 '16 22:02

Paul


People also ask

What information can you get from the Spotify API?

Based on simple REST principles, the Spotify Web API endpoints return JSON metadata about music artists, albums, and tracks, directly from the Spotify Data Catalogue. Web API also provides access to user related data, like playlists and music that the user saves in the Your Music library.

Can you see ISRC on Spotify?

Spotify is the de facto largest ISRC database in the world. If your track is live on Spotify, you will be able to grab the ISRC.

Can you get audio from Spotify API?

You can use Spotify's Web API to discover music and podcasts, manage your Spotify library, control audio playback, and much more.


1 Answers

Yes, you can get information about a track given the ISRC using the Search endpoint.

For example, Metallica's Sad But True has the ISRC USEE10001993. A request to the Web API to retrieve the track metadata would be:

https://api.spotify.com/v1/search?type=track&q=isrc:USEE10001993

like image 111
Michael Thelin Avatar answered Sep 28 '22 10:09

Michael Thelin