urlstring필수
url
https://api.sandbase.ai/v1/api/hybrid/video-dataParse a shared video link from Douyin, TikTok and other supported platforms and get the video details, author and no-watermark media URLs.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
This API takes a shared video link from Douyin, TikTok or another supported platform and returns the video details, the author profile and media URLs. The only required input is url. The example response is for a Douyin video.
https://v.douyin.com/L4FJNR3/ to its full video ID in aweme_id.desc, the hashtags in cha_list and the post time in create_time for a shared video.minimal parameter to request a smaller response when you only need the main video fields.curl -X POST "https://api.sandbase.ai/v1/api/hybrid/video-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://v.douyin.com/L4FJNR3/", "minimal": false, "base64_url": false}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | url |
base64_url | boolean | No | Base64 encoding URL |
minimal | boolean | No | Whether to return minimal data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"activity_video_type": 0,
"admire_auth": {
"admire_button": 1,
"author_can_admire": 0,
"exit_admire_in_aweme_post": 0,
"is_admire": 0,
"is_click_admire_icon_recently": 0,
"is_fifty_admire_author_stable_fans": 0,
"is_iron_fans_in_aweme_post": 0,
"is_show_admire_button": 0,
"is_show_admire_tab": 0
},
"anchors": null,
"authentication_token": "MS4wLjAA…",
"author": {
"accept_private_policy": false,
"account_cert_info": "{}",
"account_region": "",
"ad_cover_url": null,
"allow_story_normal_like": true,
"apple_account": 0,
"authority_status": 0,
"avatar_168x168": {
"height": 720,
"uri": "168x168/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5e…"
],
"width": 720
},
"avatar_300x300": {
"height": 720,
"uri": "300x300/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5e…"
],
"width": 720
},
"avatar_larger": {
"height": 720,
"uri": "1080x1080/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
"url_list": [
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_7582e9bc5e…"
],
"width": 720
},
"avatar_medium": {
"height": 720,
"uri": "720x720/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
"url_list": [
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c…"
],
"width": 720
},
"avatar_thumb": {
"height": 720,
"uri": "100x100/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c…"
],
"width": 720
}
},
"author_mask_tag": 0,
"author_user_id": 59840491348,
"aweme_control": {
"can_comment": true,
"can_forward": true,
"can_share": true,
"can_show_comment": true
},
"aweme_id": "6918273131559881997",
"aweme_listen_struct": {
"listen_diversion": {
"extra": [
{
"key": "new_guide_prefix",
"val": "下载汽水"
}
],
"popup_scene": 4,
"side_desc": "听更多精彩内容",
"sub_title_type": "relation"
},
"trace_info": "{\"copyright_not_speech\":\"true\",\"copyright_reason\":\"label_risk_music_or_speech\",\"…"
},
"aweme_type": 0,
"aweme_type_tags": ""
}
| Field | Meaning |
|---|---|
aweme_id | ID of the video. It is a numeric string. |
desc | Caption text of the video, including hashtags written as #tag. |
create_time | Time the video was posted. The value 1610786002 looks like a Unix timestamp in seconds. |
author_user_id | Numeric ID of the account that posted the video. |
author.aweme_count | Number of videos on the author's account. |
author.avatar_168x168 / author.avatar_300x300 / author.avatar_medium / author.avatar_larger / author.avatar_thumb | Author avatar images in several sizes. Each object has uri, width, height and a url_list of image links. |
cha_list[].cha_name | Name of a hashtag challenge attached to the video. |
cha_list[].cid | ID of the hashtag challenge. |
cha_list[].desc | Description text of the hashtag challenge. |
city | City code for the video. The example value is 330100. |
url. The example uses a short v.douyin.com link.base64_url to true to send the url value Base64 encoded.minimal to true to get less data.outputs[0].data.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/hybrid/video-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://v.douyin.com/L4FJNR3/",
"minimal": false,
"base64_url": false
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
urlstring필수url
minimalbooleanWhether to return minimal data
기본값: false
base64_urlbooleanBase64 encoding URL
기본값: false
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Hybrid | $0.001 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/hybrid/video-data에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: url (string). 선택: minimal (boolean) 및 base64_url (boolean). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Universal Video Link Parser은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Hybrid API 액세스를 별도로 신청할 필요는 없습니다.