# Instagram 粉丝数量 API (instagram.followers)

- Canonical page: https://everyinfra.com/instagram-api/followers
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "instagram", "action": "followers", "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

Instagram 粉丝数量按 `username` 返回一个账号的粉丝数 `follower_count` 和关注数 `following_count`，附带用户 ID、用户名、显示名、头像和主页链接，不返回名单。它回答「这个账号有多少粉丝」，适合大批量核对达人粉丝量、定时记录账号增长，或者在拉取粉丝名单前先估一下规模。

只要数字时用它最省事；要逐个看粉丝是谁，用粉丝列表；要看这个账号关注了谁，用关注列表。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | Instagram 账号 handle，建议不带 @ 或完整主页 URL。profile/persona/user_posts/reels 查询账号数据；followers 只查粉丝数量，followers_list/following_list 才查粉丝/关注账号列表。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| username | 用户名（@handle）。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| following_count | 关注数。null 表示不公开，不等于 0。 |
| 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": "followers",
  "params": {
    "username": "nasa"
  }
}'
```

```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": "followers",
        "params": {
            "username": "nasa",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `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": "followers",
  "results": {
    "id": "•••",
    "username": "nasa",
    "url": "https://www.instagram.com/•••",
    "name": "NASA",
    "avatar_url": "https://scontent-iad3-2.cdninstagram.com/•••",
    "follower_count": 104336071,
    "following_count": 89,
    "platform": "instagram"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 粉丝数量和粉丝列表怎么选？

只需要数字，比如筛选达人或记录增长，用粉丝数量，它返回一个对象；要知道粉丝具体是谁、做受众分析，用粉丝列表，它逐个返回账号。先看数量再决定要不要拉名单，能省不少调用。

### 怎么用它记录粉丝增长？

每天固定时间读一次，把 `follower_count` 和读取时间一起存下来，前后相减就是日增量。同时存下 `id`，方便和别的能力返回的记录对上。

### 和主页详情里的粉丝数一样吗？

两处都是账号的粉丝数。主页详情还返回简介、帖子数、外链、最近帖子等一整套资料；只关心 `follower_count` 和 `following_count` 时，粉丝数量返回的内容更少、更好处理。

## 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
