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
?
The Instagram Basic Display API allows users of your app to get basic profile information, photos, and videos in their Instagram accounts. The API can be used to access any type of Instagram account but only provides read-access to basic data.
Go to instagram.com. Click on the gear icon next to your Edit Profile option and select Privacy and Security. Scroll down to Data Download. Click Request Download.
The API can be used to get and publish their media, manage and reply to comments on their media, identify media where they have been @mentioned by other Instagram users, find hashtagged media, and get basic metadata and metrics about other Instagram Businesses and Creators.
Instagram gives every third-party application connected to its API a limit of how many times it can call their data. They have now reduced their API limit from 5,000 calls per hour to 200 calls per hour.
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)
Instagram has removed the ability to get all public posts with a given hashtag. The api you would have used is deprecated: https://www.instagram.com/developer/deprecated/endpoints/tags/
I was sad to learn this today, as I have been doing this for years but just made a new dev account, only to find that it can not access the deprecated endpoints.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With