Instagram 搜索特定日期范围内的标签 [英] Instagram Search for a tag within particular date range

查看:28
本文介绍了Instagram 搜索特定日期范围内的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找从 instagram 中检索特定标签 mytag 的结果,我尝试使用此 API 调用,

I am looking to retrieve results from instagram for a particular tag mytag , I tried using this API call,

https://api.instagram.com/v1/tags/{tag-name}/媒体/最近

https://api.instagram.com/v1/tags/{tag-name}/media/recent

但即使有更多结果,它也只返回 33 个结果.这个问题可以被认为是这个问题的延伸:How To Search Instagram via API Query?

but it only returned 33 results even though there are more results. This question can be considered an extension to this question: How To Search Instagram via API Query?

返回某个日期范围内特定标签的 Instagram 结果的方法是什么?这可以通过 min_tag_id 和 max_tag_id 其中来完成.不确定如何将我的日期时间转换为 min_tag_id 或 max_tag_id?

What is the way to return instagram results for a particular tag within a date range? This may be done through the min_tag_id and max_tag_id which. Not sure how to convert my date time to min_tag_id or max_tag_id?

推荐答案

使用 max_tag_idmin_tag_id 调用 API,如下所示:

call the API with max_tag_id and min_tag_id like this:

https://api.instagram.com/v1/tags/{tag-name}/media/recent?client_id={CLIENT_ID}&max_tag_id=1378677250000000&min_tag_id=1375998850000000

max_tag_id 和 min_tag_id 是 epoch_time + "000000"

max_tag_id and min_tag_id is epoch_time + "000000"

每个 API 调用仍然只能得到 20 个,使用分页来获取全部

you still only get 20 per API call, use pagination to get all

更新:Instagram 更改了 tag_id,因此无法进行日期过滤这边走.登录 http://gramfeed.com 并搜索主题标签和您可以进行日期/时间过滤,这是一种不同的 hack 实现.

Update: Instagram changed the tag_id, so date filter cannot be done this way. Login on http://gramfeed.com and search for a hashtag and you can do date/time filter, its a different hack implementation.

这篇关于Instagram 搜索特定日期范围内的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆