Instagram Nearby locations API

List the places near a location_id: each row has name, category, lat, lng and post_count, and some also have price_range and hours_status, for $0.56 per 1,000 calls.

  • All rows in one response, no next page
  • origin marks the place you queried
  • Failed calls and empty results are not charged

API health

24h health
Normal
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Normal

Last 24 hours

Last 30 days

  1. 1Request

    POST /api/v1/social
    {
      "platform": "instagram",
      "action": "location_nearby",
      "params": {
        "location_id": "212988663"
      }
    }
  2. 2JSON response

    {
      "results": [
        {
          "rank": 1,
          "location_id": "105978888134411",
          "name": "Long Island City",
          "category": "Government Building"
        },
        …
      ],
      "count": 20
    }
  3. 3Rows

    ranklocation_idnamecategory
    1105978888134411Long Island CityGovernment Building
    2106075139432188New York, N.Y.Government organization
  4. 4CSV

    instagram-location_nearby-sample.csv rank,location_id,name,category,lat,lng,post_count,post_count_label,price_range,hours_status,thumbnail_url,url,platform,origin

A request with location_id goes in. One response returns the places near it, each row with name, lat, lng and more. These become table rows and a CSV file.

What data you get

The table shows rows from a real call for place 212988663, captured November 21, 2026 at 07:18 (UTC), that returned 20 rows. Your own calls return these fields as listed in the field reference. The origin object is the place you queried and is the same on every row.

ranklocation_idnamecategorylatlngpost_countpost_count_labelprice_rangehours_statusthumbnail_urlurlplatformorigin
1105978888134411Long Island CityGovernment Building40.714199791679-74.00640606880222002.2K postsnullnullhttps://scontent-lax7-1.cdninstagram.com/v/t51.82787-15/894460983_17948449221127280_215263549254016924_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=110&_nc_map=urlgen_bucketless&ig_cache_key=NDAzMTk4MzE0NDE1NTc3ODIyMzE3OTQ4NDQ5MjE1MTI3Mjgw.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3R…https://www.instagram.com/explore/locations/105978888134411/long-island-city/instagram{"location_id":"212988663","name":"New York, New York","lat":40.7142,"lng":-74.0064}
2106075139432188New York, N.Y.Government organization40.716666666667-7414000001.4M postsnullnullhttps://scontent-lax7-1.cdninstagram.com/v/t51.71878-15/916393440_1696283865348282_5708378039583168201_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=110&_nc_map=urlgen_bucketless&ig_cache_key=NDAzNTEzNDEwNDI4MDk0MTk1MA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnh…https://www.instagram.com/explore/locations/106075139432188/new-york-ny/instagram{"location_id":"212988663","name":"New York, New York","lat":40.7142,"lng":-74.0064}

Use cases

  • Find similar places nearby

    Read category to pick the places of the same kind from those nearby.

  • Map the area around a place

    Use lat and lng on each row to place the points, and origin to mark the center.

  • Compare how active nearby places are

    Read post_count to see which nearby places have more posts.

  • Check price level and opening status

    Read price_range and hours_status when they are given.

Instagram Graph API vs EveryInfra

Here is how the official Instagram Graph API and EveryInfra location_nearby compare on platform scope.

ComparedInstagram Graph APIEveryInfra
Platform scope"The Instagram Platform is a collection of APIs that allows your app to access data for Instagram professional accounts, including business and creator accounts."It reads the places near a place, which is not the data of any professional account. You do not need to connect an Instagram account to your app first.

Quotes are from Meta's developer documentation, checked 2026-11-22. This table compares access conditions only. Official sources: Instagram Platform overview (updated 2026-10-29)

Limits and gotchas

  • location_id is required. Use the id in a post's location_detail, or the number in a place page link. You can also pass the link itself.
  • All rows come back in one response and there is no next page. The number of rows differs from place to place.
  • For some places Instagram gives no nearby places. The call then returns an empty result and is not charged.
  • price_range and hours_status are absent when there is nothing to show.
  • post_count_label is the post count as Instagram's page writes it, such as 2.2K posts.
  • origin is the place you queried and is the same on every row.

Pricing

You pay $0.000556 per call, not per row. There is no paging. All rows come in one call. Failed calls and empty results are not charged.

CallsCost
10,000$5.56
100,000$55.56
1,000,000$555.56

Totals use the list price per call.

Code samples

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "instagram",
  "action": "location_nearby",
  "params": {
    "location_id": "212988663"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

API reference

See the parameters, response fields, errors and billing for location_nearby, and copy the page or open it as Markdown for an AI assistant.

POST

AI prompt

#
Please help me write a data collection script with the EveryInfra Instagram Nearby locations endpoint (instagram/location_nearby).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to instagram and action to location_nearby, and put the parameters inside params.
- Required parameters:
  - location_id: A numeric location ID, such as the id in a post's location_detail, or a location page link (https://www.instagram.com/explore/locations/212988663/); the link works too.
- Returns a list of records. Main fields of each record: rank (Position from 1: the order of this row…), location_id (Location ID), name, category, lat (Latitude), lng (Longitude), post_count, post_count_label (The post count as Instagram writes it,…), price_range ((location_nearby) Price range as Instag…), hours_status ((location_nearby) Opening status as Ins…), thumbnail_url, url; 13 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=instagram.
- Example request body:
{
  "platform": "instagram",
  "action": "location_nearby",
  "params": {
    "location_id": "212988663"
  }
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesinstagramPlatform identifier, fixed value.
actionbodystringYeslocation_nearbyCapability identifier, fixed value.
location_idbody.paramsstringYes-A numeric location ID, such as the id in a post's location_detail, or a location page link (https://www.instagram.com/explore/locations/212988663/); the link works too.

Response example

#
Captured November 21, 2026 at 07:18 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2. id, billing and quota differ on every call, so only their shape is shown.
json
{  "id": "req_…",  "platform": "instagram",  "action": "location_nearby",  "results": [    {      "rank": 1,      "location_id": "105978888134411",      "name": "Long Island City",      "category": "Government Building",      "lat": 40.714199791679,      "lng": -74.006406068802,      "post_count": 2200,      "post_count_label": "2.2K posts",      "thumbnail_url": "https://scontent-lax7-1.cdninstagram.com/v/t51.82787-15/894460983_17948449221127280_215263549254016924_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=110&_nc_map=urlgen_bucketless&ig_cache_key=NDAzMTk4MzE0NDE1NTc3ODIyMzE3OTQ4NDQ5MjE1MTI3Mjgw.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3R…",      "url": "https://www.instagram.com/explore/locations/105978888134411/long-island-city/",      "platform": "instagram",      "origin": {        "location_id": "212988663",        "name": "New York, New York",        "lat": 40.7142,        "lng": -74.0064      }    },    {      "rank": 2,      "location_id": "106075139432188",      "name": "New York, N.Y.",      "category": "Government organization",      "lat": 40.716666666667,      "lng": -74,      "post_count": 1400000,      "post_count_label": "1.4M posts",      "thumbnail_url": "https://scontent-lax7-1.cdninstagram.com/v/t51.71878-15/916393440_1696283865348282_5708378039583168201_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=110&_nc_map=urlgen_bucketless&ig_cache_key=NDAzNTEzNDEwNDI4MDk0MTk1MA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnh…",      "url": "https://www.instagram.com/explore/locations/106075139432188/new-york-ny/",      "platform": "instagram",      "origin": {        "location_id": "212988663",        "name": "New York, New York",        "lat": 40.7142,        "lng": -74.0064      }    }  ],  "count": 20,  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.

FieldMeaning
rankPosition from 1: the order of this row within this result. user_search: first the accounts returned by Instagram's search box (matched_by is search_box), in the search box's order; then the authors of posts found with this keyword, added to fill up the count (matched_by is post_author); results without matched_by carry the position at which Instagram ranks the account for this keyword. similar_profiles: the account's place among the similar accounts, ordered by followers. likers: the account's place in the list of likers.
location_idLocation ID. Pass it to location_info, location_nearby or location_posts.
nameName of the object itself, for account, product and business capabilities.
categoryCategory name in the platform's own taxonomy, not normalized across platforms.
latLatitude.
lngLongitude.
post_countTotal posts. null means not disclosed, not 0.
post_count_labelThe post count as Instagram writes it, such as 2.2K posts.
price_range(location_nearby) Price range as Instagram writes it, such as $$; absent when there is none.
hours_status(location_nearby) Opening status as Instagram writes it; absent when there is none.
thumbnail_urlThumbnail link, lower resolution than image_url.
urlLink to the record on the platform.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
origin(location_nearby) The location you asked about, the same on every row: location_id, name, lat, lng.

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

FAQ

What does the Instagram nearby places API return?

Each row is one nearby place: location_id, name, category, lat, lng, post_count and url, and some rows also have price_range and hours_status.

Can I page through the results?

No. One call returns all rows and there is no next_page_token. The number of rows differs by place.

What does rank mean?

rank is the order of the row within this result, starting at 1.

How much does it cost to read the nearby places?

It costs $0.000556 per call, or $0.56 per 1,000 calls, billed per call and not per row. Failed calls and empty results are not charged.

Do I need an Instagram login?

No. You send one EveryInfra API key in the Authorization: Bearer header, and the request carries only location_id. No Instagram login or access token is needed.

You can call the other Instagram endpoints with the same key, such as location_info to read the details of one nearby place.

Google Analytics needs consent. Privacy