API DocsdouyinContentBatch get the highest quality play URL of videos
Batch get the highest quality play URL of videos
What this API is for
- This interface is currently on sale for $0.25, and will return to the original price of $0.5 after the event ends. If there are less than 50 videos, they will be charged as 50 videos.
- Batch get the highest quality (original upload quality) play URL of videos
- This interface will return the highest quality play URL, the original upload quality refers to the quality of the video when the user uploads it, usually the highest quality video has an uncompressed bitrate and the file header contains metadata.
- The highest quality video link cannot be obtained directly from the Douyin APP or web version, and must be obtained through this interface.
- This interface is very suitable for batch obtaining high-definition, watermark-free video links, suitable for scenarios that require high-quality videos, such as video editing, archiving, training models, etc.
- Use concurrent requests to improve batch acquisition efficiency.
- Support up to 50 video IDs
POST
/openapi/api/v1/douyin/web/fetch_multi_video_high_quality_play_urlPrice:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest parameters
- aweme_ids: Video id list, separated by commas, for example: "123,456,789", up to 50.
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| aweme_ids | body / string | No |
| |
| region | body / string | null | No |
| CN |
Request examples
curl -X POST "https://api.trmesh.com/openapi/api/v1/douyin/web/fetch_multi_video_high_quality_play_url" \ -H "Authorization: Bearer sdc_your_project_token"
Response fields
- total: Total count
- success_count: Success count
- failed_count: Failed count
- videos: Video list, each video contains the following fields:
- video_id: Video id
- original_video_url: Highest quality (original upload quality) play URL
- file_size: File size (bytes)
- file_size_in_mb: File size (MB)
- content_type: Content type
- success: Whether successful
- error: Error message (if failed)
| Field | Type | Notes | Example |
|---|---|---|---|
| total | unknown |
| |
| success_count | unknown |
| |
| failed_count | unknown |
| |
| videos | unknown |
| |
| video_id | unknown |
| |
| original_video_url | unknown |
| |
| file_size | unknown |
| |
| file_size_in_mb | unknown |
| |
| content_type | unknown |
| |
| success | unknown |
| |
| error | unknown |
|
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples