Tag and geolocation Instagram channel

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

I want all images marked with #stackExchange to be located in Johannesburg (and the surrounding radius is 100 km).

+4
source share
2 answers

There is no API for receiving a feed with both a tag and a location, there are independent APIs for the tag and location, but you cannot make one call at the moment and get the 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

API , , API.. , : http://www.gramfeed.com/instagram/map

+9

krisrak - : , , . check instafeed.js - , ( , ):

var mylocation = 1234569; //must be a number! 

var feed = new Instafeed({
  get: 'location',
  locationId: mylocation,

  clientId: 'someId', //change this with the client id you get from Instagram

  filter: function(image) {
    return (image.tags.indexOf('myTag') >= 0);
  }
});
feed.run();

Google. " ?". - . , InstagramId.

, , Instagram api, , , ... fora media api ( ).

: !

+2

Source: https://habr.com/ru/post/1529200/


All Articles