Find a Spotify song link from Apple Music

Use an Apple Music track URL to request the matching Spotify song link and normalized metadata.

Give the Musicfetch URL lookup API an Apple Music track URL and request Spotify. When Musicfetch finds the same recording on Spotify, the response contains its Spotify song link and normalized track metadata.

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

Use the /url endpoint with a Apple Music track URL and set services=spotify in the query. You can use any supported Apple Music track link. See the URL lookup API docs for more details.

From a Apple Music track URL

curl 'https://api.musicfetch.io/api/url?url=https%3A%2F%2Fmusic.apple.com%2Fus%2Falbum%2Fperfect%2F1766261100%3Fi%3D1766261290%26app%3Dmusic&services=spotify' \
-H 'x-musicfetch-token: YOUR_TOKEN'

Example response

The Musicfetch response contains merged links/metadata from Apple Musicand Spotify.

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

How reliable is the song-link match?

Match quality depends on the metadata available for the source track and whether the same recording exists on Spotify. Check the returned artist and track title before publishing the link, especially when a song has live, remastered, clean, explicit, or alternate versions. If Musicfetch cannot find a suitable Spotify result, the response will not contain a destination-service link.

Song link matching FAQ

Can I convert a Apple Music song link to Spotify?

Yes. Musicfetch can use a supported Apple Music track URL to find the matching Spotify 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 Apple Music links to Spotify and other music services from one API.

Explore link matching