Instagram API
  1. locations
Instagram API
  • geographies
    • Get recent media from a custom geo-id.
      GET
  • locations
    • Search for a location by geographic coordinate.
      GET
    • Get information about a location.
      GET
    • Get a list of recent media objects from a given location.
      GET
  • media
    • Get a list of currently popular media.
      GET
    • Search for media in a given area.
      GET
    • Get information about a media object.
      GET
    • Get information about a media object.
      GET
  • comments
    • Get a list of recent comments on a media object.
      GET
    • Create a comment on a media object.
      POST
    • Remove a comment.
      DELETE
  • likes
    • Remove a like on this media by the current user.
      DELETE
    • Get a list of users who have liked this media.
      GET
    • Set a like on this media by the current user.
      POST
  • tags
    • Search for tags by name.
      GET
    • Get information about a tag object.
      GET
    • Get a list of recently tagged media.
      GET
  • users
    • Search for a user by name.
      GET
    • See the authenticated user's feed.
      GET
    • See the list of media liked by the authenticated user.
      GET
    • Get basic information about a user.
      GET
    • Get the most recent media published by a user.
      GET
  • relationships
    • List the users who have requested this user's permission to follow.
    • Get the list of users this user is followed by.
    • Get the list of users this user follows.
    • Get information about a relationship to another user.
    • Modify the relationship between the current user and the target user.
  1. locations

Search for a location by geographic coordinate.

GET
/locations/search
locations
Search for a location by geographic coordinate.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.instagram.com/v1/locations/search'
Response Response Example
{
  "data": [
    {
      "id": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string"
    }
  ],
  "meta": {
    "code": 0
  }
}

Request

Query Params
distance
integer 
optional
Default is 1000m (distance=1000), max distance is 5000.
facebook_places_id
string 
optional
Returns a location mapped off of a Facebook places id. If used, a Foursquare id and lat, lng are not required.
foursquare_id
string 
optional
Returns a location mapped off of a foursquare v1 api location id. If used, you are not required to use
lat and lng. Note that this method is deprecated; you should use the new foursquare IDs with V2 of their API.
lat
number 
optional
Latitude of the center search coordinate. If used, lng is required.
lng
number 
optional
Longitude of the center search coordinate. If used, lat is required.
foursquare_v2_id
string 
optional
Returns a location mapped off of a foursquare v2 api location id. If used, you are not required to use
lat and lng.

Responses

🟢200List of found locations.
application/json
Body
data
array[object (LocationInfo) {4}] 
optional
List of found locations
id
string 
optional
ID of this location (in some responses it has a type of 'integer')
latitude
number <double>
optional
Location latitude
longitude
number <double>
optional
Location longitude
name
string 
optional
Location name
meta
object (MetaData) 
optional
code
integer <int32>
optional
HTTP result code
Modified at 2023-08-15 03:55:31
Previous
Get recent media from a custom geo-id.
Next
Get information about a location.
Built with