# 互選公眾號達人詳情 API

> 騰訊互選裡一個公眾號給廣告主看的資料：粉絲、類目、閱讀資料和報價。

網頁版：https://okdata.online/zh/apis/wechat_mp/huxuan/creators/get/

- **介面**：`GET /v1/wechat_mp/huxuan/creators/get`
- **ID**：`wechat_mp.huxuan.creators.get`
- **價格**：$0.065/次
- **返回**：一個 Creator 物件（`data.item`）
- **狀態**：預覽
- **適合**：找博主

## 價格

每次呼叫 $0.065，返回一個結果。查 1,000 次共 $65.00。請求到了平台的查詢，查不到或出錯也照常計費；還沒請求到平台就被攔下的不扣費。

## 引數

| 引數名 | 型別 | 必填 | 預設值 | 說明 |
|---|---|---|---|---|
| `id` | string | 是 |  | 互選公眾號 ID：互選達人搜尋結果裡的 id。（例：`wx53ae5982c506aaac`） |
| `view` | string: brief / compact / standard / full | 否 | `standard` | 返回多少欄位。brief：只給 ID、標題、正文前 100 字、連結、時間和主要數字，適合先掃一遍列表，再按 ID 取詳情；compact 去掉空欄位、長正文截到 500 字；full 會在 ext 裡帶上平台特有欄位。 |
| `fields` | string[] | 否 |  | 只保留這些欄位，按路徑寫（如 author.name），用來省 token。放在查詢引數裡時用逗號分隔。 |

cursor、view、fields 的用法見 [請求說明](https://okdata.online/zh/docs/requests/)。

## 返回欄位

每一條都是一個 [Creator](https://okdata.online/zh/docs/objects/creator/)。

| 欄位 | 型別 | 說明 |
|---|---|---|
| `id` | string | 達人廣場裡的達人 ID，其他達人廣場介面用它。 |
| `url` | string | 達人在達人廣場的主頁。 |
| `account_id` | string \| null | 達人在平台上的帳號 ID（達人廣場給出時）：抖音是 douyin.users.get 用的 sec_uid（MS4w 開頭），小紅書是使用者 ID。 |
| `username` | string \| null | 平台上的使用者名稱或號（有的話）。 |
| `name` | string | 暱稱。 |
| `avatar_url` | string \| null | 頭像圖片地址。 |
| `location` | string \| null | 達人所在地。 |
| `gender` | string \| null | 達人廣場標註的性別。 |
| `followers` | integer \| null | 粉絲數。 |
| `categories` | string[] \| null | 達人廣場的內容類目，平台原文。 |
| `engagement_rate` | number \| null | 近期作品的互動率，0 到 1（0.038 即 3.8%）。 |
| `median_views` | integer \| null | 近期日常作品的播放或閱讀中位數。 |
| `median_engagements` | integer \| null | 近期日常作品的互動中位數（贊、評、藏、轉）。 |
| `rates` | Rate[] \| null | 公開的合作報價；達人廣場不展示時為 null。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

## 請求示例

### cURL

```bash
curl -G "https://api.okdata.online/v1/wechat_mp/huxuan/creators/get" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'id=wx53ae5982c506aaac'
```

### Python

```python
import os
import requests

resp = requests.get(
    "https://api.okdata.online/v1/wechat_mp/huxuan/creators/get",
    headers={"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"},
    params={"id": "wx53ae5982c506aaac"},
    timeout=60,
)
body = resp.json()
if body["code"] != "ok":
    raise RuntimeError(f"{body['code']}: {body['message']} (charged: {body['charged']})")

row = body["data"]["item"]
print(row["name"], row["followers"], row["engagement_rate"])
print("cost: $" + body["meta"]["billing"]["amount"])
```

### TypeScript

```ts
const url = new URL('https://api.okdata.online/v1/wechat_mp/huxuan/creators/get');
url.searchParams.set('id', "wx53ae5982c506aaac");

const res = await fetch(url, {
  headers: {
    Authorization: `Bearer ${process.env.OKDATA_API_KEY}`,
  },
});
const body = await res.json();
if (body.code !== 'ok') throw new Error(`${body.code}: ${body.message}`);

const row = body.data.item;
console.log(row.name, row.followers, row.engagement_rate);
console.log('cost: $' + body.meta.billing.amount);
```

### MCP

```json
{
  "name": "call",
  "arguments": {
    "capability": "wechat_mp.huxuan.creators.get",
    "id": "wx53ae5982c506aaac"
  }
}
```

或者對接好 MCP 的智慧體直接說：

> 用「互選公眾號達人詳情」挑出十個互動好、報價划算的達人，附報價。

## 返回示例

```json
{
  "code": "ok",
  "request_id": "0f6c2a8e-4b1d-4e0a-9a51-3c7d2b9e1f20",
  "data": {
    "item": {
      "id": "7283826197740388415",
      "url": "https://www.xingtu.cn/ad/creator/author-homepage/douyin-video/7283826197740388415",
      "account_id": "MS4wLjABAAAADCLMXvMISjsdNz2uITW-Jhir0LZCy31nBIgahVn-yIc",
      "username": "shaka521",
      "name": "二許趣野營",
      "avatar_url": "https://cdn.example.com/avatar/creator.jpg",
      "location": "天津",
      "gender": "male",
      "followers": 103008,
      "categories": [
        "戶外運動",
        "戶外露營"
      ],
      "engagement_rate": 0.0384,
      "median_views": 15231,
      "median_engagements": 1601,
      "rates": [
        {
          "type": "integrated_video",
          "name": "植入影片",
          "price": 6800,
          "currency": "CNY",
          "available": true,
          "settlement": "固定價格"
        }
      ]
    }
  },
  "warnings": [],
  "meta": {
    "capability": "wechat_mp.huxuan.creators.get",
    "result_status": "complete",
    "billing": {
      "amount": "0.065",
      "currency": "USD",
      "balance_after": "9.935"
    },
    "unavailable": {},
    "cached": false,
    "replayed": false,
    "fetched_at": "2026-11-11T08:00:00Z"
  }
}
```

## 錯誤

所有錯誤同一種結構：code、request_id、message 和 message_zh（每個 code 一句固定的話）、charged、retry、retry_after_seconds、param 和 docs_url，具體問題寫在 problems 裡。請求到了平台的調用出錯（查不到、平台失敗或超時）時，按這個介面的價格計一次費，charged 為 true，並給出 amount；引數錯誤這類還沒請求到平台的錯誤不扣費。只有 settlement_unknown 的扣費結果要查詢後才知道。完整列表：https://okdata.online/zh/docs/errors/

## 常見問題

### 互選公眾號達人詳情介面多少錢？

每次呼叫 $0.065，返回一個結果。查 1,000 次共 $65.00。請求到了平台的查詢，查不到或出錯也照常計費；還沒請求到平台就被攔下的不扣費。

### 需要微信公眾號帳號、Cookie 或掃碼登入嗎？

不需要。只要帶上 okdata 的 API key。返回的是微信公眾號上的公開資料，不會用到你自己的微信公眾號帳號。

### 呼叫失敗會扣費嗎？

請求到了平台就會扣一次：返回為空、查不到、平台出錯或超時，都按一次呼叫計費（按條計價的按 1 條），錯誤裡 charged 為 true，並給出 amount。引數錯誤、餘額不足這類還沒請求到平台就被攔下的不扣費。

### 微信公眾號不展示某個欄位怎麼辦？

這個欄位會是 null，meta.unavailable 裡會列出它和原因：platform（平台本來就不展示）或 capability（我們暫時取不到）。

## 微信公眾號的其他介面

- [公眾號搜尋](https://okdata.online/zh/apis/wechat_mp/accounts/search/)：$0.058/條 · 每次最多 $0.58
- [公眾號歷史文章](https://okdata.online/zh/apis/wechat_mp/accounts/articles/list/)：$0.02/次 · 每頁約 10 篇文章
- [公眾號文章詳情](https://okdata.online/zh/apis/wechat_mp/articles/get/)：$0.02/次
- [公眾號資料](https://okdata.online/zh/apis/wechat_mp/accounts/get/)：$0.02/次
- [公眾號文章評論](https://okdata.online/zh/apis/wechat_mp/articles/comments/list/)：$0.03/次 · 每頁約 20 條評論
- [公眾號文章互動資料](https://okdata.online/zh/apis/wechat_mp/articles/metrics/)：$0.03/次
- [公眾號評論回覆](https://okdata.online/zh/apis/wechat_mp/comments/replies/list/)：$0.03/次 · 每頁約 3 條評論
- [公眾號主體資訊](https://okdata.online/zh/apis/wechat_mp/accounts/owner/get/)：$0.15/次
- [互選公眾號達人搜尋](https://okdata.online/zh/apis/wechat_mp/huxuan/creators/search/)：$0.108/次 · 每頁約 30 位達人
- [互選公眾號文章](https://okdata.online/zh/apis/wechat_mp/huxuan/creators/articles/list/)：$0.108/次 · 每頁約 20 篇文章
- [互選公眾號文章詳情](https://okdata.online/zh/apis/wechat_mp/huxuan/articles/get/)：$0.065/次
- [公眾號文章詳情（含閱讀數）](https://okdata.online/zh/apis/wechat_mp/articles/full/get/)：$0.058/次

## 概要

- **簡稱**：互選公眾號達人詳情
- **英文名**：Huxuan Official Account profile API
- **也叫**：公眾號達人詳情、公眾號報價
- **分類**：[達人](https://okdata.online/zh/categories/creator/)
- **分組**：[微信公眾號騰訊互選 API](https://okdata.online/zh/apis/wechat_mp/huxuan/)
- **狀態**：預覽。還可能調整，改動會提前公告。
- **價格**：$0.065（約 ¥0.46） / 次 · 引數錯誤不扣費
- **返回**：一個 Creator，放在 data.item 裡
- **調用出錯時**：照常計一次費。出錯時我們這邊先自動重試。請求到了平台的呼叫，出錯也按一次計費；引數錯誤不扣費。

## 什麼時候收費

- 返回了資料：$0.065，每次呼叫收一次
- 引數不合法、餘額不足、介面暫停：不收費

| 情況 | 收費 |
|---|---|
| 單次最高扣費 | $0.065 |
| 空結果 | $0.065 |
| 查無此項（平台上沒有） | $0.065 |
| 平台出錯或超時 | $0.065 |
| 引數不合法、餘額不足、介面暫停 | 不收費 |
| 24 小時內帶同一個 Idempotency-Key 重發 | 直接返回儲存的結果，不扣費 |

請求到了平台的呼叫，返回為空、查不到或出錯也照常計費，收 $0.065；引數錯誤這類還沒請求平台就被攔下的不扣費。

價格取自價目表版本 fb99dc8a88674793。 [這個平台的全部價格](https://okdata.online/zh/pricing/wechat_mp/)

- 新帳號送 $0.20 試用額度，不用綁卡：夠調這個介面 3 次。
- 查 1,000 次共 $65.00。

## 各檢視返回的欄位

“檢視”一列是欄位最早出現的 `view`：`compact` 只返回 compact 欄位，`standard` 再加上 standard 欄位，`full` 返回全部。預設是 `standard`。

- `compact`：`id`, `url`, `account_id`, `username`, `name`, `followers`, `categories`, `engagement_rate`, `median_views`, `median_engagements`, `rates`
- `standard`：`avatar_url`, `location`, `gender`
- `full`：`ext`

## 這個介面的常見報錯

| 狀態碼 | 程式碼 | 含義 | 是否扣費 | 能否重試 |
|---|---|---|---|---|
| 400 | `invalid_params` | 引數缺失、型別或取值不對，或者請求方法不對。problems 列出每一處問題，param 是第一個出錯的引數。 | 否 | 修正後重試 |
| 401 | `unauthorized` | Key 缺失、格式不對、已撤銷、已停用或已過期（知道原因時 reason 會寫明）。 | 否 | 不要重試 |
| 402 | `insufficient_balance` | 餘額（available）不夠這次呼叫的最高費用（required）。 | 否 | 修正後重試 |
| 404 | `not_found` | 內容、帳號或頁面不存在或不公開。這次查詢請求到了平台、且產生了費用，或者介面的 charge_when_not_found 大於 0 時，這個結果會計費：返回體裡 charged 為 true，並給出 amount。 | 請求到了平台就扣一次 | 不要重試 |
| 429 | `rate_limited` | 帳號這一分鐘請求太多（reason: rate），或同時進行的呼叫太多（reason: concurrency）。 | 否 | 可以重試 |
| 500 | `settlement_unknown` | 資料已返回，但沒能確認是否扣費。 | 查詢後才知道 | 用同一個 Idempotency-Key 重試 |
| 502 | `fetch_failed` | 我們這邊自動重試後，這次請求仍然失敗了。如果請求到了平台、且這次請求產生了費用，就按介面價格計一次費（charged 為 true，並給出 amount）；否則不計費。 | 請求到了平台就扣一次 | 可以重試 |
| 503 | `capability_paused` | 這個介面暫時停用了，這次沒有執行。 | 否 | 可以重試 |
| 504 | `timeout` | 資料沒有及時返回。如果請求到了平台、且這次請求產生了費用，就按介面價格計一次費（charged 為 true，並給出 amount）；否則預扣退回。 | 請求到了平台就扣一次 | 可以重試 |

[全部錯誤碼](https://okdata.online/zh/docs/errors/)

## 在你的 AI 裡用

> 先讀 https://okdata.online/zh/apis/wechat_mp/huxuan/creators/get.md，再用 okdata 幫我調這個介面，key 在環境變數 OKDATA_API_KEY 裡。用「互選公眾號達人詳情」挑出十個互動好、報價划算的達人，附報價。

## 微信公眾號的介面分組

- [微信公眾號騰訊互選 API](https://okdata.online/zh/apis/wechat_mp/huxuan/)：互選公眾號達人搜尋 $0.108、互選公眾號文章 $0.108、互選公眾號文章詳情 $0.065
