Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

TikTok Video Metrics

Tài liệu API
https://api.sandbase.ai/v1/api/tiktok/analytics/video-metrics

Retrieve detailed analytics for TikTok videos, including total views, likes, comments, favorites, and 14-day daily performance trends using a video identifier.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
Video ID, required parameter, can be obtained from video sharing links or TikTok Studio
Đầu raVí dụ
Phản hồioutputs · 1.6 KB · 73 dòng
[
  {
    "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
        }
      }
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

TikTok Video Metrics API

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.

Use cases

  • Compare a video's engagement with its peers.
  • Report on campaign videos without manual checks.

Request

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.

Parameters

NameTypeRequiredDescription
item_idstringYesVideo ID, required parameter, can be obtained from video sharing links or TikTok Studio

Example response

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…"
  }
}

Response fields

FieldMeaning
likes / comments / favoritesCurrent totals in value.
*_14_daysChange over the last 14 days when available (status 2 means not available).
video_summary.contentShort generated description of the video's performance.

Notes

  • item_id is the video's aweme_id; get it from a link with TikTok Aweme ID.

Pricing

$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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.01 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Video Metrics?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/analytics/video-metrics 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.

API TikTok Video Metrics có giá bao nhiêu?

$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API TikTok Video Metrics chấp nhận những tham số nào?

Bắt buộc: item_id (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API TikTok Video Metrics trả về gì?

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.

Tôi có cần tài khoản nhà phát triển hoặc API key của TikTok không?

Không. TikTok Video Metrics 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.