Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instagram feed based on tag and geolocation

Tags:

c#

instagram

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 radius of 100 km )

like image 602
Mark Redfern Avatar asked Feb 27 '14 12:02

Mark Redfern


1 Answers

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

like image 128
krisrak Avatar answered Oct 13 '22 01:10

krisrak