objectIdstring必須
WeChat Channels video object id.
https://api.sandbase.ai/v1/api/wechat-channels/video-titleGet lightweight title information for a WeChat Channels video by object ID and optional nonce ID. Use it to identify known video content without requesting downloadable media.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns the title, the posting account's name and username, and a media type code for one WeChat Channels video. It needs the video objectId, and you can add objectNonceId as an optional second input.
objectId from a saved list or log points to.#早安中国 from a video title for topic tagging.username before fetching more account data.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-title" \
-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. |
objectNonceId | string | No | Optional WeChat Channels object nonce id. Supplying it can improve lookup accuracy. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"media_type": 4,
"nickname": "人民日报",
"title": "6月11日,星期四。花开如瀑,金波荡漾。微风轻拂,芬芳满怀。愿您岁月安然,惬意从容。#早安中国",
"username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@…"
}
| Field | Meaning |
|---|---|
title | The video title text as posted. It can include hashtags, like #早安中国 in the sample. |
nickname | Display name of the account that posted the video. The sample shows 人民日报. |
username | Internal username of the posting account. It ends in @finder. |
media_type | Numeric code for the media type. The sample returns 4. The response does not say what each code means. |
objectId is required. Add objectNonceId if you have it, since it can improve lookup accuracy.$0.021429 per successful call. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-title" \
-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.
objectNonceIdstringOptional WeChat Channels object nonce id. Supplying it can improve lookup accuracy.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
WeChat Channels | $0.021429 / 回 | 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-title に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.021429、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: objectId (string)。 任意: objectNonceId (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。WeChat Channels Video Title は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。WeChat Channels の API アクセスを別途申請する必要はありません。