# Douyin Xingtu Batch Video Stats API

> Returns batch performance statistics and details for up to 20 videos, including play counts, engagement metrics, and watch durations.

Source: https://www.sandbase.ai/model/douyin/xingtu-v2/multi-get-item-stats
API reference: https://www.sandbase.ai/model/douyin/xingtu-v2/multi-get-item-stats/docs

## Facts

- Provider: Douyin
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/douyin/xingtu-v2/multi-get-item-stats`
- Price: $0.06 per call
- Capabilities: api, douyin
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/douyin/xingtu-v2/multi-get-item-stats` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `item_ids` | array | yes |  |
| `need_cover_url` | boolean | no |  |
| `platform_source` | integer | no |  |

## FAQ

### How do I use the Douyin Xingtu Batch Video Stats API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/xingtu-v2/multi-get-item-stats 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 Douyin Xingtu Batch Video Stats API cost?

$0.06 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Douyin Xingtu Batch Video Stats API accept?

Required: item_ids (array). Optional: need_cover_url (boolean) and platform_source (integer). The Parameters table and the Playground on this page list every field.

### What does the Douyin Xingtu Batch Video Stats API return?

A JSON response returned in the same HTTP request (synchronous).

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

No. Douyin Xingtu Batch Video Stats 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 Douyin API access separately.

## README

### Douyin Xingtu Batch Video Stats API

Retrieves detailed metrics and engagement statistics for multiple videos using `item_ids`. Supports optional cover image URLs via `need_cover_url` and source filtering via `platform_source`.

#### Use cases

- Track performance statistics across multiple Douyin videos simultaneously.
- Analyze viewer interaction rates and average watch durations for video content.
- Retrieve video details and thumbnail cover links in batch requests.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/multi-get-item-stats" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_ids": "<item_ids>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `item_ids` | array | Yes | Video (item) ID list, up to 20 per call (exceeding returns an error); auto de-dup |
| `need_cover_url` | boolean | No | Whether to return cover URL, default true |
| `platform_source` | integer | No | Platform source, default 1 |

#### Notes

- Accepts up to 20 IDs in `item_ids` per call with automatic deduplication; exceeding this limit returns an error.
- `need_cover_url` defaults to true.
- `platform_source` defaults to 1.

#### Related APIs

- [Douyin Xingtu Author Audience Distribution](/model/douyin/xingtu-v2/author-audience-distribution): Returns audience profile distribution metrics for a specified Xingtu creator based on creator ID and link type, with selectable platform source and channel opt…
- [Douyin Xingtu Author Base Info](/model/douyin/xingtu-v2/author-base-info): Returns basic creator profile data from Douyin Xingtu by author identifier, with options to include recommendation details and linkage information.
- [Douyin Xingtu Author Business Card Info](/model/douyin/xingtu-v2/author-business-card-info): Returns business card details for a Douyin Xingtu creator based on the specified author ID.
