Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get all public posts using Instagram API?

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?

like image 811
yogendrayaduvanshi Avatar asked Oct 27 '15 05:10

yogendrayaduvanshi


People also ask

Does Instagram have a public 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.

How can I get all my posts on Instagram?

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.

What information can I get from Instagram API?

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.

What are some of the limitations with Instagram's API?

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.


Video Answer


2 Answers

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)

like image 154
Matej J Avatar answered Sep 28 '22 04:09

Matej J


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.

like image 34
hansmosh Avatar answered Sep 28 '22 02:09

hansmosh