usernamestring必填
WeChat Channels finder username (`v2_…@finder` format), e.g. `v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder` (People's Daily).
https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-infoGet the public "More info" panel of a WeChat Channels account: Channel ID, IP and profile location, and verification details such as entity type, service category and license numbers.
[
{
"data": {
"debug_id": "4dc4e404",
"debug_info": "gAAAAABqxLkRkWaQbHzvMFB-JvPnfWMBgN0v8bBNkFvhAPYZB-ie5qLkEOJjTFKOwT1yMvAl0Fl2qPJN_ivLbR7Os9fu2q2TYKuQm70OE2KmJYEC8f2jZJ_GRCqkwCriEz2D8oOVcJiKWylxIRBhc32MW7ebuToJM7sofi9jJKcpaQbE_FZVQkZWvBkEN93vG5qKaFEQBhWVr2k1LiSuW82Y2BEWsIkcXov5ZBCbBEyvcm5kqcwxVFzlze2yNk9otA_ZIscnV_-pECkliAmALgktZsBhHYbP-w==",
"message": "请求参数可能有误(如无效的文章 URL / finder username / 视频 object_id),请检查参数后重试。注意:使用无效参数的请求被微信处理后仍会计费。"
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns the public "More info" panel of a WeChat Channels account: its Channel ID, IP and profile location, and verification details such as entity type, service unit and license number. It needs the account's finder username in v2_…@finder format.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder", "raw": false}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | WeChat Channels finder username (v2_…@finder format), e.g. v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder (People's Daily). |
raw | boolean | No | Optional, default True. True=raw response; False=simplified parsed structure. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"channel_id": null,
"debug_id": "d5953921",
"debug_info": "gAAAAABq6ZEgJFp75BVW0Qp9McV-keALwAbI5bKK1MWYdkOpd00m_UoF9XVOKT9eh3GsseHxU_WVPl2q…",
"finder_username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@…",
"info": {
"Channels ID": "sphi9BjV8GK0Zsl",
"IP归属地": "Beijing",
"主体类型": "互联网新闻信息服务单位",
"互联网新闻信息服务许可证编号": "10120180018",
"服务单位": "人民日报社",
"服务类别": "互联网新闻信息采编发布服务、传播平台服务、采编发布服务、传播平台服务、采编发布服务、传播平台服务",
"认证时间": "Completed WeChat Verification on 2022年1月26日. Tencent and a third-party verificat…",
"资料所在地": "Beijing"
},
"sections": [
{
"items": [
{
"content": "Beijing",
"title": "IP归属地"
}
],
"title": "基础信息"
}
]
}
| Field | Meaning |
|---|---|
finder_username | The finder username you sent in the request. |
sections[].title | The name of a panel group, such as 基础信息 (basic info) or 认证信息 (verification info). |
sections[].items[].title / sections[].items[].content | The label and value of each row in a group. Rows include the Channel ID (a short ID that starts with sph), the IP location, the profile location, the service unit, the entity type and the license number. |
info.主体类型 | The entity type of the verified account. Here it is an internet news information service unit. |
info.服务单位 | The name of the organization that runs the account. |
info.互联网新闻信息服务许可证编号 | The internet news information service license number. |
info.服务类别 | The verified service categories, as one text string. Entries can repeat. |
info.认证时间 | Text that gives the date the account completed WeChat verification. |
info.资料所在地 | The profile location shown on the panel. It is Beijing in this example. |
channel_id | A top-level Channel ID field. It is null in this response. |
channel_id was null in this response. Read the Channel ID from the sections row whose title is Channels ID, or from the matching key in info.info object uses the panel labels as keys, so most keys are in Chinese and one is in English. Accounts with fewer verification details may return fewer keys.v2_…@finder username.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder",
"raw": false
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
usernamestring必填WeChat Channels finder username (`v2_…@finder` format), e.g. `v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder` (People's Daily).
rawbooleanOptional, default True. True=raw response; False=simplified parsed structure.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"debug_id": "4dc4e404",
"debug_info": "gAAAAABqxLkRkWaQbHzvMFB-JvPnfWMBgN0v8bBNkFvhAPYZB-ie5qLkEOJjTFKOwT1yMvAl0Fl2qPJN_ivLbR7Os9fu2q2TYKuQm70OE2KmJYEC8f2jZJ_GRCqkwCriEz2D8oOVcJiKWylxIRBhc32MW7ebuToJM7sofi9jJKcpaQbE_FZVQkZWvBkEN93vG5qKaFEQBhWVr2k1LiSuW82Y2BEWsIkcXov5ZBCbBEyvcm5kqcwxVFzlze2yNk9otA_ZIscnV_-pECkliAmALgktZsBhHYbP-w==",
"message": "请求参数可能有误(如无效的文章 URL / finder username / 视频 object_id),请检查参数后重试。注意:使用无效参数的请求被微信处理后仍会计费。"
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
WeChat Channels | 每次呼叫 $0.01 | JSON |
WeChat Channels | 每次呼叫 $0.01 | JSON |
WeChat Channels | 每次呼叫 $0.01 | JSON |
WeChat Channels | 每次呼叫 $0.01 | JSON |
WeChat Channels | 每次呼叫 $0.01 | JSON |
WeChat Channels | 每次呼叫 $0.01 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-info。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:username (string)。 選填:raw (boolean)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。WeChat Channels Account Info 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 WeChat Channels API 存取權。