Skip to content

Instantly share code, notes, and snippets.

@byigitt
Created February 22, 2024 19:41
Show Gist options
  • Select an option

  • Save byigitt/8f01dcbe12738bf5b5a2882d9f10a621 to your computer and use it in GitHub Desktop.

Select an option

Save byigitt/8f01dcbe12738bf5b5a2882d9f10a621 to your computer and use it in GitHub Desktop.
check spotify followers who you follow but they dont follow you back
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