aweme_idstring필수
Video id
https://api.sandbase.ai/v1/api/douyin/web/related-postsReturns recommended related posts for a specific Douyin video. Supports pagination using a refresh index and customizable post count limits.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns a list of recommended Douyin videos related to one video. The input is the video's aweme_id. Each item in aweme_list holds the post text, author, hashtags, chapters and danmaku settings.
refresh_index to build a larger set of related videos.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/related-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"aweme_id": "7393365489105358132"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
aweme_id | string | Yes | Video id |
count | integer | No | Number, default is 20, it is recommended to keep it unchanged. |
refresh_index | integer | No | Paging index, default is 1, then increase by 1 each time for paging. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"aweme_list": [
{
"ad_candidates": null,
"ai_follow_images": null,
"anchors": null,
"authentication_token": "MS4wLjAA…",
"author": {
"avatar_thumb": {
"height": 720,
"uri": "100x100/aweme-avatar/tos-cn-i-0813c001_oEBnlHYiAAAuA9FHgEFru1CDJfHqfg9EAACC7I",
"url_list": [
"https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_oEBnlHY…"
],
"width": 720
},
"common_interest": null,
"cover_url": [
{
"height": 720,
"uri": "c8510002be9a3a61aad2",
"url_list": [
"https://p3-pc-sign.douyinpic.com/obj/c8510002be9a3a61aad2?lk3s=138a59ce&x-expire…"
],
"width": 720
}
],
"custom_verify": "",
"enterprise_verify_reason": "",
"follow_status": 0,
"follower_status": 0,
"followers_detail": null
},
"author_user_id": 3935848376315614,
"aweme_control": {
"can_comment": true,
"can_forward": true,
"can_share": true,
"can_show_comment": true
},
"aweme_id": "7703155542465842482",
"aweme_listen_struct": {
"trace_info": "{\"copyright_not_speech\":\"false\",\"copyright_reason\":\"not_intercept\",\"copyright_ta…"
},
"aweme_type": 0,
"can_cache_to_local": true,
"caption": "#历史 #美国 #人文星闪耀计划 #人物 #二战"
}
],
"chime_video_list": null,
"filter_infos": null,
"has_more": 1,
"log_pb": {
"impr_id": "202611031532293DB8359BA9C2541C2D10"
},
"status_code": 0
}
| Field | Meaning |
|---|---|
aweme_list[].aweme_id / aweme_list[].group_id | ID of the related video. In this response both fields hold the same value. |
aweme_list[].desc | Full post text, including hashtags. |
aweme_list[].caption | Short caption of the post. It can differ from desc, which may have an extra title in front. |
aweme_list[].create_time | Publish time of the video as a Unix timestamp in seconds. |
aweme_list[].duration | Length of the video. Values such as 2920491 suggest milliseconds, but the response does not state the unit. |
aweme_list[].author_user_id | Numeric ID of the account that posted the video. |
aweme_list[].author.avatar_thumb.url_list | Image URLs for the author's small avatar. |
aweme_list[].cha_list[].cha_name / aweme_list[].cha_list[].cid | Name and ID of each hashtag attached to the video. |
aweme_list[].chapter_abstract | Text summary of the video content. It is an empty string when the video has none. |
aweme_list[].chapter_list[].desc / aweme_list[].chapter_list[].timestamp | Title of each chapter and its start position in the video. Values such as 83000 suggest milliseconds. |
aweme_list[].danmaku_control.danmaku_cnt | Number of danmaku (scrolling comments) on the video. |
aweme_id. Get it from a video link with Douyin Video ID Extractor.refresh_index by 1 on each call, starting at 1. count defaults to 20 and the docs advise leaving it unchanged.null for some videos, such as comment_list and anchors. Check for null before you read them.cover_url contain x-expires and x-signature query values, so save the image if you need it long term.$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/douyin/web/related-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"count": 20,
"aweme_id": "7393365489105358132",
"refresh_index": 1
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
aweme_idstring필수Video id
countintegerNumber, default is 20, it is recommended to keep it unchanged.
기본값: 20
refresh_indexintegerPaging index, default is 1, then increase by 1 each time for paging.
기본값: 1
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.03 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/web/related-posts에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: aweme_id (string). 선택: count (integer) 및 refresh_index (integer). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Douyin Related Posts Recommendations은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.