keywordstring必填
Search keyword for WeChat Official Account profiles.
https://api.sandbase.ai/v1/api/wechat-search/search-accountSearch WeChat Official Accounts by keyword with page-number pagination and one result per page. Use it to find an account by name or related term before profile or article lookup.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
This API searches WeChat Official Accounts by keyword and returns matching account profiles. It needs a keyword and takes an optional page number. Each page holds one result.
biz and wxid identifiers.owner_name and customer_type.page values for one keyword.curl -X POST "https://api.sandbase.ai/v1/api/wechat-search/search-account" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "人工智能"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword for WeChat Official Account profiles. |
page | integer | No | Page number starting from 1 for WeChat Official Account profile search. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"avatar": "https://wx.qlogo.cn/mmhead/Q3auHgzwzM6B7P7K0g311MAbOHz2d3DqwiaZRPyWlSNK1HU7iaB6F…",
"avg_top_read": 151,
"avg_top_zan": 0,
"biz": "MzAwNzIyMTQ2MA==",
"customer_type": "企业",
"fans": 36143,
"ghid": "gh_143f18f53985",
"lastest_publish": 1693393200,
"name": "人工智能",
"owner_name": "郑州夺蓝网络技术有限公司",
"qrcode": "https://open.weixin.qq.com/qr/code?username=worldofai",
"week_articles": 0
}
]
}
| Field | Meaning |
|---|---|
data[].name | Display name of the Official Account. |
data[].wxid | Account username. The qrcode link also contains this value. |
data[].ghid | Account ID that starts with gh_. |
data[].biz | Account identifier in base64-style text, such as MzAwNzIyMTQ2MA==. |
data[].fans | Follower count for the account. |
data[].avg_top_read / avg_top_zan | Average reads and average likes (zan) for the account's top article. The sample shows 151 reads and 0 likes. |
data[].week_articles | Number of articles the account published in the week. The sample value is 0. |
data[].lastest_publish | Time of the latest publication as a Unix timestamp in seconds. The key is spelled lastest_publish. |
data[].owner_name / customer_type | Name of the entity that registered the account and its type, such as 企业 (enterprise). |
data[].avatar / qrcode | URL of the account's avatar image and URL of its QR code link. |
page starts at 1 and each page returns one account, so increase page to see more matches.name or biz value as the input for profile or article lookups.$0.057143 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/wechat-search/search-account" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"keyword": "人工智能"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
keywordstring必填Search keyword for WeChat Official Account profiles.
pageintegerPage number starting from 1 for WeChat Official Account profile search.
預設:1
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
WeChat Search | 每次呼叫 $0.057143 | JSON |
WeChat Search | 每次呼叫 $0.114286 | JSON |
WeChat Search | 每次呼叫 $0.114286 | JSON |
WeChat Search | 每次呼叫 $0.01 | JSON |
WeChat Search | 每次呼叫 $0.01 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/wechat-search/search-account。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.057143,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:keyword (string)。 選填:page (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。WeChat Account Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 WeChat Search API 存取權。