objectIdstring必須
WeChat Channels video object id used to fetch downloadable media links.
https://api.sandbase.ai/v1/api/wechat-channels/video-download-urlGet a downloadable media URL for a WeChat Channels video by object ID and optional nonce ID. Use it to download or play media from a known Channels video.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns a download URL for a WeChat Channels video, plus cover and thumbnail URLs and basic post details such as title, author name, and engagement counts. It needs the video objectId, and accepts an optional objectNonceId.
download_url.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-download-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"objectId": "14941130915890399732"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
objectId | string | Yes | WeChat Channels video object id used to fetch downloadable media links. |
objectNonceId | string | No | Optional WeChat Channels object nonce id. Supplying it can improve media lookup accuracy. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"comment_count": 97,
"cover_url": "https://finder.video.qq.com/251/20304/stodownload?encfilekey=KGDRibp2wkicK7MMrxH…",
"download_url": "http://47.117.133.51:30015/media/weixin-channels/download/bddf15ad0c5646a99ff86e…",
"fav_count": 13502,
"file_size": 2018860,
"forward_count": 614382,
"like_count": 9158,
"media_type": 4,
"nickname": "人民日报",
"object_id": "14941130915890399732",
"object_nonce_id": "13119916…",
"publish_time": "2026-06-11 04:00:01"
}
| Field | Meaning |
|---|---|
download_url | Link to the video media file. The URL carries a signature query parameter. |
cover_url / thumb_url | Image links for the video cover and its thumbnail. |
title | Caption text of the video, including any hashtags. |
nickname | Display name of the account that posted the video. |
publish_time | Publish time as a YYYY-MM-DD HH:MM:SS string. |
like_count / fav_count / forward_count / comment_count | Engagement counts for the video: likes, favorites, forwards, and comments. |
file_size | Size of the media file. The response does not state the unit. |
video_play_len | Play length of the video. The value 15 is the only hint, and the response does not state the unit. |
object_id / object_nonce_id | The video's object ID and nonce ID. You can reuse them in other Channels calls. |
media_type | Numeric media type code. The response shows 4 for this video and does not explain the code. |
objectId is the only required input. Add objectNonceId when you have it, since it can improve media lookup.object_nonce_id (for example 13119916371223643581_0_146_0_0), which you can pass as objectNonceId in later calls.objectId first, call WeChat Channels Video Search or WeChat Channels Account Videos.$0.042857 per successful call. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-download-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"objectId": "14941130915890399732"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
objectIdstring必須WeChat Channels video object id used to fetch downloadable media links.
objectNonceIdstringOptional WeChat Channels object nonce id. Supplying it can improve media lookup accuracy.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
WeChat Channels | $0.042857 / 回 | JSON |
WeChat Channels | $0.071429 / 回 | JSON |
WeChat Channels | $0.021429 / 回 | JSON |
WeChat Channels | $0.071429 / 回 | JSON |
WeChat Channels | $0.114286 / 回 | JSON |
WeChat Channels | $0.01 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/wechat-channels/video-download-url に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.042857、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: objectId (string)。 任意: objectNonceId (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。WeChat Channels Video Download URL は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。WeChat Channels の API アクセスを別途申請する必要はありません。