material_idstringआवश्यक
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"
}
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
material_idstringआवश्यकAd material ID, required parameter
metric_typestringAnalysis type
period_typeintegerTime range, default 180 days
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"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"
}
}
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
TikTok | $0.001 प्रति कॉल | JSON |
TikTok | $0.001 प्रति कॉल | JSON |
TikTok | $0.001 प्रति कॉल | JSON |
TikTok | $0.001 प्रति कॉल | JSON |
TikTok | $0.001 प्रति कॉल | JSON |
TikTok | $0.001 प्रति कॉल | JSON |
गाइड्स:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
प्रश्न
https://api.sandbase.ai/v1/api/tiktok/ads/ad-interactive-analysis पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: material_id (string)। वैकल्पिक: metric_type (string) और period_type (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। TikTok Ad Interactive Analysis SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok API access के लिए आवेदन करने की आवश्यकता नहीं है।