Apple 有一个搜索 API,可让您在 iTunes Store 中查询音乐:
https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/ https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/
这是一个搜索示例:
ISRC 代码允许是跨市场歌曲的标准标识符(https://en.wikipedia.org/wiki/International_Standard_Recording_Code https://en.wikipedia.org/wiki/International_Standard_Recording_Code)。例如,Spotify 在其 api 中返回 ISRC。
我是否可以获取 iTunes 曲目的代码?如果 Apple 自己不提供,我是否可以使用他们提供的元数据找到它?
非常感谢!
答案最终是肯定的。通过他们的 Apple Music API:https://developer.apple.com/documentation/applemusicapi/song/attributes https://developer.apple.com/documentation/applemusicapi/song/attributes
这是每首歌属性的一部分
isrc字符串(必需)歌曲的国际标准录制代码 (ISRC)。
这里列出了您获取歌曲的所有方式:https://developer.apple.com/documentation/applemusicapi/songs https://developer.apple.com/documentation/applemusicapi/songs
例如,您可以使用获取目录歌曲 https://developer.apple.com/documentation/applemusicapi/get_a_catalog_song通过提供 iTunes ID 来访问端点:
// https://api.music.apple.com/v1/catalog/us/songs/900032829
{
"data": [
{
"attributes": {
// ...
"isrc": "NLH851300057",
"name": "Something For the Pain"
// ...
},
"href": "/v1/catalog/us/songs/900032829",
"id": "900032829",
"relationships": {
"albums": { /* ... */ },
"artists": { /* ... */ }
},
"type": "songs"
}
]
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)