# How can Doubao read Douyin and Xiaohongshu data?

> Doubao shows Douyin search results and summarizes the page you have open, but has no documented way to pull comments or Xiaohongshu notes in bulk. Add a custom connector in Doubao Work.

Canonical page: https://okdata.online/answers/doubao-douyin-xiaohongshu-data/

**Short answer: **On its own, Doubao can show Douyin search results and summarize the page you are viewing, but its official docs describe no way to pull comments or Xiaohongshu notes in bulk. Add https://api.okdata.online/mcp with your key as a custom connector in Doubao Work and it can search Douyin videos ($0.02 a page), read Douyin comments ($0.002 a page) and search Xiaohongshu notes ($0.02 a page). Reading this week's comments on a product's ten top Douyin videos plus five Xiaohongshu notes costs about $0.50.

An e-commerce operator keeps Doubao open all day. Before Monday's meeting she wants to know what people complained about this week under Douyin videos of her air fryer. Asked directly, Doubao writes a plausible summary, but there is no telling which videos or comments it looked at, and the counts cannot be checked. To make it work from real comments, the comments have to reach it.

## What Doubao does on its own

According to Doubao's own documentation:

- With a Douyin account linked, Doubao can show Douyin search results in the chat (Doubao privacy policy).
- The desktop app and browser extension summarize and translate the page you are viewing, including video sites (extension page and privacy policy).
- Doubao Work installs plugins and lets you add your own connector for an internal API or an MCP server (Doubao Work help center, "使用插件").

That covers one video or one note at a time. Ten videos, a thousand comments, this week only, counted by theme: we found nothing in the docs for that, and nothing about searching Xiaohongshu notes or reading their comments.

## Connect okdata in Doubao Work

In **插件·技能·伙伴**, click **+ 添加** on the plugins page, then **新建自定义连接器**. Choose HTTP, set the server URL to `https://api.okdata.online/mcp`, and add a header `Authorization` with the value `Bearer okd_...`. Save, start a new task and pick okdata with `/`. Asking for your balance is free and confirms the link. Full steps, and the Volcano Engine Ark route for developers (Responses API with remote MCP), are on the [Doubao integration page](/integrations/doubao/).

Then ask: search Douyin for the product sorted by latest, three pages; keep the ten videos from the last seven days with the most comments; read five comment pages each; keep this week's comments; group the complaints with counts and quotes; estimate the cost first.

## What that job costs

| Step | Calls | Cost |
|---|---|---|
| [Douyin search](/apis/douyin/videos/search/), 3 pages | 3 | $0.06 |
| [Douyin comments](/apis/douyin/videos/comments/list/), 10 videos × 5 pages | 50 | $0.10 |
| [Xiaohongshu search](/apis/xiaohongshu/notes/search/), 2 pages | 2 | $0.04 |
| [Xiaohongshu comments](/apis/xiaohongshu/notes/comments/list/), 5 notes × 3 pages | 15 | $0.30 |
| Total | 70 | $0.50 |

The [Douyin hot search](/apis/douyin/trends/list/) is $0.002 a call. A call that reached the data source is charged even when it comes back empty, not found or failed; calls stopped earlier, such as bad parameters or low balance, are free, and find, describe, read_more and account cost nothing.

## Without a connector

```python
import os
import requests
from datetime import datetime, timedelta, timezone

API = "https://api.okdata.online"
H = {"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"}
SINCE = (datetime.now(timezone.utc) - timedelta(days=7)).strftime("%Y-%m-%dT%H:%M:%SZ")

def pages(path, n, **params):
    cursor = None
    for _ in range(n):
        q = {**params, "cursor": cursor} if cursor else params
        body = requests.get(API + path, headers=H, params=q, timeout=60).json()
        if body["code"] != "ok":
            print("skipped", path, body["code"], body["message"])
            return
        yield from body["data"]["items"]
        if not body["page"]["has_more"]:
            return
        cursor = body["page"]["next_cursor"]

videos = [v for v in pages("/v1/douyin/videos/search", 3, query="XX 空气炸锅", sort="latest",
                           fields="id,published_at,metrics.comments") if v["published_at"] >= SINCE]
top = sorted(videos, key=lambda v: v["metrics"]["comments"] or 0, reverse=True)[:10]
lines = [f"{c['likes'] or 0}\t{c['text']}"
         for v in top
         for c in pages("/v1/douyin/videos/comments/list", 5, id=v["id"], fields="text,likes,published_at")
         if c["published_at"] >= SINCE]
with open("comments.txt", "w", encoding="utf-8") as f:
    f.write("\n".join(lines))
```

Drop `comments.txt` into the Doubao chat and ask for complaint themes with counts. Douyin returns comments hottest first only, so the date filter is yours to apply. For a tag-and-count method see [finding pain points in comments](/answers/llm-comment-pain-points-douyin-xiaohongshu/); for Coze workflows, [Coze and Dify](/answers/coze-dify-douyin-xiaohongshu-data/); for hot lists in a prompt, [DeepSeek and hot search](/answers/deepseek-weibo-douyin-hot-search/).

## Endpoints used

- [Douyin video search](https://okdata.online/apis/douyin/videos/search/) `douyin.videos.search`: $0.02 per call · about 20 videos per page
- [Douyin video comments](https://okdata.online/apis/douyin/videos/comments/list/) `douyin.videos.comments.list`: $0.002 per call · about 20 comments per page
- [Xiaohongshu note search](https://okdata.online/apis/xiaohongshu/notes/search/) `xiaohongshu.notes.search`: $0.02 per call · about 20 notes per page
- [Xiaohongshu note comments](https://okdata.online/apis/xiaohongshu/notes/comments/list/) `xiaohongshu.notes.comments.list`: $0.02 per call · about 10 comments per page
- [Douyin hot search board](https://okdata.online/apis/douyin/trends/list/) `douyin.trends.list`: $0.002 per call · about 50 board entries per page

## More about Douyin

- [Douyin API](https://okdata.online/apis/douyin/)
- [Douyin API in Python: videos, profiles and comments (2026)](https://okdata.online/guides/douyin-api-python/)
- [How to export Douyin video comments in bulk](https://okdata.online/guides/douyin-video-comments/)
- [How to find Douyin Xingtu creators and get their rate cards](https://okdata.online/guides/douyin-xingtu-creator-rates/)
- [Xiaohongshu API in Python: notes, profiles and comments (2026)](https://okdata.online/guides/xiaohongshu-api-python/)
- [How to export Xiaohongshu comments for a keyword](https://okdata.online/guides/xiaohongshu-note-comments/)
- [How to search Xiaohongshu notes and export them to CSV](https://okdata.online/guides/xiaohongshu-search-export-notes/)
- [Can Tencent Yuanbao read Douyin and Xiaohongshu data?](https://okdata.online/answers/yuanbao-douyin-xiaohongshu-data/)
- [How do I use an LLM to find customer pain points in Douyin and Xiaohongshu comments?](https://okdata.online/answers/llm-comment-pain-points-douyin-xiaohongshu/)
- [MediaCrawler keeps breaking for me. Is a paid API worth it instead?](https://okdata.online/answers/mediacrawler-alternative-paid-api/)
- [Is there an MCP or API version of MediaCrawler for AI agents?](https://okdata.online/answers/mediacrawler-mcp-for-ai-agents/)
- [How can a company outside China get Douyin data in English?](https://okdata.online/answers/douyin-data-outside-china-english/)
- [How to collect Douyin comments: API, crawler or no-code (2026)](https://okdata.online/compare/douyin-comment-scraping/)
- [Douyin data APIs: official vs third-party vs open-source (2026)](https://okdata.online/compare/douyin-data-apis/)

## Sources

Where people asked this (read 2026-11-17): 

- https://www.doubao.com/work/docs/zh-cn/articles/705018132598-plugins
- https://www.doubao.com/legal/privacy
- https://www.doubao.com/browser-extension/landing
- https://www.volcengine.com/docs/82379/1827534

Updated 2026-11-16
