Skip to content

Instantly share code, notes, and snippets.

@tadwohlrapp
Created January 31, 2023 14:58
Show Gist options
  • Save tadwohlrapp/eb5be609ee8427bd6fdf9cd97939480a to your computer and use it in GitHub Desktop.
Save tadwohlrapp/eb5be609ee8427bd6fdf9cd97939480a to your computer and use it in GitHub Desktop.

Collection of all query_hashes I could identify to get edge_follow or edge_followed_by data.

Entry URL is https://www.instagram.com/graphql/query/?query_hash=${hash}&variables={"id":"${userId}","first":"48"}.

Replace ${hash} with one of the five hashes below and ${userId} with the logged in user ID (stored in ds_user_id Cookie).

Hash Type Returned properties
58712303d941c6855d4e888c5f0cd22f edge_follow followed_by_viewer, is_verified, requested_by_viewer
d04b0a864b4b54837c0d870b0e77e076 edge_follow followed_by_viewer, is_verified, requested_by_viewer, is_private
3dec7e2c57367ef3da3d987d89f9dbc8 edge_follow followed_by_viewer, is_verified, requested_by_viewer, is_private, follows_viewer
37479f2b8209594dde7facb0d904896a edge_followed_by followed_by_viewer, is_verified, requested_by_viewer
c76146de99bb02f6415203be841dd25a edge_followed_by followed_by_viewer, is_verified, requested_by_viewer, is_private

The properties id, username, full_name, and profile_pic_url are always returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment