# How do I export Douyin data?

Take it page by page with OneFeedAPI's Douyin endpoints: videos, accounts, comments, trend-index (巨量算数) figures and Xingtu rate cards all come back in one JSON shape, so paging through and saving is the export. Without code, the command line writes results to a file, and a Skill turns jobs like comments straight into a CSV table. OneFeedAPI reads Douyin with 41 endpoints, from $0.0020 a call; a failed call is not charged, and the free trial covers up to 333 calls.

## What you can export

Videos found by keyword, an account's profile and its videos, the comments and replies under a video, Douyin's trending lists, a keyword's daily search and composite index from the trend-index (巨量算数), and Xingtu creators' rate cards and audiences. All of it is publicly visible data; you never sign in to Douyin.

## Three ways to export

**In code**: each call returns one page, with the list in `data.items`; pass `page.next_cursor` back as `cursor` for the next page, within the hour the cursor is good for. Every page is a call charged on its own.

**On the command line**: `onefeedapi call` with `--pages` walks several pages, `--max-spend` caps what they may cost, and `--out` writes the result to a JSON file. **With a Skill**: `onefeedapi run comments` takes a video's comments page by page, and `--out` writes them as a CSV that opens in any spreadsheet.

## Before you export

Failed calls are not charged. A call's result is kept for 24 hours: reading it again by its request ID, in another view, is not charged again.

## Why OneFeedAPI

- Steady: endpoints were available 99.9% of the last 30 days, on a public status page you can check.
- Fast: a paid call took 2.2 seconds at the median over the last 7 days (counted 2026-11-06).
- Fewer tokens: across 36 endpoints on Douyin, one recorded real response each, the platform's own JSON comes to 2.4M tokens and what an AI reads through OneFeedAPI's MCP server to 72k, 97% fewer; the JSON of a direct API call is 96% fewer too (counted 2026-11-06). Every platform answers in one shape: the author in `author`, counts in `metrics`, the next page in `page.next_cursor`, so another platform needs no new parser.
- See before you pay: every endpoint's page shows a recorded real response, field by field.
- Spending you control: a failed call is not charged; each key can have a limit, `X-Max-Price` caps one call, and the same `Idempotency-Key` within 24 hours is never charged twice.
- Ready for AI: a remote MCP server listed in the official MCP registry as `com.onefeedapi/mcp`, usable from Claude, Cursor and ChatGPT.
- Free trial of up to 333 calls, no card.

## Endpoints

- [Douyin video search](https://onefeedapi.com/apis/douyin/videos/search/) ($0.0200 / a call): Search Douyin videos by terms, a page at a time, sorted by relevance, newest or most liked and filtered by time posted: caption, author with follower count, engagement counts.
- [Douyin user videos](https://onefeedapi.com/apis/douyin/users/videos/list/) ($0.0020 / a call): Get a page of the videos a Douyin account has posted, newest first: caption, engagement counts, time posted.
- [Douyin video comments](https://onefeedapi.com/apis/douyin/videos/comments/list/) ($0.0020 / a call): Get a page of comments on a Douyin video: text, commenter, likes, reply count, time posted.
- [Douyin trend-index keyword trends](https://onefeedapi.com/apis/douyin/index/keywords/history/) ($0.0060 / a call): Get the day-by-day search index and composite index of a keyword, or of one to five keywords at once, on Douyin over a date range, from 巨量算数 (the Douyin index), with the daily averages of the period, of the one before and of a year earlier. An index is the platform's score of volume, not a count of searches; days are calendar days in China time (UTC+8).

## How-to guides

- [How to export Douyin video comments in bulk](https://onefeedapi.com/guides/douyin-video-comments/)
- [How to get Douyin keyword trends in bulk](https://onefeedapi.com/guides/douyin-keyword-trends/)
- [How to look up a Douyin creator's Xingtu rate card](https://onefeedapi.com/guides/douyin-xingtu-creator-rates/)

## More about Douyin

- [Douyin API](https://onefeedapi.com/apis/douyin/)
- [Douyin trend-index API](https://onefeedapi.com/apis/douyin/index/)
- [What is sec_uid on Douyin, and how is it different from uid and the Douyin ID?](https://onefeedapi.com/answers/douyin-sec-uid/)
- [What are aweme_id and modal_id on Douyin, and what is a v.douyin.com link?](https://onefeedapi.com/answers/douyin-aweme-id-modal-id/)
- [Is the Douyin search index a number of searches?](https://onefeedapi.com/answers/douyin-search-index-vs-search-count/)
- [What is the Douyin keyword index (Ocean Engine)?](https://onefeedapi.com/answers/what-is-douyin-keyword-index-ocean-engine/)
- [What is Douyin Xingtu?](https://onefeedapi.com/answers/what-is-douyin-xingtu/)
- [Douyin API for developers: third-party Douyin data APIs and what they return (2026)](https://onefeedapi.com/answers/douyin-third-party-data-apis/)
- [Douyin video download URL: getting a video's play address by API (2026)](https://onefeedapi.com/answers/douyin-video-play-url-api/)
- [Which social media data API is best for AI agents? Count the tokens a response takes (2026)](https://onefeedapi.com/answers/social-media-api-for-ai-agents/)
- [Does Douyin have an API? Get videos and comments with Python (2026)](https://onefeedapi.com/guides/douyin-api-python/)
- [SocialCrawl alternative for Douyin, Xiaohongshu and WeChat data](https://onefeedapi.com/compare/socialcrawl-alternative/)
- [How to choose a social media data API: failed-call charges, MCP and Chinese platforms](https://onefeedapi.com/compare/social-media-data-apis/)

---

Catalog revision dc959672dd18e2d0. [HTML version](https://onefeedapi.com/answers/export-douyin-data/)
