Instagram feed based on tag and geolocation

前端 未结 2 808
天命终不由人
天命终不由人 2020-12-29 15:38

Is it possible to get an instagram feed based on both a tag and location?

I want all the images tagged with #stackExchange located in Johannesburg ( and surrounding

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 15:59

    There is no API to get feed with both tag and location, there are independent APIs for tag and location, but you cannot currently make a single call and get results filtered for both.

    Tag API:

    https://api.instagram.com/v1/tags/snow/media/recent?access_token=ACCESS-TOKEN
    

    Location search API:

    https://api.instagram.com/v1/media/search?lat=48.858844&lng=2.294351&access_token=ACCESS-TOKEN
    

    You can make location API call cache and then manually look for tags, but this may be expensive on number of API calls.. here is an implementation of location search and then you can filter by keyword: http://www.gramfeed.com/instagram/map

提交回复
热议问题