API Get Douyin User — Lấy danh sách video Douyin theo sec_user_id
API Get Douyin User của revidapi.com trả về danh sách video từ tài khoản Douyin qua sec_user_id, kèm aweme_id, mô tả, link video và share URL. Giá cố định 35 credit mỗi request — không phụ thuộc số video trả về.
Tài liệu: Get Douyin User API. Xem thêm Download Social, API Download đa nền tảng và Get TikTok User.
Điểm nổi bật
- 35 credit / request — giá cố định theo tài liệu revidapi.com
- Phân trang: dùng
max_cursortừ response cho request tiếp theo - Trả về link trực tiếp:
video_url,share_urltừng video - ~20 video/trang mặc định (theo docs)
- Kết hợp Download: dùng
share_urlvới/paid/douyin/download - Phù hợp cross-border: thu thập content Trung Quốc, nghiên cứu trend Douyin
Endpoint & tham số
| Tham số | Bắt buộc | Mô tả |
|---|---|---|
| URL | — | POST https://api.revidapi.com/paid/douyin/user/download |
x-api-key |
Có | API Key — lấy tại revidapi.com |
sec_user_id |
Có | ID user Douyin (từ URL profile, dạng MS4wLjAB...) |
max_cursor |
Không | Cursor phân trang. Lần đầu: 0 hoặc bỏ qua |
Ví dụ gọi API (cURL)
curl -X POST "https://api.revidapi.com/paid/douyin/user/download?sec_user_id=MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"
-H "x-api-key: YOUR_API_KEY"
curl -X POST "https://api.revidapi.com/paid/douyin/user/download?sec_user_id=MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE&max_cursor=1734567890123"
-H "x-api-key: YOUR_API_KEY"
Response mẫu
{
"sec_user_id": "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE",
"videos": [
{
"aweme_id": "7123456789012345678",
"description": "Video description",
"video_url": "https://.../video.mp4",
"share_url": "https://www.douyin.com/video/7123456789012345678"
}
],
"max_cursor": "1734567890123",
"has_more": true,
"total_fetched": 20
}
Giá & cách tính credit
- 35 credit / request — theo pricing docs
- Không tính thêm theo số video trong
videos[] - Download từng video Douyin: thêm 5 credit qua
/paid/douyin/download - Đăng ký mới: Free 100 credit
Cách lấy sec_user_id
- Mở profile Douyin trên trình duyệt (desktop hoặc mobile web)
- Xem URL hoặc network request — tìm chuỗi
sec_user_iddạngMS4wLjAB... - Copy giá trị đó vào query parameter
sec_user_id
Workflow tích hợp
- Gọi
/paid/douyin/user/downloadvớisec_user_id - Duyệt
videos[]— lấyshare_urlhoặcvideo_url - Tải file: POST
/paid/douyin/download?url=SHARE_URL - Nếu
has_more: true: gọi lại vớimax_cursormới
Câu hỏi thường gặp (FAQ)
API tốn bao nhiêu credit?
35 credit mỗi request, cố định theo tài liệu. Xem bảng giá trên trang sản phẩm.
Lỗi 502 / 503 nghĩa là gì?
503: server chưa cấu hình RevidAPI credentials. 502: lỗi backend, rate limit hoặc tham số không hợp lệ — đọc field detail và thử lại với backoff.
Phân trang dùng gì?
Lần đầu bỏ max_cursor hoặc gửi 0. Các lần sau gửi max_cursor từ response trước. Dừng khi has_more: false.
video_url và share_url khác nhau thế nào?
video_url là link file trực tiếp (nếu có). share_url là trang video công khai trên douyin.com — dùng với Download API để tải ổn định hơn.
Có giống Get TikTok User không?
Cùng mục đích list video theo user nhưng Douyin dùng sec_user_id và cursor max_cursor. TikTok dùng username + min_revid — xem API Get TikTok User (15 credit/request).
Bắt đầu ngay
Nhấn Thử Ngay nhận 100 credit miễn phí. Kết hợp với API Download Douyin để hoàn thiện pipeline thu thập content.
revidapi.com — Hệ sinh thái AI & API automation cho thị trường Việt Nam.
