Created
February 22, 2024 19:41
-
-
Save byigitt/8f01dcbe12738bf5b5a2882d9f10a621 to your computer and use it in GitHub Desktop.
check spotify followers who you follow but they dont follow you back
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const SPOTIFY_ID = "SPOTIFY ID"; | |
| const BASE_URL = "https://spclient.wg.spotify.com/user-profile-view/v3/profile/" + SPOTIFY_ID + "/"; | |
| (async () => { | |
| let FOLLOWING_DATA = await fetch(BASE_URL + "following?market=from_token", { | |
| headers: { | |
| authorization: | |
| "Bearer YOUR SPOTIFY AUTH TOKEN", | |
| }, | |
| method: "GET", | |
| }); | |
| FOLLOWING_DATA = await FOLLOWING_DATA.json(); | |
| const NO_F4F = FOLLOWING_DATA.profiles.filter((o) => o.is_following && o.is_followed == undefined); | |
| console.log(NO_F4F); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment