API Douyin: video, bình luận, livestream, xu hướng, creator Xingtu
49 Douyin endpoints covering videos, accounts, hot lists, comments, hashtags, keywords, live streams, Image posts, notes, music, Xingtu and Ocean Engine index, from $0.002 a call. No Douyin account or cookie needed.
Kết nối AI của bạn
Dán câu này vào agent của bạn
Đọc https://okdata.online/agents.md và thiết lập okdata cho tôi; khóa của tôi nằm trong biến môi trường OKDATA_API_KEY.
Claude Code, Cursor, Codex và các agent khác có thể mở liên kết sẽ tự thiết lập từ đó.
MCP serverhttps://api.okdata.online/mcp
Ask about Douyin from Claude, Cursor and other agents: the Douyin MCP page
- Endpoint
- 49 endpoint
- Trong 12 nhóm, một định dạng phản hồi · 1 sắp ra mắt
- Giá thấp nhất
- Từ $0.002
- Một lệnh gọi, trả từ số dư trả trước
- Độ mới
- Live
- Các bảng là snapshot dùng chung, cũ tối đa 10 phút
- Phí hằng tháng
- $0
- Không cần gói đăng ký hay mức chi tối thiểu
Mọi endpoint Douyin
Mỗi endpoint một dòng: request, dữ liệu trả về và giá một lượt gọi.
Video
9- Tìm video DouyinGET /v1/douyin/videos/searchPost[]$0.02
- Chi tiết video DouyinGET /v1/douyin/videos/getBài đăng$0.002
- Bình luận video DouyinGET /v1/douyin/videos/comments/listComment[]$0.002
- Lượt phát video DouyinGET /v1/douyin/videos/metricsBài đăng$0.002
- Video liên quan DouyinGET /v1/douyin/videos/relatedPost[]$0.002
- Bảng xếp hạng video DouyinGET /v1/douyin/videos/trendingPost[]$0.002
- Bản ghi lời video DouyinGET /v1/douyin/videos/transcript/getBản ghi lời$0.044
- Chữ trên màn hình video DouyinGET /v1/douyin/videos/screen_text/getMediaText$0.011
- Video and image filesGET /v1/douyin/videos/media/getPostMedia$0.002
Tài khoản
4Danh sách hot
1Bình luận
1Hashtag
2Từ khóa
1Live stream
5- Phòng live DouyinGET /v1/douyin/live/rooms/getLiveRoom$0.002
- Trạng thái live của tài khoản DouyinGET /v1/douyin/live/users/getLiveRoom$0.004
- Bảng xếp hạng streamer live DouyinGET /v1/douyin/live/streamers/trendingLiveStreamer[]$0.006
- Số liệu live của streamer DouyinGET /v1/douyin/live/streamers/metricsLiveStreamer$0.04
- Tìm live DouyinGET /v1/douyin/live/rooms/searchLiveRoom[]$0.043
Bài đăng ảnh
1Ghi chú
1Music
2- Tìm nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/searchCreator[]$0.004
- Bảng giá nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/rates/getCreatorRate$0.04
- Hồ sơ nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/getNhà sáng tạo$0.004
- Khán giả của nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/audience/getKhán giả$0.004
- Phạm vi tiếp cận của nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/metricsXingtuCreatorMetrics$0.004
- Video của nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/videos/listXingtuCreatorPost[]$0.004
- Từ khóa của nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/keywords/getXingtuCreatorKeywords$0.002
- Điểm của nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/scores/getXingtuCreatorScores$0.008
- Cơ cấu nội dung của nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/content_mix/getXingtuCreatorContentMix$0.004
- Chuyển đổi của nhà sáng tạo Douyin XingtuGET /v1/douyin/xingtu/creators/conversion/getXingtuCreatorConversion$0.004
- Lịch marketing Douyin XingtuGET /v1/douyin/xingtu/campaigns/listXingtuCampaign[]$0.004
- Báo cáo video Douyin XingtuGET /v1/douyin/xingtu/videos/getBài đăng$0.004
- Xu hướng thương hiệuGET /v1/douyin/index/brands/historyBrandHistory$0.002
- Thương hiệu so với ngànhGET /v1/douyin/index/brands/metricsBrandMetrics$0.002
- Video hàng đầu của tài khoảnGET /v1/douyin/index/creators/videos/listPost[]$0.002
- Người theo dõi tài khoảnGET /v1/douyin/index/creators/audience/getKhán giả$0.002
- Trung bình hằng ngày của tài khoảnGET /v1/douyin/index/creators/metricsIndexCreatorMetrics$0.002
- Khán giả theo từ khóaGET /v1/douyin/index/keywords/audience/getKeywordAudience$0.002
- Xu hướng từ khóaGET /v1/douyin/index/keywords/historyKeywordHistory[]$0.006
- Từ khóa liên quanGET /v1/douyin/index/keywords/relatedKeywordRelated[]$0.002
- Chủ đề live nổi bậtGET /v1/douyin/index/trends/listTrend[]$0.002
- Video hàng đầu cho một từ khóaGET /v1/douyin/index/videos/searchPost[]$0.002
Giá tính theo lượt gọi trừ khi ghi /item. Lượt gọi đã tới nền tảng vẫn bị tính phí ngay cả khi trả về rỗng hoặc thất bại.
Mọi người làm gì với dữ liệu Douyin
Mỗi tác vụ có trang riêng với các endpoint nó dùng, một lần chạy mẫu và chi phí.
Tìm nhà sáng tạo
“Những creator tầm trung trong mảng đồ cắm trại là ai?”
- Hồ sơ tài khoản Douyin$0.002
- Tìm nhà sáng tạo Douyin Xingtu$0.004
- Bảng giá nhà sáng tạo Douyin Xingtu$0.04
19 endpoint tại đây, từ $0.002Cách hoạt động
Nghiên cứu nội dung
“Các bài đăng hàng đầu về chủ đề này có điểm gì chung?”
- Tìm video Douyin$0.02
- Chi tiết video Douyin$0.002
- Video theo hashtag Douyin$0.002
18 endpoint tại đây, từ $0.002Cách hoạt động
Nghiên cứu xu hướng
“Hôm nay có xu hướng gì mà chúng ta có thể tận dụng?”
17 endpoint tại đây, từ $0.002Cách hoạt động
Theo dõi đối thủ
“Tuần này đối thủ đã đăng gì, và bài nào bùng nổ?”
- Tìm video Douyin$0.02
- Chi tiết video Douyin$0.002
- Hồ sơ tài khoản Douyin$0.002
16 endpoint tại đây, từ $0.002Cách hoạt động
Nghiên cứu sản phẩm
“Các sản phẩm bán chạy nhất có giá bao nhiêu, và người mua phàn nàn gì?”
3 endpoint tại đây, từ $0.002Cách hoạt động
Truyền miệng
“Người mua phàn nàn nhiều nhất về điều gì?”
- Bình luận video Douyin$0.002
- Trả lời bình luận Douyin$0.002
2 endpoint tại đây, từ $0.002Cách hoạt động
Bản chép lời
“Kênh này đã giới thiệu những sản phẩm nào?”
2 endpoint tại đây, từ $0.011Cách hoạt động
Bắt đầu trong ba bước
The example is Tìm video Douyin; every Douyin endpoint is called the same way and answers in the same shape.
Lấy key
Tạo tài khoản và khóa trong console. Khóa mới đi kèm $0.20 để dùng thử, không cần thẻ.
Kết nối AI của bạn, hoặc tự gọi API
Dán câu này vào Claude Code, Cursor, Codex hoặc agent khác có thể mở link, và nó sẽ tự thiết lập. Hoặc gửi request bên dưới với key của bạn trong header Authorization.
Hãy thiết lập okdata cho tôi theo https://okdata.online/agents.md. Đây là API key okdata của tôi: okd_…. Hãy giữ an toàn và dùng nó cho mọi lệnh gọi okdata.
Thay phần giữ chỗ bằng key của bạn, hoặc đăng nhập và sao chép bản đã điền sẵn key.
Thực hiện lượt gọi đầu tiên
Các mục nằm trong data.items (một đối tượng trong data.item), trang tiếp theo trong page.next_cursor và số tiền bị tính trong meta.billing.amount.
cURL
curl -G "https://api.okdata.online/v1/douyin/videos/search" \ -H "Authorization: Bearer $OKDATA_API_KEY" \ --data-urlencode 'query=露营装备'Python
import os import requests resp = requests.get( "https://api.okdata.online/v1/douyin/videos/search", headers={"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"}, params={"query": "露营装备"}, timeout=60, ) body = resp.json() if body["code"] != "ok": raise RuntimeError(f"{body['code']}: {body['message']} (charged: {body['charged']})") for row in body["data"]["items"]: print(row["id"], row["metrics"]["likes"], row["text"][:60]) print("cost: $" + body["meta"]["billing"]["amount"])TypeScript
const url = new URL('https://api.okdata.online/v1/douyin/videos/search'); url.searchParams.set('query', "露营装备"); const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.OKDATA_API_KEY}`, }, }); const body = await res.json(); if (body.code !== 'ok') throw new Error(`${body.code}: ${body.message}`); for (const row of body.data.items) { console.log(row.id, row.metrics.likes, row.text.slice(0, 60)); } console.log('cost: $' + body.meta.billing.amount);MCPtools/call
{ "name": "call", "arguments": { "capability": "douyin.videos.search", "query": "露营装备" } }
Câu hỏi về Douyin API
Douyin API giá bao nhiêu?
Each of the 49 endpoints has its own price, from $0.002 to $0.044 a call; the cheapest is Trả lời bình luận Douyin at $0.002. You pay per call from a prepaid balance, with no subscription. A call that reaches the platform is charged even when it comes back empty, not found or failed; one stopped before that, such as for bad parameters, is free.
Tôi có cần tài khoản hoặc cookie Douyin không?
No. You call https://api.okdata.online with one okdata key and get public Douyin data back; you never use your own Douyin account, cookie or QR login.
Dữ liệu mới đến mức nào?
A request reads Douyin when you call, unless the same request was answered a short while ago: then the answer can come from the result cache, with meta.cached: true and meta.fetched_at saying when it was read (lists and searches up to 30 minutes old, one post or product up to 1 hour, profiles up to 6 hours). Hot lists come from a shared snapshot that is at most 10 minutes old.
AI agent của tôi có dùng được API Douyin không?
Có. Kết nối MCP server tại https://api.okdata.online/mcp: công cụ find liệt kê 49 endpoint này kèm giá, và công cụ call chạy chúng bằng key của bạn.
Tôi có thể dùng thử miễn phí không?
New accounts get $0.20 of trial credit with no card: enough for 100 calls to Trả lời bình luận Douyin.
