# Douyin Account Metric Trends API

> Returns metric trend records for a Douyin account over time, including new likes, works, comments, or shares broken down by hour or day.

Source: https://www.sandbase.ai/apis/douyin/billboard/hot-account-trends-list
API reference: https://www.sandbase.ai/apis/douyin/billboard/hot-account-trends-list/docs

## Facts

- Provider: Douyin
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-trends-list`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- 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/billboard/hot-account-trends-list` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `sec_uid` | string | yes |  |
| `date_window` | integer | no |  |
| `option` | integer | no |  |

## FAQ

### How do I use the Douyin Account Metric Trends API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-trends-list 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 Account Metric Trends 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 Douyin Account Metric Trends API accept?

Required: sec_uid (string). Optional: date_window (integer) and option (integer). The Parameters table and the Playground on this page list every field.

### What does the Douyin Account Metric Trends 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 Douyin developer account or API key?

No. Douyin Account Metric Trends 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 Account Metric Trends API

Retrieve historical trend data for an account by supplying `sec_uid`, with options to filter by metric type using `option` and aggregation period via `date_window`.

#### Use cases

- Track hourly or daily engagement metrics for a Douyin creator.
- Analyze recent growth in likes, comments, and shares across user profiles.
- Monitor content output frequency and incoming engagement trends over time.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-trends-list" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `sec_uid` | string | Yes | User sec_id |
| `option` | integer | No | Option, 2 New like 3 New work 4 New comment 5 New share |
| `date_window` | integer | No | Time window, 1 by hour 2 by day |

#### Example response

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

```json
{
  "data": {
    "trends": [
      {
        "datetime": 1783440000,
        "value": 1600
      }
    ]
  }
}
```

#### Notes

- Use `option` to select the metric: 2 for new likes, 3 for new works, 4 for new comments, and 5 for new shares.
- Set `date_window` to 1 for hourly intervals or 2 for daily intervals.

#### Related APIs

- [Douyin Billboard City List](/model/douyin/billboard/city-list): Returns the list of Chinese cities supported by Douyin billboard rankings.
- [Douyin Billboard Vertical Content Tags](/model/douyin/billboard/content-tag): Returns a list of vertical content tags available on the Douyin billboard platform.
- [Douyin Fan Interest Account List](/model/douyin/billboard/hot-account-fans-interest-account-list): Returns a list of 20 accounts that followers of a target creator are interested in on Douyin.
