Instagram 在特定日期范围内搜索标签 [英] Instagram Search for a tag within particular date range
问题描述
我想从 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-名称}/媒体/最近
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_id
和 min_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 并搜索主题标签和你可以做日期/时间过滤器,它是一个不同的黑客实现.
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屋!