API Instagram get information about a particular publication

0

Is it possible to access the media (of course public) without having the authorization of the user responsible for it? The idea is to know the number of tastings and comments of a particular publication via API.

One of the alternatives I found in some posts is to load the html from the example publication: link And manually fetch the number of tastings and comments. This alternative would even solve my problem, but I'm deploying this solution in a system where multiple users would make this request, which may be a bit "stressful" to the server and run the risk of being suspicious of DDoS.

I have already created a "Client Application" in Instagram, I have Client ID, Client Secret and ACCESS TOKEN.

    
asked by anonymous 09.06.2016 / 15:51

1 answer

3

Instagram is now in safe mode ( SandBox Mode ).

This mode began to be deployed to all customers on June 1, 2016.

Before it, you could get public images through queries with your access_token , now this is no longer possible. To get this data using access_token , your application must be submitted to Instagram to exit the SandBox mode and go online.

But then, what is SandBox Mode ?

Each new application created on the Instagram platform starts in Sandbox mode. This is a fully functional environment that allows you to test publicly available API terminals before submitting your application for review. Safe Mode is ideal for developers who are new to the Instagram platform and want to explore the API platform as well as for teams that need multiple clients for development, testing and other non-live environments.

To help you develop and test your application, the users and media available in Sandbox mode are actual Instagram data (that is, what is normally visible in the Instagram application), but with the following conditions:

  • Apps in the sandbox are restricted to 10 users
  • The data is restricted for users 10 and 20 the most from each of these users
  • Reduced API rate limits

What does it interfere with for me?

This is simple, my dear friend.

While your app is in SandBox Mode , you will only be able to interact with those who are set up with you. That is, you will not have access to the photos and other information of the rest of the users.

Is there another way to get the data?

You can download the HTML, as stated in the question. But Instagram can block you with that. But the best way is actually to submit your application for approval.

Explanation in SOen

    
09.06.2016 / 19:20