Find a YouTube video from a Spotify link by API

Start with a Spotify track URL and get the matching YouTube video link and normalized metadata.

Give the Musicfetch URL lookup API a Spotify track URL and request YouTube. When Musicfetch identifies the matching recording on YouTube, the response contains its video link and normalized track metadata.

How to use Musicfetch API to get a YouTube link from Spotify

Use the /url endpoint with a Spotify track URL and set services=youtube 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=youtube' \
-H 'x-musicfetch-token: YOUR_TOKEN'

Example response

The Musicfetch response contains merged links/metadata from Spotifyand YouTube.

{
"result": {
"type": "track",
"name": "Perfect",
"services": {
"youtube": {
"link": "https://www.youtube.com/watch?v=2Vv-BfVoq4g",
},
"spotify": {
"link": "https://open.spotify.com/track/0tgVpDi06FyKpA1z0VMD4v",
}
}
}
}

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 YouTube. 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 YouTube result, the response will not contain a destination-service link.

Song link matching FAQ

Can I convert a Spotify song link to YouTube?

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