0

I am trying to scrape accounts which are similar/related to a given account in instagram. Querying URLS: https://www.instagram.com/{username}/?_a=1 doesn't provide this information.

Any help is appreciated.

Neha
  • 1
  • 2

2 Answers2

0

If you want to list all followers and followings of a user, what I guess based of your question. aandergr made answered that in this question. If not let me know how you define "similar"

TilGP
  • 1
  • Thanks for your response. But I am looking for suggested accounts. For example - If i follow maccosmetics then other beauty brands would be similar/suggested accounts to follow. – Neha Nov 28 '21 at 17:11
  • Ah ok, can't seem to find something for that. good luck – TilGP Nov 29 '21 at 18:11
0

A way to get this is from link: https://www.instagram.com/{username} and info comes as "edge_related_profiles":{"edges":[{"node":{".....}}]}

And to get this, we need to be authenticated to the site as a guest and should NOT be logged in. I am still investigating the reason of this but yes workaround is possible.

Update 04/18/2022 => This queryhash works fine to pull suggested/similar accounts: https://www.instagram.com/graphql/query/?query_hash=7c16654f22c819fb63d1183034a5162f

Neha
  • 1
  • 2
  • Any update regarding this? It seems to work okay when not logged in but that leads to instagram redirect towards login page. – Waqar Jan 08 '22 at 07:56
  • @Waqar Please try with query in the updated answer. – Neha Apr 18 '22 at 10:53