Musicfetch

Get the Apple Music song link from a Spotify link

How to use Musicfetch to find the Apple Music link for any song using a Spotify track URL.

Want to quickly get the Apple Music link for a song you found on Spotify? Musicfetch makes it easy to convert any supported Spotify track link to its Apple Music equivalent.

How to use Musicfetch API to get an Apple Music link from Spotify

Use the /url endpoint with a Spotify track URL and set services=appleMusic in the query. You can use any supported Spotify track link.

See the track lookup API docs for more details.

From a Spotify track URL

curl 'https://api.musicfetch.io/api/url?url=https%3A%2F%2Fopen.spotify.com%2Ftrack%2F2hiJe5kecnjIiywY9R1HVy&services=appleMusic' \
-H 'x-musicfetch-token: YOUR_TOKEN'

Example response

{
"result": {
"type": "track",
"name": "Cruel Summer",
"services": {
"appleMusic": {
"id": "1694827502",
"link": "https://music.apple.com/us/album/cruel-summer/1694827500?i=1694827502&app=music"
}
}
}
}