Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Get links to YouTube, Spotify, Deezer etc. #53

Open
Pacerino opened this issue Mar 20, 2023 · 4 comments
Open

[Question] Get links to YouTube, Spotify, Deezer etc. #53

Pacerino opened this issue Mar 20, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Pacerino
Copy link

First of all, thank you for this great library! It is really ingenious and works perfectly.

However, I have a question: How is it possible to get the links to YouTube, Spotify etc.? The JSON answer contains the link to AppleMusic, but not to YouTube and/or Spotify. For Spotify, for example, there is no link but only a search query.

"uri":"spotify:search:Master%20of%20Puppets%20Metallica"

Within the App you can connect Spotify and save all results in a playlist. Therefore Shazam must know the Spotify URL / ID.

@dotX12
Copy link
Collaborator

dotX12 commented Mar 20, 2023

@Pacerino, very few songs have a link to spotify, with youtube it's different, I see a problem in trying to serialize response to model. I'll fix it when I find free time. Thanks!

@dotX12 dotX12 added the bug Something isn't working label Mar 20, 2023
@dotX12 dotX12 closed this as completed May 5, 2023
@dotX12 dotX12 reopened this May 5, 2023
@NguyenASang
Copy link

@dotX12 The direct link of the song to the music platform will be very helpful, especially for Youtube. Do you think it's possible ?

@Pacerino
Copy link
Author

@NguyenASang I use Odesli for that. I hand over the Apple Music link and get YouTube and Spotify in return. The rate limits are moderate, so far I have never reached them. I have asked for an ApiKey before, but they don't give them out anymore.

Take a look at my code, its written in GoLang:
https://github.com/Pacerino/pr0music/blob/master/main.go#L415
and
https://github.com/Pacerino/pr0music/blob/master/odesli/odesli.go#L57

Odesli API Docs
Odesli Homepage

@dportabella
Copy link

The Shazam app for android provides the link to play the music in YouTube Music and in Spotify.
The Shazam website does not have those links.
For instance:
https://www.shazam.com/track/20147973/lets-get-loud

Would it be possible to reverse engineer the API for Shazam android app, and get the YouTube Music and in Spotify links?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants