Collecting data from instagramm using logstash

hi, i san in stackoverflow that ti is possible to perfome data collecting from instagram, using this logstash conf:
Instagram has an API so you can definitely attempt something with the http_poller plugin.

Something like this:

input {
   http_poller {
      urls => {
         search => {
            method => get
            url => "https://api.instagram.com/v1/media/search?lat=48.858844&lng=2.294351&access_token=ACCESS-TOKEN"
         }
      }
      request_timeout => 60
      interval => 60
      codec => "json"
   }
}
output {
   stdout {
       codec => rubydebug
   }
}

and want to know if this is correct and if someone tried it, i found this script in this stockoverflow utl: