# Douyin User Videos API

> Get the videos on a Douyin user's profile with descriptions, publish time and play, like, comment and share counts. Sort by latest or most popular, with cursor pagination.

Source: https://www.sandbase.ai/model/douyin/app-v3/user-post-videos
API reference: https://www.sandbase.ai/model/douyin/app-v3/user-post-videos/docs

## Facts

- Provider: Douyin
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/douyin/app-v3/user-post-videos`
- 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/app-v3/user-post-videos` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `sec_user_id` | string | yes |  |
| `count` | integer | no |  |
| `max_cursor` | integer | no |  |
| `sort_type` | integer | no |  |

## FAQ

### How do I use the Douyin User Videos API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/app-v3/user-post-videos 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 User Videos 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 User Videos API accept?

Required: sec_user_id (string). Optional: count (integer), max_cursor (integer) and sort_type (integer). The Parameters table and the Playground on this page list every field.

### What does the Douyin User Videos 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 User Videos 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 User Videos API

Pass a Douyin `sec_user_id` and get the videos on that user's homepage, newest first or most popular first, with full statistics.

#### Use cases

- Track a creator's posting cadence and performance.
- Audit an influencer's recent content before a campaign.
- Collect a brand account's videos for analysis.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/user-post-videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sec_user_id": "MS4wLjABAAAAKzTVRAaDq7fTxkJteVYjRsyVPxxofLDAyViyWT43BNRdTjgmqCcolsU_UqRgbzBU", "count": 5}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `sec_user_id` | string | Yes | User sec_user_id |
| `count` | integer | No | Maximum count number, do not exceed 20, it is recommended to keep it unchanged. |
| `sort_type` | integer | No | Sort type, optional values are as follows: `0`: Latest sorting - default; `1`: Hottest sorting |
| `max_cursor` | integer | No | Maximum cursor, used for paging, the first page is 0, the second page is the max_cursor value in the first response. |

#### Example response

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

```json
{
  "has_more": 1,
  "max_cursor": "<next max_cursor>",
  "aweme_list": [
    {
      "aweme_id": "7657847286442471077",
      "create_time": 1782981514,
      "duration": 6014,
      "author": {
        "nickname": "<user>",
        "sec_uid": "<sec_uid>"
      },
      "statistics": {
        "play_count": 0,
        "digg_count": 8,
        "comment_count": 0,
        "share_count": 0,
        "collect_count": 2
      },
      "share_url": "https://www.iesdouyin.com/share/video/7657847286442471077/?…"
    }
  ]
}
```

#### Notes

- `sort_type`: 0 = latest (default), 1 = most popular.
- Paginate with `max_cursor` from the previous response.

#### Related APIs

- [Douyin Hot Search List](/model/douyin/app-v3/hot-search-list): Get the Douyin hot search list and other boards (seeding, entertainment, social and challenge lists): trending words with heat values and video counts.
- [Douyin Video Statistics (Batch)](/model/douyin/app-v3/multi-video-statistics): Get play, like, share and download counts for up to 50 Douyin videos in one request by passing comma-separated video IDs.
- [Get Douyin brand hot search list data](/model/douyin/app-v3/brand-hot-search-list): Get Douyin brand hot search category data.
