Lookup song by ISRC in Apple Music/iTunes

非 Y 不嫁゛ 提交于 2019-12-06 06:32:32

This was just highlighted at WWDC 2018. You can perform an request directly to the Apple Music API to

GET https://api.music.apple.com/v1/catalog/{storefront}/songs?filter[isrc]=ISRCSTRING

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

MusicKit.getInstance().api.songs({ filter: { isrc: 'ISRCSTRING' } }).then(function(songs) {
    console.log(songs); // Array of songs matching ISRCSTRING
})

Looks like it is available given I see this in the response:

"isrc": "USQX91700278"

For this song request: https://api.music.apple.com/v1/catalog/us/songs/1207120448

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!