# Douyin High Quality Video Play URL (Web) API

> Returns the highest quality playback URL for a Douyin video using a video ID or share URL, with an optional exit region specification.

Source: https://www.sandbase.ai/apis/douyin/web/video-high-quality-play-url
API reference: https://www.sandbase.ai/apis/douyin/web/video-high-quality-play-url/docs

## Facts

- Provider: Douyin
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/douyin/web/video-high-quality-play-url`
- Price: $0.0075 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/web/video-high-quality-play-url` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `aweme_id` | string | no |  |
| `region` | string | no |  |
| `share_url` | string | no |  |

## FAQ

### How do I use the Douyin High Quality Video Play URL (Web) API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/web/video-high-quality-play-url 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 High Quality Video Play URL (Web) API cost?

$0.0075 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 High Quality Video Play URL (Web) API accept?

No parameters are required. Optional: aweme_id (string), region (string) and share_url (string). The Parameters table and the Playground on this page list every field.

### What does the Douyin High Quality Video Play URL (Web) API return?

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

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

No. Douyin High Quality Video Play URL (Web) 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 High Quality Video Play URL (Web) API

Retrieve high-quality playback links for Douyin videos by providing an `aweme_id` or `share_url`. An optional `region` code can be specified to route the request through a designated exit region.

#### Use cases

- Extract maximum resolution video streams for media analysis.
- Stream high-definition Douyin video content in external players.
- Archive high-quality Douyin media using video IDs or share links.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/video-high-quality-play-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `region` | string | No | Optional, ISO country code (e.g. "CN" / "US" / "HK") used as the request exit region. |
| `aweme_id` | string | No | Video id, prefer to use aweme_id, if not available, use share_url. |
| `share_url` | string | No | Optional, share link, if the video id is provided, this parameter can be omitted. |

#### Notes

- Provide `aweme_id` as the preferred identifier, or supply `share_url` if the video ID is not available.
- Specify `region` as an ISO country code such as CN, US, or HK to set the request exit location.

#### Related APIs

- [Douyin Batch Video ID Extraction](/model/douyin/web/all-aweme-id): Extracts video IDs from a list of Douyin video URLs.
- [Douyin sec_user_ids from URLs (Batch)](/model/douyin/web/all-sec-user-id): Extracts Douyin sec_user_id values in bulk from a list of user homepage URLs.
- [Douyin Webcast ID Extraction](/model/douyin/web/all-webcast-id): Extracts webcast IDs from a submitted list of Douyin live room links.
