[GH-ISSUE #489] Are there methods to get Account information? #309

Closed
opened 2026-02-27 19:29:56 +03:00 by kerem · 3 comments
Owner

Originally created by @ghost on GitHub (Jun 11, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/489

E.G. Account Subscription,
FAmily invite link etc.

Originally created by @ghost on GitHub (Jun 11, 2020). Original GitHub issue: https://github.com/librespot-org/librespot/issues/489 E.G. Account Subscription, FAmily invite link etc.
kerem 2026-02-27 19:29:56 +03:00
Author
Owner

@ashthespy commented on GitHub (Jun 11, 2020):

E.G. Account Subscription,

Nope, since librespot works only with a Premium account to begin with, it's not required. That being said, nothing stopping you from reverse engineering and figuring out the right internal API endpoints to obtain this information.

<!-- gh-comment-id:642773514 --> @ashthespy commented on GitHub (Jun 11, 2020): > E.G. Account Subscription, Nope, since librespot works only with a Premium account to begin with, it's not required. That being said, nothing stopping you from reverse engineering and figuring out the right internal API endpoints to obtain this information.
Author
Owner

@ghost commented on GitHub (Jun 12, 2020):

E.G. Account Subscription,

Nope, since librespot works only with a Premium account to begin with, it's not required. That being said, nothing stopping you from reverse engineering and figuring out the right internal API endpoints to obtain this information.

i have found some endpoints but the require the access token. is there a way to get the access token from the package?

also the endpoint is https://www.spotify.com/token-bounce/?url=/redirect/account-page for anyone interested with the following user agent: CONTENTTYPE "application/x-www-form-urlencoded" HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" HEADER "Pragma: no-cache" HEADER "Accept: */*" HEADER "accept: application/json, text/plain;q=0.2, */*;q=0.1" HEADER "accept-encoding: gzip;q=1.0, compress;q=0.5" HEADER "accept-language: en-US;q=1.0" HEADER "app-platform: iOS" HEADER "content-length: 163" HEADER "content-type: application/x-www-form-urlencoded" HEADER "host: creator.wg.spotify.com" HEADER "proxy-connection: keep-alive" HEADER "spotify-app: S4A" HEADER "spotify-app-version: 2.0.15" HEADER "user-agent: S4A/2.0.15 (com.spotify.s4a; build:201500080; iOS 13.3.1) Alamofire/4.9.0"
Its a POST rquest with the data oauth_token=<accesstk>

<!-- gh-comment-id:643113348 --> @ghost commented on GitHub (Jun 12, 2020): > > E.G. Account Subscription, > > Nope, since librespot works only with a Premium account to begin with, it's not required. That being said, nothing stopping you from reverse engineering and figuring out the right internal API endpoints to obtain this information. i have found some endpoints but the require the access token. is there a way to get the access token from the package? also the endpoint is https://www.spotify.com/token-bounce/?url=/redirect/account-page for anyone interested with the following user agent: ` CONTENTTYPE "application/x-www-form-urlencoded" HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" HEADER "Pragma: no-cache" HEADER "Accept: */*" HEADER "accept: application/json, text/plain;q=0.2, */*;q=0.1" HEADER "accept-encoding: gzip;q=1.0, compress;q=0.5" HEADER "accept-language: en-US;q=1.0" HEADER "app-platform: iOS" HEADER "content-length: 163" HEADER "content-type: application/x-www-form-urlencoded" HEADER "host: creator.wg.spotify.com" HEADER "proxy-connection: keep-alive" HEADER "spotify-app: S4A" HEADER "spotify-app-version: 2.0.15" HEADER "user-agent: S4A/2.0.15 (com.spotify.s4a; build:201500080; iOS 13.3.1) Alamofire/4.9.0" ` Its a POST rquest with the data `oauth_token=<accesstk>`
Author
Owner

@ashthespy commented on GitHub (Jun 12, 2020):

Have a look at keymaster.rs

I'm closing this as outside the scope of librespot - good luck on your quest :-)

PS: I was also referring to mercury endpoints :-)

<!-- gh-comment-id:643154685 --> @ashthespy commented on GitHub (Jun 12, 2020): Have a look at [`keymaster.rs`](https://github.com/librespot-org/librespot/blob/dev/core/src/keymaster.rs) I'm closing this as outside the scope of `librespot` - good luck on your quest :-) PS: I was also referring to mercury endpoints :-)
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/librespot#309
No description provided.