
:max_bytes(150000):strip_icc()/NEW13-1d5986e62a814ca4af73d9415e62977a.jpg)
- #HOW TO SEE FRIEND ACTIVITY ON SPOTIFY WEB PLAYER HOW TO#
- #HOW TO SEE FRIEND ACTIVITY ON SPOTIFY WEB PLAYER CODE#

getFriendActivity ( ) const friendActivity = friendActivityResponse. accessToken ) const friendActivityResponse = await api. wrapWebApi ( new SpotifyWebApi ( ) ) const tokenResponse = await api. Using it that way, you can leverage the same elevated token for all theĬonst SpotifyWebApi = require ( 'spotify-web-api-node' ) const buddyList = require ( 'spotify-buddylist' ) const api = buddyList. Wrap it to include the getWebAccessToken and getFriendActivity You might already be using the spotify-web-api-node Undocumented endpoint that retrieves the friend activity. Token, that, unlike the official API ones, will let you query the Seems like it's valid for one year, and with just that value you canĬall anytime an endpoint that gives you a refreshed, elevated API access On the web player (which I don't automate because reCAPTCHA), you getĪ bunch of cookies, including one named sp_dc. This is the only value that you need for this to work. "name": "Wolfgang Amadeus Mozart Radio ", "uri": "spotify:user:spotify:playlist:37i9dQZF1E4riV8HyBkA7r ", "uri": "spotify:artist:4NJhFmfw43RLBLjQvxDuRS ", "uri": "spotify:album:1XORY4rQNhqkZxTze6Px90 ",

"uri": "spotify:track:51xHvAUYQfhY29GcGlBM0n ",
#HOW TO SEE FRIEND ACTIVITY ON SPOTIFY WEB PLAYER CODE#
Refreshing a value in your code once a year, it's actually quite easier The good news is that if you don't mind logging in on the web player and Logging in, getting and refreshing tokens. Regular API access token, so you can't use the official API way of To use this API, you need to get a web player access token, not a Still made it available on npm in case you quickly want to put together Since the calls are pretty trivial, it's mostly there for publicĭocumentation purpose rather than to really be used as a library, but I Repo is a wrapper around the unofficial API that the app calls to fetch Since 2015, but it was closed this summer 2020 without any plan to giveĪccess to this feature through the official API.īecause I want to fetch this data and I don't like being told no, this There's an issue on the spotify/web-api repositoryĪbout that, where a number of people request access to this endpoint
#HOW TO SEE FRIEND ACTIVITY ON SPOTIFY WEB PLAYER HOW TO#
Note: don't know how to code? Check the extra infoĭoesn't include a way to fetch the friend activity feed that'sĪvailable on the right of the desktop app.
