Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

TikTok Ad Interactive Analysis

Documentación de la 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.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 2 opcionales

Entorno de pruebas

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

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la 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 más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON

Guías:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de TikTok Ad Interactive Analysis?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysis con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de TikTok Ad Interactive Analysis?

$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de TikTok Ad Interactive Analysis?

Requeridos: material_id (string). Opcionales: metric_type (string) y period_type (integer). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de TikTok Ad Interactive Analysis?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de TikTok?

No. TikTok Ad Interactive Analysis funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de TikTok por separado.