S
S
Seva Zhidkov2014-11-02 17:17:14
Python
Seva Zhidkov, 2014-11-02 17:17:14

How to do a city photo search through the Instagram API?

There is a function to search for photos by coordinates within a radius of 5 kilometers.
And there are times when they are not enough, and every point in the city is too lazy to mark.
I see this through checking if the coordinate belongs to some city, but since the city is always different, you need to do this through "something". For example, google maps, but I don’t know if it has such a function

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IIISpikerIII, 2014-12-25
@Shamoi

In instagram, you can search not only by coordinates, but also by locations. Cities most often have an id of their location.
Those. You can use API methods:

  • location search by coordinates https://api.instagram.com/v1/locations/search
  • search for publications by location https://api.instagram.com/v1/locations/{location-i...

A
Arseny Sokolov, 2015-03-14
@ArsenBespalov

The question may be outdated, but personally I make a coverage map for each city with a certain radius, and then I do a media search: https://api.instagram.com/v1/media/search
This way you can get photos much more accurately than searching by locations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question