Lookup Apple Music songs by ISRC

Hi,


I need to be able to lookup songs on Apple Music using the ISRC. Is it possible to do this? I know the Song resource has the ISRC attribute, and the lookup for a specific song is usually done by the Apple Music ID, but for the application I am developing, I get the song by an external source which provides the ISRC, and I then need to be able to locate it in Apple Music.


Thanks for any help.

You may be happy when you listen to the WWDC video on MusicKit 🙂

If you are using the MusicKit JS library, you can perform the lookup with the following JavaScript:


MusicKit.getInstance().api.songs({ filter: { isrc: 'ISRC-STRING' } }).then(function(songs) {
console.log(songs) // Array of songs matching the ISRC
});
Lookup Apple Music songs by ISRC
 
 
Q