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.

Post not yet marked as solved Up vote post of tmkly Down vote post of tmkly
4.9k views

Replies

It would be nice but that feature is not available, you have to look up by the song name and whatnot

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

The API has been added: https://developer.apple.com/documentation/applemusicapi/get_multiple_catalog_songs_by_isrc

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
});