aweme_idstring必須
Post ID
https://api.sandbase.ai/v1/api/toutiao/web/video-infoReturns detailed information for a specified Toutiao video post. Retrieve post metadata and related video attributes using a valid post identifier.
[
{
"data": {
"data": {
"delete": 1
},
"message": "success"
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns details for one Toutiao video post, looked up by its post ID in aweme_id. The sample response for this ID holds only a delete flag and a status message.
delete value.aweme_id before you call a richer video endpoint for the same post.curl -X POST "https://api.sandbase.ai/v1/api/toutiao/web/video-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"aweme_id": "7431543350882206242"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
aweme_id | string | Yes | Post ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"delete": 1
},
"message": "success"
}
| Field | Meaning |
|---|---|
data | Object that holds the result for the requested post. |
data.delete | Deletion flag for the post. The sample shows 1 for the requested ID, which suggests the post was removed. The response does not define the values, so check against a post you know is live. |
message | Status text for the call. The sample returns success. |
aweme_id, for example 7431543350882206242.success message does not mean the post has full details. The sample response returned only data.delete.$0.001 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/toutiao/web/video-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"aweme_id": "7431543350882206242"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
aweme_idstring必須Post ID
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"data": {
"delete": 1
},
"message": "success"
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Toutiao | $0.001 / 回 | JSON |
Toutiao | $0.001 / 回 | JSON |
Toutiao | $0.001 / 回 | JSON |
Toutiao | $0.001 / 回 | JSON |
Toutiao | $0.001 / 回 | JSON |
Toutiao | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/toutiao/web/video-info に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: aweme_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Toutiao Specified Video Details は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Toutiao の API アクセスを別途申請する必要はありません。