itemIdstringbắt buộc
Video id
https://api.sandbase.ai/v1/api/tiktok/web/post-ai-articleGet AI-generated article of a single video on TikTok. Returns the platform data as structured JSON.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns an AI-generated article for a single TikTok video, with a title, a short description and SEO keywords. It needs the video id as itemId.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/post-ai-article" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"itemId": "7651935877744168194"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
itemId | string | Yes | Video id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extra": {
"fatal_item_ids": [],
"logid": "202611030744269003827AA4F970017CAA",
"now": 1793691867000
},
"itemCustomTDK": {
"article": "The world of sunscreens can be overwhelming, with countless options available, e…",
"desc": "Discover my genuine thoughts on the new Supergoop Unseen Sunscreen SPF50 and why…",
"keywords": [
"Supergoop unseen sunscreen review"
],
"title": "Supergoop Unseen Sunscreen SPF50 Review: A Surprising Find"
},
"log_pb": {
"impr_id": "202611030744269003827AA4F970017CAA"
},
"statusCode": 0,
"status_code": 0,
"status_msg": ""
}
| Field | Meaning |
|---|---|
itemCustomTDK.title | AI-generated title for the video. |
itemCustomTDK.article | Body text of the AI-generated article about the video. Long articles are returned as one string. |
itemCustomTDK.desc | Short description of the video. It can include the hashtags from the video caption. |
itemCustomTDK.keywords[] | List of suggested keywords for the video. Some entries start with a space, so trim them before use. |
status_code / statusCode | Result code of the request. 0 in this response. |
status_msg | Status message. It is an empty string in this response. |
extra.fatal_item_ids[] | List of video ids that failed to load. It is empty in this response. |
extra.now | Time of the response as a number, such as 1793691867000. |
log_pb.impr_id / extra.logid | Request tracking ids. Both hold the same value in this response. |
itemId. It is a numeric string such as 7651935877744168194.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/post-ai-article" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"itemId": "7651935877744168194"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
itemIdstringbắt buộcVideo id
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.05 mỗi lần gọi | JSON |
Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/web/post-ai-article với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: itemId (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. TikTok AI-generated article of a single video chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.