Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Douyin User Videos

Tài liệu API
https://api.sandbase.ai/v1/api/douyin/app-v3/user-post-videos

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.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 3 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
User sec_user_id
Maximum count number, do not exceed 20, it is recommended to keep it unchanged.
Maximum cursor, used for paging, the first page is 0, the second page is the max_cursor value in the first response.
Sort type, optional values are as follows: `0`: Latest sorting - default; `1`: Hottest sorting
Đầu raVí dụ
Phản hồioutputs · 581 B · 26 dòng
[
  {
    "data": {
      "aweme_list": [],
      "extra": {
        "fatal_item_ids": [],
        "logid": "202608201745362BFA943A600E44438037",
        "now": 1787219136000
      },
      "has_more": 0,
      "log_pb": {
        "impr_id": "202608201745362BFA943A600E44438037"
      },
      "max_cursor": 0,
      "min_cursor": 1787219136000,
      "post_serial": 3,
      "replace_series_cover": 1,
      "request_item_cursor": 0,
      "sec_uid": "example",
      "status_code": 0,
      "status_msg": "",
      "uid": "1526545566403343",
      "version": "normal"
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Douyin User Videos API

Returns the videos on a Douyin user's profile, with descriptions, publish time and play, like, comment and share counts. You pass the user's sec_user_id. You can sort by latest or most popular and page through the list with a cursor.

Use cases

  • Track how often a Douyin creator posts by reading the create_time of each video.
  • Review an influencer's recent videos before a campaign.
  • Collect a brand account's videos and descriptions for content analysis.
  • Pull the most popular videos of an account with sort_type set to 1.

Request

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, "max_cursor": 0, "sort_type": 0}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
sec_user_idstringYesUser sec_user_id
countintegerNoMaximum count number, do not exceed 20, it is recommended to keep it unchanged.
max_cursorintegerNoMaximum cursor, used for paging, the first page is 0, the second page is the max_cursor value in the first response.
sort_typeintegerNoSort type, optional values are as follows: 0: Latest sorting - default; 1: Hottest sorting

Example response

Historical provider response sample, trimmed: lists keep their first item and long strings are cut. The explicit first-page teaching request above was not re-run for this update.

{
  "aweme_list": [
    {
      "activity_video_type": -1,
      "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
      },
      "anchors": null,
      "authentication_token": "MS4wLjAA…",
      "author": {
        "account_cert_info": "{}",
        "allow_story_normal_like": false,
        "authority_status": 0,
        "avatar_168x168": {
          "height": 720,
          "uri": "168x168/aweme-avatar/tos-cn-i-0813c000-ce_oQeCKAiB7QKAW81fnHIATQDRAl2FEJtuEglF4f",
          "url_list": [
            "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_oQeCKAiB7QKAW81fn…"
          ],
          "width": 720
        },
        "avatar_300x300": {
          "height": 720,
          "uri": "300x300/aweme-avatar/tos-cn-i-0813c000-ce_oQeCKAiB7QKAW81fnHIATQDRAl2FEJtuEglF4f",
          "url_list": [
            "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_oQeCKAiB7QKAW81fn…"
          ],
          "width": 720
        },
        "avatar_larger": {
          "height": 720,
          "uri": "1080x1080/aweme-avatar/tos-cn-i-0813c000-ce_oQeCKAiB7QKAW81fnHIATQDRAl2FEJtuEglF…",
          "url_list": [
            "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c000-ce_oQeCK…"
          ],
          "width": 720
        },
        "avatar_medium": {
          "height": 720,
          "uri": "720x720/aweme-avatar/tos-cn-i-0813c000-ce_oQeCKAiB7QKAW81fnHIATQDRAl2FEJtuEglF4f",
          "url_list": [
            "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c000-ce_oQeCKAi…"
          ],
          "width": 720
        },
        "avatar_thumb": {
          "height": 720,
          "uri": "100x100/aweme-avatar/tos-cn-i-0813c000-ce_oQeCKAiB7QKAW81fnHIATQDRAl2FEJtuEglF4f",
          "url_list": [
            "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c000-ce_oQeCKAi…"
          ],
          "width": 720
        }
      },
      "author_mask_tag": 0,
      "author_user_id": 7565728661744845873,
      "aweme_acl": {
        "download_mask_panel": {
          "code": 1,
          "show_type": 0
        }
      },
      "aweme_control": {
        "can_comment": true,
        "can_forward": true,
        "can_share": true,
        "can_show_comment": true
      },
      "aweme_id": "7701251112510949029",
      "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\":\"false\",\"copyright_reason\":\"has_listen_cp_new\",\"copyrigh…"
      },
      "aweme_type": 0
    }
  ],
  "extra": {
    "fatal_item_ids": [],
    "logid": "2026110315314151CAD125368591AA2FC7",
    "now": 1793691101000
  },
  "has_more": 1,
  "log_pb": {
    "impr_id": "2026110315314151CAD125368591AA2FC7"
  },
  "max_cursor": 1793087105000,
  "min_cursor": 1793087254000,
  "post_serial": 3,
  "replace_series_cover": 1,
  "request_item_cursor": 0,
  "sec_uid": "MS4wLjABAAAAKzTVRAaDq7fTxkJteVYjRsyVPxxofLDAyViyWT43BNRdTjgmqCcolsU_UqRgbzBU",
  "status_code": 0,
  "status_msg": ""
}

Response fields

FieldMeaning
aweme_list[]One entry per video on the user's profile.
aweme_list[].aweme_idThe video ID, returned as a string of digits.
aweme_list[].create_timePublish time of the video, as a 10-digit number such as 1793087254.
aweme_list[].descThe video description text. It is an empty string when the creator wrote none.
aweme_list[].author_user_idNumeric ID of the user who posted the video.
aweme_list[].author.avatar_168x168.url_list / author.avatar_300x300.url_list / author.avatar_thumb.url_listAvatar image URLs of the author at different sizes. Each list holds a .heic and a .jpeg link.
aweme_list[].aweme_control.can_comment / can_forward / can_shareBooleans that show whether commenting, forwarding and sharing are allowed on the video.
aweme_list[].commerce_info.is_adBoolean that shows whether the video is marked as an ad.
aweme_list[].cityA city code attached to the video, such as 410100.

Notes

  • count should not exceed 20. The schema does not declare a numeric default; this teaching request explicitly uses 5.
  • sort_type is 0 for latest first (default) and 1 for hottest first.
  • For the first page, send max_cursor as 0. For the next page, send the max_cursor value from the previous response.
  • Pass aweme_id values to Douyin Video Statistics (Batch), which takes comma-separated video IDs.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Read the first page of a creator's videos

Pass the known creator's sec_user_id and set integer max_cursor to 0 for the first page. Set sort_type to 0 for latest or 1 for hottest, according to the current schema. The count description says not to exceed 20 but does not declare a numeric default. The teaching request explicitly asks for 5 items; this is a small requested limit, not a guaranteed result count or a provider default.

Read aweme_list only after checking provider status. An empty array is a returned empty page; a missing array is an unexpected payload. A first page is not the creator's entire catalogue. Compare the returned order and dates with your task before treating it as a posting history, and do not rank creators from unverified play_count values.

The reference documents max_cursor from the previous response for continuation and shows has_more. This update does not revalidate continuation and does not automatically request another page, batch video statistics or model analysis. Stop after the first response and review any next step and its cost separately.

Use User Profile if you need to review the selected account's profile instead of its posts.

Connect a known creator to your agent

Already have a key? Keep SANDBASE_API_KEY in your local environment and open this page's API tab for the POST /v1/api/ request and Bearer header. Already connected an agent? Give it the selected endpoint and the creator's sec_user_id. For a new project, share the setup Skill, Markdown quickstart and your task. Ask it to make one request and save the response before adding any research workflow.

The saved Playground input may contain the placeholder example. Replace it with the intended creator's sec_user_id before running. The API tab uses a schema example for teaching when the saved value is a placeholder; that example is not a promise that the creator remains available. These public-data requests do not provide access to a private account, an account's management tools or TikTok's separate API.

From a completed SandBase response, read outputs[0].data. In the dated reference samples, Douyin uses integer status_code 0 for success, with a user object for the profile or an aweme_list array for videos. Check that provider status and the expected field before using the data; HTTP 200 alone is insufficient. Preserve missing fields as unknown and treat explicit zero counters as provider-returned values, not independently verified audience measurements.

Pricing checked on 2026-11-08: both selected endpoints list $0.001 per call and eligibility for the organization's 100 daily free data API calls, shared across eligible APIs and reset at 00:00 UTC. Eligibility is not remaining allowance. Inspect current pricing and quota before executing. This update made no new business calls. The Douyin Python integration guide separates the bounded first request from dated historical research.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Douyin API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Douyin User Videos?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/app-v3/user-post-videos với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Douyin User Videos có giá bao nhiêu?

$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Douyin User Videos chấp nhận những tham số nào?

Bắt buộc: sec_user_id (string). Tùy chọn: count (integer), max_cursor (integer) và sort_type (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Douyin User Videos trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Douyin không?

Không. Douyin User Videos chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.

Tôi nên dùng giá trị nào cho trang video đầu tiên?

Sử dụng sec_user_id đúng mục đích, integer max_cursor 0 và sort_type 0 cho mới nhất hoặc 1 cho phổ biến nhất. Mô tả count cho phép không quá 20 nhưng không khai báo giá trị mặc định dạng số. Ví dụ hướng dẫn chỉ yêu cầu 5 và chỉ gọi một lần.

Trang đầu có chứa mọi video hoặc số lượt xem đã xác minh không?

Không. aweme_list trả về chỉ là một trang. Các chỉ số bị thiếu vẫn không xác định, và các giá trị 0 rõ ràng do nhà cung cấp trả về là quan sát được, không phải thước đo độc lập về lượt xem thực tế. Yêu cầu đầu tiên này không khởi động các lệnh gọi tiếp tục hay thống kê theo lô.

Một agent có thể gọi việc này mà không cần cookie đăng nhập Douyin không?

Schema được chọn dùng sec_user_id với xác thực SandBase Bearer và không có trường cookie Douyin. Hãy chia sẻ Skill thiết lập và endpoint với agent của bạn, đồng thời giữ key cục bộ. Kiểm tra pricing và quota còn lại trước; việc đủ điều kiện cho các cuộc gọi miễn phí hằng ngày dùng chung không đảm bảo yêu cầu này miễn phí.