[GH-ISSUE #951] Is it possible to get the track or playlist id from a mobile share link (https://spotify.link/)? #573

Closed
opened 2026-02-27 23:23:25 +03:00 by kerem · 3 comments
Owner

Originally created by @SoHectic on GitHub (Mar 18, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/951

I am using Spotipy to get the track and artist names from either a track or playlist link but I am unsure how to get them if provided a share link generated from mobile since it is not the same as if you generate a share link from desktop. I have tried to just strip the characters after the "link/" part of the mobile share link but that doesn't seem to work.

Originally created by @SoHectic on GitHub (Mar 18, 2023). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/951 I am using Spotipy to get the track and artist names from either a track or playlist link but I am unsure how to get them if provided a share link generated from mobile since it is not the same as if you generate a share link from desktop. I have tried to just strip the characters after the "link/" part of the mobile share link but that doesn't seem to work.
kerem 2026-02-27 23:23:25 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@stephanebruckert commented on GitHub (Mar 19, 2023):

Not python related, question for https://community.spotify.com/

<!-- gh-comment-id:1475255158 --> @stephanebruckert commented on GitHub (Mar 19, 2023): Not python related, question for https://community.spotify.com/
Author
Owner

@SoHectic commented on GitHub (Mar 19, 2023):

Not python related, question for https://community.spotify.com/

I don't see how this isnt python related, I am literally trying to get the track or playlist ID from a mobile share link with python and I am wondering if its possible to do through python or not.

<!-- gh-comment-id:1475258244 --> @SoHectic commented on GitHub (Mar 19, 2023): > Not python related, question for https://community.spotify.com/ I don't see how this isnt python related, I am literally trying to get the track or playlist ID from a mobile share link with python and I am wondering if its possible to do through python or not.
Author
Owner

@stephanebruckert commented on GitHub (Mar 19, 2023):

Well you are more asking "Can the Spotify API do that?". I don't think it does but I recommend making sure about it by asking in the appropriate place.

Anyway one idea for you could be to query that spotify.link and see if it redirects to an open.spotify.com URL which would likely contain an ID. Still, this is not something spotipy can handle for you.

<!-- gh-comment-id:1475395434 --> @stephanebruckert commented on GitHub (Mar 19, 2023): Well you are more asking ["Can the Spotify API do that?"](https://github.com/spotipy-dev/spotipy/blob/master/FAQ.md#is-there-a-way-to-get-this-field). I don't think it does but I recommend making sure about it by asking in the appropriate place. Anyway one idea for you could be to query that spotify.link and see if it redirects to an open.spotify.com URL which would likely contain an ID. Still, this is not something spotipy can handle for you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#573
No description provided.