material_idstringerforderlich
Ad material ID, required parameter
https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysisReturns audience retention and interaction analytics across video timestamps for a specified ad creative. Supports filtering by analysis metric and time period.
[
{
"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"
}
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
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.
period_type to see how results change over time.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.
| Name | Type | Required | Description |
|---|---|---|---|
material_id | string | Yes | Ad material ID, required parameter |
metric_type | string | No | Analysis type |
period_type | integer | No | Time range, default 180 days |
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"
}
}
| Field | Meaning |
|---|---|
keyframe | Result block for the keyframe part of the analysis. In the sample response it holds only code and msg, because the call failed. |
percentile | Result 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.code | Status code for each block. The sample shows 40000, which came back because the material_id was not a valid number. |
keyframe.msg / percentile.msg | Error text for each block. In the sample it says the material_id value could not be parsed as an integer. |
material_id as a string of digits. The placeholder value in the sample request failed with a parse error in both blocks.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.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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": "7164467399885864962"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
material_idstringerforderlichAd material ID, required parameter
metric_typestringAnalysis type
period_typeintegerTime range, default 180 days
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"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"
}
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
TikTok Ad Interactive AnalysisDiese API TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysis mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: material_id (string). Optional: metric_type (string) und period_type (integer). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. TikTok Ad Interactive Analysis läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.