I'm trying to figure something out...
As most of the 'old' API has been shut down, I've taken a look at the Graph API. I would like to retrieve the list of followers of a specific user. For the life of me I can't figure it out... is this really not possible anymore? The Business Discovery API is limited to only business accounts (as is the whole Graph API for now), but even that only seems to be able to retrieve the followers_count, not the actual followers.
https://developers.facebook.com/docs/instagram-api/business-discovery
What I can't wrap my head around: With all these limitations of the Graph API, how is it that services like HypeAuditor.com are still up and running? How are they getting their data, if the API is so incredibly limited?
Maybe someone has some insights..
Instagram API was deprecated as April 4th 2018 (You can read all of the change log here https://www.instagram.com/developer/changelog/) and this is all because privacy issues landed on Instagram as so many developers misused the API to retrieve user data massively using user's private key.
Now, you can still use Instagram API but only limited to your own user (since Instagram only leave this endpoint available for you). If you want to get other user's data (for example Justin Bieber's follower, following, post count, etc.) you can use Instagram Private APIs made by developers by reverse engineering the Instagram app. If you choose to use Instagram private API, you need to be careful, because you will have bigger limitation of maximum request in some period of time (from my experience, about 100 request of pulling user data per-5 minutes or so).
You need to note that Facebook don't want you to you access other people's data by deprecating most of it's API endpoints.
Facebook currently is developing new Instagram API for awhile called Graph API. But if you don't have any products in a production state, your application might be rejected (read here at When To Submit
section https://developers.facebook.com/docs/apps/review/). By using this API, you can get all of your demographics data (limited to your own user) by connecting your Instagram and Facebook account.
This is a reference to a good Instagram Private API I ever use:
If you just need basic data like:
there is API endpoint for public use by Instagram. You can use this link format:
https://www.instagram.com/web/search/topsearch/?context=blended&query=put_instagram_username_here.
After gathering the desired data (e.g. follower_count) you can start processing the data and store it. I get the endpoint by debugging at network calls from the Instagram web.
PHP repository made by mg25 has been taken down by Facebook Inc. (github DMCA article here) because of data violation and prohibited usage behavior of Instagram API.
UPDATE (22nd March 2020):
Here is clone of Instagram-API by mgp25 uploaded to Launchpad (launchpad.net/instagram-api). Thank you Eugene for this info!
Disclaimer: Use the library on your own risk! Since the library is no longer maintained, some API might be deprecated. The usage might be dangerous and may result in permanent ban.