Instagram API requires access token to get public data

Asked

Viewed 458 times

1

I need to consume the Instagram API to search for posts with a hashtag set and extract the following information:

  • User
  • Number of Ikes
  • Number of followers
  • Date of the post

However from Jul/2016 it will be necessary to use an access token to obtain the public data of the user.

The problem is that currently only the client_id to get the information, so I set up a cronjob that runs a script that in turn calls the API and writes the data to the database.

https://api.instagram.com/v1/tags/{tag}/media/recent?client_id=<CLIENT_ID>

However with the new API it is necessary to obtain an access token and this is manual, the client needs to authorize the access to the data.

https://api.instagram.com/v1/tags/{tag}/media/recent?access_token=<ACCESS_TOKEN>

With this new API, the client will always have to authorize the application?

If so, it makes no sense if the data is public.

  • Hello Filipe Moraes, I have the same problem, you have already found some solution?

  • @Leonardorocha I’m not even able to approve an app to test with production data and try to get an answer. Unfortunately they made it very complicated.

  • Complicated. Thank you for the reply.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.