Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

TikTok Ad Interactive Analysis

Docs da 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.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 2 opcionais

Playground

Entrada
Ad material ID, required parameter
Analysis type
Time range, default 180 days
SaídaExemplo
Respostaoutputs · 681 B · 36 linhas
[
  {
    "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"
      }
    }
  }
]

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da 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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON

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

Perguntas

FAQ

Como eu uso a API TikTok Ad Interactive Analysis?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysis com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API TikTok Ad Interactive Analysis?

$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API TikTok Ad Interactive Analysis aceita?

Obrigatórios: material_id (string). Opcionais: metric_type (string) e period_type (integer). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API TikTok Ad Interactive Analysis retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor TikTok ou de uma chave de API?

Não. TikTok Ad Interactive Analysis funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do TikTok separadamente.