Instagram Search for a tag within particular date range

前端 未结 1 1814
长情又很酷
长情又很酷 2020-12-10 09:32

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

https://api.instagram.com/

相关标签:
1条回答
  • 2020-12-10 10:24

    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 and min_tag_id is epoch_time + "000000"

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

    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.

    0 讨论(0)
提交回复
热议问题