Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

TikTok Ad Interactive Analysis

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

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 2 facultatifs

Bac à sable

Entrée
Ad material ID, required parameter
Analysis type
Time range, default 180 days
SortieExemple
Réponseoutputs · 681 B · 36 lignes
[
  {
    "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"
      }
    }
  }
]

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON

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

Questions

FAQ

Comment utiliser l’API TikTok Ad Interactive Analysis ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysis avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API TikTok Ad Interactive Analysis ?

$0.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API TikTok Ad Interactive Analysis accepte-t-elle ?

Obligatoire : material_id (string). Facultatif : metric_type (string) et period_type (integer). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API TikTok Ad Interactive Analysis ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API TikTok ?

Non. TikTok Ad Interactive Analysis fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API TikTok séparément.