Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

TikTok Ad Interactive Analysis

Documentazione 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.

Prezzo
$0.001USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 2 opzionali

Playground

Input
Ad material ID, required parameter
Analysis type
Time range, default 180 days
OutputEsempio
Rispostaoutputs · 681 B · 36 righe
[
  {
    "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"
      }
    }
  }
]

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

README API

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON

Guide:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API TikTok Ad Interactive Analysis?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysis con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API TikTok Ad Interactive Analysis?

$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API TikTok Ad Interactive Analysis?

Richiesti: material_id (string). Facoltativi: metric_type (string) e period_type (integer). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API TikTok Ad Interactive Analysis?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API TikTok?

No. TikTok Ad Interactive Analysis funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API TikTok.