Social media4 min readBy Purrkey teamUpdated

How to export comments on a Douyin video

Pull a Douyin video's public comments with author, likes, replies, timestamp, and cursor paging

On this page

You have three Douyin campaign videos and need the first page of public comments for each video so you can identify recurring questions for the next post

The table below is a design, not a run. Values here are placeholders showing the shape. No call has been made for this article

videoIdtextauthorNicknameauthorUniqueIdlikesreplyCountcreatedUtcipLabelTheme
7345678901234567890Example question about sizingExampleUserAexample_handle_a411730000000Example region
7345678901234567890Example question about shippingExampleUserBexample_handle_b201730000100Example region
7345678901234567891Example question about the offer end dateExampleUserCexample_handle_c931730000200Example region

A companion guide covers exporting TikTok video comments

Fetch the first page for three videos

anyapi.douyin.video_comments takes videoId, the Douyin aweme_id for the video, and an optional cursor. For the first page, omit cursor. The contract also accepts a raw integer cursor, and the cursor property has a minimum of 0. Agents call it through POST /v1/runs with toolId anyapi.douyin.video_comments

Example input, with invented IDs to replace before running:

videoId
7345678901234567890
7345678901234567891
7345678901234567892

The IDs above are placeholders. Use the real aweme_id for each campaign video

Pagination is cursor-based: omit cursor for the first page, then pass the previous response's nextCursor. A raw integer cursor is still accepted. The first page is one call per video, so three videos take three calls

Read the output fields that drive a decision

The top-level found field is true when comments were found. data is null when none were found, or an object with comments, total, hasMore and nextCursor

Each item in data.comments carries text, authorNickname, authorUniqueId, likes, replyCount, createdUtc, ipLabel, id and videoId. likes is the comment like count, and replyCount is the direct reply count, so those two fields help you pick which comments to read first. createdUtc is a UTC epoch timestamp in seconds; multiply by 1000 for a JS Date in milliseconds. ipLabel is the approximate location label shown by Douyin

data.hasMore says whether another page is available. data.nextCursor is the opaque cursor for the next page, or null when this lane has no more. Pass it back as cursor to continue. data.total is the total comment count reported by Douyin

reason is present only when found is false. The value not_found means the source states the target does not exist, or returned nothing for it. The contract says a found: false answer is a successful call, not an error

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch the first page of public comments for the three Douyin video IDs below. Check the current inputs and price of anyapi.douyin.video_comments before running. Omit cursor on each first call. Return a table with videoId, text, authorNickname, authorUniqueId, likes, replyCount, createdUtc, ipLabel and an empty Theme column. Do not run follow-up pages in this pass. Do not guess comments.

7345678901234567890
7345678901234567891
7345678901234567892

Estimated tool cost

anyapi.douyin.video_comments is listed at up to $0.0012 per call, unit max_call. The catalog defines max_call as: "Maximum per call. Successful runs settle at the actual AnyAPI charge." Cost tables are ceilings

StepFormulaUnit pricePlanned quantityTotal
First page, 3 videos3 calls x max price$0.0012 per call3$0.0036
Follow-up page per video3 calls x max price$0.0012 per call3$0.0036
Six-call planfirst page plus follow-up page for each video6$0.0072

The scope is the first page for 3 videos, then one follow-up page for each video. If you stop after the first pages, the ceiling is $0.0036. Agent model fees are not counted

Next action

Open the tool page for anyapi.douyin.video_comments: Douyin video comments

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Douyin.
Explore Douyin tools and pricing

FAQ

How do I export comments from a Douyin video?

Call the Douyin video comments tool with the video's videoId. Omit cursor for the first page, or pass the previous response's nextCursor for more comments.

What input does the Douyin video comments tool take?

It takes a required videoId, which is the Douyin video identifier, and an optional cursor. A raw integer cursor is still accepted.

What fields come back for each comment?

The comment fields include text, authorNickname, authorUniqueId, likes, replyCount, createdUtc and ipLabel, plus id and videoId. createdUtc is a UTC epoch timestamp in seconds.

How does cursor pagination work?

Omit cursor for the first page. Then pass the previous response's nextCursor as cursor; hasMore says whether another page is available, and nextCursor is null when this lane has no more.

What does found false mean?

It means comments were not found. reason is present only when found is false, with the no-result reason value, and the contract says a found: false answer is a successful call, not an error. data is null when none were found.

How much does it cost to pull first pages for three videos?

At most $0.0036 for three calls at $0.0012 per call. With one follow-up page for each video, six calls cost at most $0.0072.

Why add a Theme column?

The tool does not return Theme. You add Theme after export by grouping comment text into recurring questions.

Next step

Try this with Douyin

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Douyin tools

Share this article