-
Notifications
You must be signed in to change notification settings - Fork 216
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
[WIP] Spotify artist URI to social pages, Wiki summary #268
Comments
How are you getting the musicbrainz ID from a Spotify URL? Is there some API to do that that I've missed? |
The MusicBrainz ID is retrieved by looking up which artist has the Spotify URL in their metadata on MusicBrainz. For example: https://beta.musicbrainz.org/ws/2/url/?query=url:https://open.spotify.com/artist/1WZarnZpWEv7dDtjAETt4X |
Excellent, thank you! |
That sounds great @jacksongoode! |
A proof of concept using |
Not sure if important but the URI without the subdomain of https://musicbrainz.org/ws/2/url/?query=url:https://open.spotify.com/artist/1WZarnZpWEv7dDtjAETt4X non-beta URI I feel is potentially more future stable |
Closed with #537 |
Since seeing this feature on the roadmap, I thought I'd get the initial architecture in place to make sure this might be the best/most effective string of API calls to make.
Right now it takes two calls to reach social links, four to reach a Wiki summary:
I feel like it should be possible to reach the MusicBrainz social links with one call, but their API docs are a bit of a mess. The total call time with
reqwests
is around 3-4s.The text was updated successfully, but these errors were encountered: