# TikTok Video Metrics API

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

Source: https://www.sandbase.ai/model/tiktok/analytics/video-metrics
API reference: https://www.sandbase.ai/model/tiktok/analytics/video-metrics/docs

## Facts

- Provider: TikTok
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/tiktok/analytics/video-metrics`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, tiktok
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/tiktok/analytics/video-metrics` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `item_id` | string | yes |  |

## FAQ

### How do I use the TikTok Video Metrics API?

Send a POST request to https://api.sandbase.ai/v1/api/tiktok/analytics/video-metrics with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the TikTok Video Metrics API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the TikTok Video Metrics API accept?

Required: item_id (string). The Parameters table and the Playground on this page list every field.

### What does the TikTok Video Metrics API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a TikTok developer account or API key?

No. TikTok Video Metrics runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for TikTok API access separately.

## README

### TikTok Video Metrics API

Retrieve detailed video performance metrics and 14-day daily trends on TikTok by supplying an `item_id`.

#### Use cases

- Review engagement metrics such as views, likes, comments, and favorites for individual clips.
- Analyze 14-day daily performance trends to evaluate content effectiveness over time.
- Optimize content strategies based on audience interaction and reach statistics.

#### Request

```bash
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"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `item_id` | string | Yes | Video ID, required parameter, can be obtained from video sharing links or TikTok Studio |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "item_id": "7350810998023949599"
}
```

#### Notes

- `item_id` is required and can be obtained from video sharing links or TikTok Studio.

#### Related APIs

- [TikTok Video Comment Keywords](/model/tiktok/analytics/comment-keywords): Returns extracted keywords and topics from user comments on a TikTok video.
- [TikTok Creator Info and Milestones](/model/tiktok/analytics/creator-info-and-milestones): Returns creator details and milestone history for a specified TikTok account.
- [Detect fake views in video](/model/tiktok/analytics/detect-fake-views): Check whether a TikTok video has fake views.
