How to get all public posts using Instagram API?

yogendrayaduvanshi picture yogendrayaduvanshi · Oct 27, 2015 · Viewed 27.4k times · Source

I'm trying to get all public posts using Instagram API.
There are some existing apps like Geofeedia, COEverywhere and TrackinU which can get public posts of social networking sites.

Is there any way to get public posts just like in Twitter Stream API?

Answer

Matej J picture Matej J · May 5, 2020

You can easily get all posts in json by appending ?__a=1 to url.

For example for hashtags: https://www.instagram.com/explore/tags/italy/?__a=1

Edit: This also applies for everything else (users, posts)