item_idstringจำเป็น
Video ID, required parameter, can be obtained from video sharing links or TikTok Studio
https://api.sandbase.ai/v1/api/tiktok/analytics/video-metricsRetrieve detailed analytics for TikTok videos, including total views, likes, comments, favorites, and 14-day daily performance trends using a video identifier.
[
{
"data": {
"comments": {
"message": {
"data_source": 4,
"status": 1,
"timestamp": 1791290497
},
"value": 8104
},
"comments_14_days": {
"message": {
"status": 2,
"timestamp": 1791290497
}
},
"favorites": {
"message": {
"data_source": 5,
"status": 1,
"timestamp": 1791290497
},
"value": 211745
},
"favorites_14_days": {
"message": {
"status": 2,
"timestamp": 1791290497
}
},
"item_id": "7350810998023949599",
"likes": {
"message": {
"data_source": 5,
"status": 1,
"timestamp": 1791290497
},
"value": 2005403
},
"likes_14_days": {
"message": {
"status": 2,
"timestamp": 1791290497
}
},
"video_summary": {
"content": "This post received more likes per view than most other posts. Consider incorporating similar elements in your posts to boost their appeal.",
"message": {
"data_source": 1,
"status": 1,
"timestamp": 1791290497
},
"summary_type": 2,
"title": "Overview"
},
"video_views": {
"message": {
"data_source": 5,
"status": 1,
"timestamp": 1791290497
},
"value": 12200524
},
"video_views_14_days": {
"message": {
"status": 2,
"timestamp": 1791290497
}
}
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Engagement metrics for a TikTok video by ID: likes, comments, favorites and other counters with their data status, plus a short generated summary of how the video performs.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/analytics/video-metrics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"item_id": "7350810998023949599"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
item_id | string | Yes | Video ID, required parameter, can be obtained from video sharing links or TikTok Studio |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"item_id": "7350810998023949599",
"likes": {
"value": 2005719
},
"comments": {
"value": 8098
},
"favorites": {
"value": 211784
},
"video_summary": {
"content": "This post received more likes per view than most other posts. Consider incorporating similar element…"
}
}
| Field | Meaning |
|---|---|
likes / comments / favorites | Current totals in value. |
*_14_days | Change over the last 14 days when available (status 2 means not available). |
video_summary.content | Short generated description of the video's performance. |
item_id is the video's aweme_id; get it from a link with TikTok Aweme ID.$0.001 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/analytics/video-metrics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"item_id": "7350810998023949599"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
item_idstringจำเป็นVideo ID, required parameter, can be obtained from video sharing links or TikTok Studio
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"comments": {
"message": {
"data_source": 4,
"status": 1,
"timestamp": 1791290497
},
"value": 8104
},
"comments_14_days": {
"message": {
"status": 2,
"timestamp": 1791290497
}
},
"favorites": {
"message": {
"data_source": 5,
"status": 1,
"timestamp": 1791290497
},
"value": 211745
},
"favorites_14_days": {
"message": {
"status": 2,
"timestamp": 1791290497
}
},
"item_id": "7350810998023949599",
"likes": {
"message": {
"data_source": 5,
"status": 1,
"timestamp": 1791290497
},
"value": 2005403
},
"likes_14_days": {
"message": {
"status": 2,
"timestamp": 1791290497
}
},
"video_summary": {
"content": "This post received more likes per view than most other posts. Consider incorporating similar elements in your posts to boost their appeal.",
"message": {
"data_source": 1,
"status": 1,
"timestamp": 1791290497
},
"summary_type": 2,
"title": "Overview"
},
"video_views": {
"message": {
"data_source": 5,
"status": 1,
"timestamp": 1791290497
},
"value": 12200524
},
"video_views_14_days": {
"message": {
"status": 2,
"timestamp": 1791290497
}
}
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
TikTok Video MetricsAPI นี้ TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.01 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
คู่มือ:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/analytics/video-metrics โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: item_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น TikTok Video Metrics ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก