# Instagram 地点资料 API (instagram.location_info)

- Canonical page: [https://everyinfra.com/instagram-api/location_info](https://everyinfra.com/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 | 地点编号：帖子 location_detail 里的 id，或地点页链接（https://www.instagram.com/explore/locations/212988663/）里的那串数字，直接给链接也行。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| location_id | 地点编号。可以拿去调 location_info、location_nearby、location_posts。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| lat | 纬度。 |
| lng | 经度。 |
| address | 详细地址，原文透传。 |
| city | 城市名，用原平台的语言书写，未做中英归一。 |
| zip | （location_info）邮编；地点没填时不出现。 |
| phone | 联系电话，原文透传，未做号码格式归一。 |
| website | 账号或商家填写的外链网址。 |
| post_count | 发布内容总数。null 表示不公开，不等于 0。 |
| url | 该记录在原平台上的可访问链接。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 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
