Instagram JSON

auuuu

Elite Member
Joined
Jul 10, 2010
Messages
1,847
Reaction score
419
Hi guys, I am looking for the Instagram JSON. Actually the ?__a=1 doesn't work anymore and I found only https://www.instapi.io/ as alternative but it is a paid one, any other ideas?
 
Check the html of the page, you will find your data there :)
 
scrape the web page profile URL

Regex get json
Code:
<script type=\"text/javascript\">window._sharedData = (.*?);</script>


that's it
 
Look at networks tab in chrome dev tools and reverse engineer the API requests. Also, look on github for repos that already have the private API documented.
 
Look at networks tab in chrome dev tools and reverse engineer the API requests. .

The JSON is kept in the main webpage, there is no additional call made (it used to be the ?__a=1 call, but they changed this quite a while ago (months, maybe over a year). Now you have to parse it from the page
 
I just checked. The JSON comes part of the page if you directly open a user's page, i.e. instagram.com/abc however if you navigate to a different user's page, it makes the XHR call with `?__a=1`. Just open https://www.instagram.com/selenagomez/?__a=1 when you're logged in on browser and you'll get the JSON.

Screen Shot 2018-07-24 at 12.20.18 AM.webp


Screen Shot 2018-07-24 at 12.20.10 AM.webp
 
Thank you for the answer, I'll look into them!
 
I just checked. The JSON comes part of the page if you directly open a user's page, i.e. instagram.com/abc however if you navigate to a different user's page, it makes the XHR call with `?__a=1`. Just open https://www.instagram.com/selenagomez/?__a=1 when you're logged in on browser and you'll get the JSON.

Nice, they must have added it back!

Definitely much easier to use :)
 
Back
Top