# Instagram Location details API (instagram.location_info)

- Canonical page: [https://everyinfra.com/en/instagram-api/location_info](https://everyinfra.com/en/instagram-api/location_info?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "instagram", "action": "location_info", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=instagram&action=location_info

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| location_id | not declared | yes | not declared | A numeric location ID: the `id` in a post's `location_detail`, or the number in a location page link such as https://www.instagram.com/explore/locations/212988663/. You can pass the link itself too. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| location_id | Location ID. Pass it to location_info, location_nearby or location_posts. |
| name | Name of the object itself, for account, product and business capabilities. |
| category | Category name in the platform's own taxonomy, not normalized across platforms. |
| lat | Latitude. |
| lng | Longitude. |
| address | Full address, passed through as is. |
| city | City name in the platform's language, not normalized. |
| zip | (location_info) Postal code; absent when the location has none. |
| phone | Contact phone number, passed through without format normalization. |
| website | External website entered by the account or business. |
| post_count | Total posts. null means not disclosed, not 0. |
| url | Link to the record on the platform. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```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_info",
  "params": {
    "location_id": "212988663"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "instagram",
        "action": "location_info",
        "params": {
            "location_id": "212988663",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-21T07:18:47Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "instagram",
  "action": "location_info",
  "results": {
    "location_id": "212988663",
    "name": "New York, New York",
    "category": "City",
    "lat": 40.7142,
    "lng": -74.0064,
    "post_count": 84324691,
    "url": "https://www.instagram.com/explore/locations/212988663/",
    "platform": "instagram"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=instagram
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
