Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

TikTok Ad Interactive Analysis

APIドキュメント
https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysis

Returns audience retention and interaction analytics across video timestamps for a specified ad creative. Supports filtering by analysis metric and time period.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 2 件

プレイグラウンド

入力
Ad material ID, required parameter
Analysis type
Time range, default 180 days
出力例
レスポンスoutputs · 681 B · 36 行
[
  {
    "data": {
      "keyframe": {
        "code": 0,
        "data": {
          "analysis": [
            {
              "second": 0,
              "value": 1
            },
            {
              "second": 1,
              "value": 0.25249169435215946
            },
            {
              "second": 2,
              "value": 0.132890365448505
            },
            "… 16 more items in the full response"
          ],
          "duration": 19,
          "highlight": []
        },
        "msg": "OK"
      },
      "percentile": {
        "code": 0,
        "data": {
          "show_cnt_percentile": 0.99
        },
        "msg": "OK"
      }
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

TikTok Ad Interactive Analysis API

Returns audience retention and interaction analytics across video timestamps for one TikTok ad creative. The response has a keyframe block and a percentile block. The call needs a material_id, and you can add metric_type and period_type to filter the result.

Use cases

  • Check how audience retention changes across the timeline of a video ad.
  • Find the moments in an ad creative that draw the most interaction.
  • Compare the keyframe and percentile results for one creative in a single call.
  • Re-run the same creative with a different period_type to see how results change over time.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysis" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"material_id": "<material_id>"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
material_idstringYesAd material ID, required parameter
metric_typestringNoAnalysis type
period_typeintegerNoTime range, default 180 days

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "keyframe": {
    "code": 40000,
    "msg": "strconv.ParseInt: parsing \"<material_id>\": invalid syntax"
  },
  "percentile": {
    "code": 40000,
    "msg": "strconv.ParseInt: parsing \"<material_id>\": invalid syntax"
  }
}

Response fields

FieldMeaning
keyframeResult block for the keyframe part of the analysis. In the sample response it holds only code and msg, because the call failed.
percentileResult block for the percentile part of the analysis. In the sample response it holds only code and msg, because the call failed.
keyframe.code / percentile.codeStatus code for each block. The sample shows 40000, which came back because the material_id was not a valid number.
keyframe.msg / percentile.msgError text for each block. In the sample it says the material_id value could not be parsed as an integer.

Notes

  • Send material_id as a string of digits. The placeholder value in the sample request failed with a parse error in both blocks.
  • Each block reports its own code and msg, so check both keyframe and percentile after every call.
  • period_type is an integer for the time range and defaults to 180 days. metric_type is a string that selects the analysis type.
  • For one part of the data on its own, see TikTok Ad Keyframe Analysis or TikTok Ad Material Percentile Rankings.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON

ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

質問

FAQ

TikTok Ad Interactive Analysis API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysis に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

TikTok Ad Interactive Analysis API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

TikTok Ad Interactive Analysis API はどのパラメータを受け付けますか?

必須: material_id (string)。 任意: metric_type (string) と period_type (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

TikTok Ad Interactive Analysis API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

TikTok の開発者アカウントまたは API key は必要ですか?

いいえ。TikTok Ad Interactive Analysis は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。