I am trying to retrieve the follower count only just using a user's instagram handle (aka @myusername). I read in several answers that you can access the "https://www.instagram.com/{username}/?__a=1" to retrieve the block of json that has all the details. However, when I try to do that now in 2020 after the api change, the url simply redirects me to the login page.
I also looked at instagram basic display/graph api but I can't seem to find a way to get other users' follower counts.
From the official ig basic display api documentation: https://developers.facebook.com/docs/instagram-basic-display-api/reference/user
This api only allows you to get the account_type, id, ig_id (about to be deprecated), media count and username. (no sign of follower count)
From the official ig graph api documentation:
https://developers.facebook.com/docs/instagram-api
"The API cannot access Intagram consumer accounts (i.e., non-Business or non-Creator Instagram accounts). If you are building an app for consumer users, use the Instagram Basic Display API instead."
Since my program is suppose to retrieve the follower count from accounts that are not necessarily professional, I can't seem to figure out what to do...
In conclusion:
- I have tried web scraping -> get redirected to login page
- Basic display api -> can't get the follower count
- Graph api -> can't access consumer accounts
Does anyone have a solution for this?
Thank you!