如何在Instagram上找到当天最受欢迎的图像?

时间:2013-10-15 23:55:26

标签: javascript php json instagram

Instagram API真的没有那么好记录。

有没有人知道我可以按位置找到最喜欢的Instagram照片(当天)?就像在今天,大多数丹麦人都喜欢这张照片......

谢谢!

1 个答案:

答案 0 :(得分:2)

如果您知道所需的位置ID,则应该可以使用

按位置获取热门照片
https://api.instagram.com/v1/locations/{location-ID}/media/popular?MIN_TIMESTAMP={UNIX timestamp for beginning of day}&access_token={access token}

您可以使用位置/搜索查询搜索位置ID,如下所示:

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

在这两个网址中,{}代表您需要定义的变量。

参考: http://instagram.com/developer/endpoints/locations/

相关问题