How can I find the most liked images of the day on Instagram?

 ̄綄美尐妖づ 提交于 2019-12-04 14:41:04

问题


The Instagram API is really not that well documented.

Does anyone know of a way where I can find the most liked Instagram photos (of the day) by location? As in, what picture did most Danish people like today...

Thanks!


回答1:


If you know the location ID you want, you should be able to get popular photos by location using

https://api.instagram.com/v1/locations/{location-ID}/media/popular?MIN_TIMESTAMP={UNIX timestamp for beginning of day}&access_token={access token}

and you can search for a location ID using the location/search query, like so:

https://api.instagram.com/v1/locations/search?lat={latitude}&lng={longitude}&access_token={access token}

in both of these URLs, {} represent variables that you need to define.

Reference: http://instagram.com/developer/endpoints/locations/



来源:https://stackoverflow.com/questions/19393108/how-can-i-find-the-most-liked-images-of-the-day-on-instagram

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!