Instagram API needs access token to get public data

1

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

  • User
  • Number of likes
  • Number of followers
  • Post date

As of Jul / 2016, however, you will need to use an access token to retrieve the user's public data.

The problem is that I currently only need 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 must authorize access to the data.

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

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

If yes, this does not make sense if the data is public.

    
asked by anonymous 03.05.2016 / 13:33

0 answers