Instagram在特定日期范围内搜索标签 [英] Instagram Search for a tag within particular date range
问题描述
我正在寻找一个特定标签 mytag 的instagram的结果,我尝试使用这个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} / media / recent
https://api.instagram.com/v1/tags/{tag-name}/media/recent
但即使有更多的结果,它只返回33个结果。这个问题可以被认为是这个问题的扩展:如何通过API查询搜索Instagram ?
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调用API / code>和
min_tag_id
像这样:
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屋!