# Instagram 关注列表 API (instagram.following_list)

- Canonical page: https://everyinfra.com/instagram-api/following_list
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "instagram", "action": "following_list", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 50, max 500 per call
- Related: Returns the accounts that `username` follows. For the accounts that follow `username`, use instagram.followers_list.
- Mode: sync; add "mode": "async" for slow tasks

传进 `username`，Instagram 关注列表返回这个账号自己点了关注的那些人，每行带私密 `is_private` 和认证 `is_verified` 两个标记，外加名字、头像和主页链接。它回答「这个账号在留意谁、和谁有来往」，适合顺着一个种子账号找同类账号，或者核实某个达人和某个品牌是否互相关注。

要多少行由 `limit` 决定；批量读多个种子账号时，每行的 `of_user` 标明名单的主人，合并后不会混。核实互关要读两回：达人的关注里有品牌，品牌的关注里也有达人，才算互关；一次最多 500 行，名单读不全时，找不到不等于没关注。

## Health

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

## 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 才查粉丝/关注账号列表。 |
| limit | integer (1–500) | no | 50 | 这次调用最多返回的条数，整数，1–500；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| username | 用户名（@handle）。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| is_private | 是否私密账号。 |
| is_verified | 是否为平台认证账号（蓝V等）。null 表示无法判定。 |
| relation | 关系类型。 |
| of_user | 所属用户。 |
| 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": "following_list",
  "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": "following_list",
        "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; the list keeps the first 2 of 50. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "instagram",
  "action": "following_list",
  "results": [
    {
      "id": "•••",
      "username": "•••",
      "url": "https://www.instagram.com/•••",
      "name": "•••",
      "avatar_url": "https://instagram.fbhx4-2.fna.fbcdn.net/•••",
      "is_private": false,
      "is_verified": true,
      "relation": "Followings",
      "of_user": "nasa",
      "platform": "instagram"
    },
    {
      "id": "•••",
      "username": "•••",
      "url": "https://www.instagram.com/•••",
      "name": "•••",
      "avatar_url": "https://instagram.fbhx4-1.fna.fbcdn.net/•••",
      "is_private": false,
      "is_verified": true,
      "relation": "Followings",
      "of_user": "nasa",
      "platform": "instagram"
    }
  ],
  "count": 50,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 想看谁关注了某个账号，该用这一页吗？

不该，那是粉丝列表的事。这一页从这个账号往外看，列的是它点了关注的人。两份名单的请求写法和返回列一样，只差能力名，很容易传错，存数据时最好连能力名一起记下。这里传入的 `username` 是关注别人的一方，`of_user` 记的就是它，名单里每一行都是被它关注的账号。

### 怎么从关注名单里挑出值得跟进的账号？

先用 `is_verified` 挑出认证账号，再去掉 `is_private` 为 true 的私密账号。剩下的用 `username` 去读主页详情，看粉丝数和简介再定。关注很多的账号一次读不全，挑种子时别指望名单覆盖全部。挑出的账号也可以交给相似账号，从一个样板再扩出一批同类。品牌方盯竞品时，可以隔一段时间读一次对手签约达人的关注名单，和上次比，新冒出来的品牌官方号就是值得去核实的合作线索。

### 能一层层往外扩展吗？

可以。把第一层名单里挑出的 `username` 再传进来，就得到第二层。按 `id` 去重，每层设个人数上限，名单就不会越滚越大。第二层名单的 `of_user` 就是第一层里的某个账号，合并后靠它回溯每个账号是从哪个种子扩出来的。同一个账号被几个种子都关注，按 `id` 数一数出现次数，就能看出哪些账号在这个圈子里被反复关注。每扩一层，请求次数等于上一层挑出的账号数，先定好层数再开始。

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