period_end_timestampintegerbắt buộc
The caller must generate this 10-digit Unix timestamp in seconds from the target ranking date, for example 1785024000; do not pass 0 because it returns an empty result
https://api.sandbase.ai/v1/api/tiktok/ads/top-contents-listGet top contents list 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.
This API returns a ranked list of top-performing TikTok content for one day in one country. It needs period_end_timestamp, a 10-digit Unix timestamp in seconds for the ranking date. Each item includes the post, its author, and view and engagement metrics.
organicVideoViews with videoViews to see how much of a post's reach came from organic viewing.content_label_ids to track top posts in one category such as Fashion.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ads/top-contents-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"period_end_timestamp": 1793318400, "period_dimension": 3, "country_code": "US", "order_by_metric": 1, "page": 1, "limit": 20}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
period_end_timestamp | integer | Yes | The caller must generate this 10-digit Unix timestamp in seconds from the target ranking date, for example 1785024000; do not pass 0 because it returns an empty result |
content_label_ids | string | No | Content label IDs, comma separated |
cookie | string | No | Custom Cookie string (optional) |
country_code | string | No | Country code |
limit | integer | No | Items per page, max 100 |
order_by_metric | integer | No | Order by metric |
organic_only | boolean | No | Organic content only |
page | integer | No | Page number |
period_dimension | integer | No | 3/5 /Period dimension |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"entityInfos": [
{
"itemAuthorInfo": {
"avatarURI": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/bd593306c9ed3c9…",
"bio": "oi :) conto histórias \nyoutube:deixa falar \n@fefeschneider\[email protected]",
"handlerName": "fefe",
"nickName": "Fefe"
},
"itemAuthorMetrics": {
"followers": "17081647"
},
"itemInfo": {
"authorID": "6848399732281180166",
"contentType": 1,
"coverURL": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/ogejjeAR8AEFQ7Cv…",
"coverURLList": [
{
"format": "avif",
"imageUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/ogejjeAR8AEFQ7Cv…"
}
],
"createTime": "1789073267",
"creatorID": "6532037588893564929",
"itemID": "7684011124739656991",
"title": "Existe combinação mais perfeita do que RUFFLES®️ e um bom filme? Impossível! Tod…"
},
"itemMetrics": {
"engagementRate": 0.001270212222686055,
"engagementRateLifeTime": 0.0013676565457314666,
"organicVideoViews": "1021860",
"organicVideoViewsLifeTime": "3551286",
"sixSecondsVTR": 0.02442178790796269,
"sixSecondsVTRLifeTime": 0.024476013493258095,
"videoViews": "35827084",
"videoViewsLifeTime": "65278816"
}
}
],
"pagination": {
"hasMore": true,
"limit": 20,
"page": 1,
"pageCount": 5,
"totalCount": 100
}
}
| Field | Meaning |
|---|---|
entityInfos[].itemInfo.itemID | ID of the post. |
entityInfos[].itemInfo.title | Caption text of the post, including hashtags and mentions. Long captions may be cut. |
entityInfos[].itemInfo.createTime | Creation time of the post as a Unix timestamp in seconds, returned as a string. |
entityInfos[].itemInfo.coverURL / entityInfos[].itemInfo.coverURLList[].imageUrl | Cover image links for the post. The list gives the same cover in several formats, shown in format (for example avif and jpeg). |
entityInfos[].itemAuthorInfo.handlerName / entityInfos[].itemAuthorInfo.nickName | Handle and display name of the author. |
entityInfos[].itemAuthorInfo.bio | Profile bio text of the author. |
entityInfos[].itemAuthorMetrics.followers | Follower count of the author, returned as a string. |
entityInfos[].itemMetrics.videoViews / entityInfos[].itemMetrics.videoViewsLifeTime | Video views for the ranking period and over the whole life of the post. |
entityInfos[].itemMetrics.organicVideoViews / entityInfos[].itemMetrics.organicVideoViewsLifeTime | Organic video views for the ranking period and over the whole life of the post. |
entityInfos[].itemMetrics.engagementRate / entityInfos[].itemMetrics.sixSecondsVTR | Engagement rate and six-second view-through rate as decimal fractions. The matching LifeTime fields give the lifetime values. |
entityInfos[].contentTags[].contentLabelID / entityInfos[].contentTags[].contentLabelName | Content label ID and name for the post. This key only appears on some items. |
page and limit (max 100). The pagination object returns hasMore, pageCount and totalCount.contentLabelID values from contentTags as content_label_ids, comma separated, to filter by label.itemID and authorID and counts such as followers come back as strings.$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/ads/top-contents-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"limit": 20,
"country_code": "US",
"organic_only": false,
"order_by_metric": 1,
"period_dimension": 3,
"period_end_timestamp": 1793318400
}'Đặ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.
period_end_timestampintegerbắt buộcThe caller must generate this 10-digit Unix timestamp in seconds from the target ranking date, for example 1785024000; do not pass 0 because it returns an empty result
period_dimensioninteger3/5 /Period dimension
Mặc định: 3
country_codestringCountry code
Mặc định: "US"
content_label_idsstringContent label IDs, comma separated
order_by_metricintegerOrder by metric
Mặc định: 1
organic_onlybooleanOrganic content only
Mặc định: false
pageintegerPage number
Mặc định: 1
limitintegerItems per page, max 100
Mặc định: 20
cookiestringCustom Cookie string (optional)
Đâ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 Top contents listAPI này 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.001 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/ads/top-contents-list 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: period_end_timestamp (integer). Tùy chọn: period_dimension (integer), country_code (string), content_label_ids (string), order_by_metric (integer), organic_only (boolean) và page (integer) và 2 mục khác. 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 Top contents list 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.