aweme_idsstring必須
Video id, supports multiple video ids, separated by commas, no more than 2, single is also possible, no need for commas.
https://api.sandbase.ai/v1/api/douyin/app-v3/video-statisticsReturns statistical metrics including like counts, play counts, and share counts for specified Douyin videos by ID.
[
{
"data": {
"statistics_list": [
{
"aweme_id": "7448118827402972455",
"digg_count": 4557,
"play_count": 239527,
"share_count": 69
},
{
"aweme_id": "7126745726494821640",
"digg_count": 36465,
"download_count": 4515,
"play_count": 1222995,
"share_count": 8493
}
]
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns like, play and share counts for one or two Douyin videos. You pass the video IDs in aweme_ids, separated by a comma.
share_count to see how often a video was shared.download_count on videos that report it.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/video-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"aweme_ids": "7448118827402972455,7126745726494821640"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
aweme_ids | string | Yes | Video id, supports multiple video ids, separated by commas, no more than 2, single is also possible, no need for commas. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"statistics_list": [
{
"aweme_id": "7448118827402972455",
"digg_count": 4553,
"play_count": 239913,
"share_count": 69
}
]
}
| Field | Meaning |
|---|---|
statistics_list[] | One entry per video ID you sent. |
statistics_list[].aweme_id | The ID of the video these counts belong to. Use it to match each entry to your input. |
statistics_list[].digg_count | Number of likes on the video. |
statistics_list[].play_count | Number of plays on the video. |
statistics_list[].share_count | Number of shares of the video. |
statistics_list[].download_count | Number of downloads of the video. It appears only for some videos, so the first video in the example does not have it. |
aweme_ids. For one video, send the ID without a comma.aweme_id values are long numeric strings. Keep them as strings.download_count can be missing from an entry, so check for it before you read it.$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/douyin/app-v3/video-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"aweme_ids": "7448118827402972455,7126745726494821640"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
aweme_idsstring必須Video id, supports multiple video ids, separated by commas, no more than 2, single is also possible, no need for commas.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"statistics_list": [
{
"aweme_id": "7448118827402972455",
"digg_count": 4557,
"play_count": 239527,
"share_count": 69
},
{
"aweme_id": "7126745726494821640",
"digg_count": 36465,
"download_count": 4515,
"play_count": 1222995,
"share_count": 8493
}
]
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin Video Statisticsこの API Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/app-v3/video-statistics に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: aweme_ids (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Video Statistics は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。