Skip to main content
Question

Disable/Work around Universal Share Links?

  • July 3, 2026
  • 0 replies
  • 2 views

qilinmoe
One Hit Wonder

Hello friends!

Developer here, so not exactly an issue that affects end-users that much.

I like using the public Deezer API to search for music/get more information outside of the platform. Specifically on Discord.

I used to have a discord bot that just outputs album/track/playlist information that isn’t normally visible on the website. Makes it much easier than opening a browser and remembering the API url all the time lol

Recently I’ve gotten the urge to update it. Mostly because I’ve gotten some friends to switch to Deezer and we like sharing music while we’re on voice calls. (I also wanted to remove my Spotify integration because they changed their API so only premium users can use it. Boooo!)

Unfortunately, the method I used:
Simple GET request to `/album` or `/track` or `/playlist` as an example:

import httpx
DEEZER_API_URL = "https://api.deezer.com"
def parse_link(url: str) -> dict | None:
(...) # Parsing of the url to get "type" and "id"
info: dict | None = None
match type:
case "album":
request = httpx.get(f"{DEEZER_API_URL}/album/{id}").json() # <--- this request!
tracks = []
for track in request["tracks"]["data"]:
tracks.append({
"title": track["title"],
"duration": track["duration"],
"rank": track["rank"]
})
info = {
"title": request["title"],
"artist": {
"name": request["artist"]["name"],
"picture": request["artist"]["picture_big"]
},
"cover": request["cover_big"],
"tracks": tracks
}
case "track":
(...) # Same as the album, but with the different url and corrected info
case "playlist":
(...) # Same as the album, but with the different url and corrected info
(...)

case _:
pass
return info

Doesn’t work with the new share links as those do not contain the “id” that my get request needs.

I would like to know if there’s a way to either disable those links entirely (specifically on the web app, not the electron app) or if there’s a way to get the album/track/playlist id from those links through the API.

I’m aware that I can simply copy the link from the url bar instead of the share button, and that I can click the “make embed” button to get the track url, but that’s not exactly intuitive for my non-developer friends and I’d rather *not* have to remember that every time.

Thank you for your time friends, I hope someone can help me!