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

Musicfetch is a song-link matching API. Give Musicfetch a supported Spotify track URL and request Apple Music; when a confident match is available, the response includes the matching Apple Music song link and normalized track metadata.

How to use Musicfetch API to get a 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 URL 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%2F0tgVpDi06FyKpA1z0VMD4v&services=appleMusic' \
-H 'x-musicfetch-token: YOUR_TOKEN'

Example response

The Musicfetch response contains merged links/metadata from Spotifyand Apple Music.

{
"result": {
"type": "track",
"name": "Perfect",
"services": {
"appleMusic": {
"link": "https://music.apple.com/us/album/perfect/1766261100?i=1766261290&app=music",
},
"spotify": {
"link": "https://open.spotify.com/track/0tgVpDi06FyKpA1z0VMD4v",
}
}
}
}

Song link matching FAQ

Can I convert a Spotify song link to Apple Music?

Yes. Musicfetch can use a supported Spotify track URL to find the matching Apple Music song link when a confident match is available.

Does Musicfetch convert audio files or playlists?

No. Musicfetch matches music metadata and service links. It does not download audio, convert files, or migrate playlists.

Can I do song-link matching by API?

Yes. Use the Musicfetch URL lookup endpoint with a source track URL and request the destination service in the services parameter.

Build song-link matching into your app

Use Musicfetch to match Spotify links to Apple Music and other music services from one API.
Explore link matching
Find Apple Music song links from Spotify - Musicfetch