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),请检查参数后重试。注意:使用无效参数的请求被微信处理后仍会计费。"
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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 |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-info に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: username (string)。 任意: raw (boolean)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。WeChat Channels Account Info は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。WeChat Channels の API アクセスを別途申請する必要はありません。