Skip to main content

Get Douyin video comments and replies with JustOneAPI

Workflow preview

Workflow preview
100%
Get Douyin video comments and replies with JustOneAPI preview
Open on n8n.io

1. Workflow Overview

Use this n8n workflow to get Douyin video comments and fetch replies for the first comment with replies using JustOneAPI. Who’s it for This template is for content researchers, creator operations t...

Best for

  • Market Research automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by apisub001.

Original n8n.io source

1.1 Workflow description

Title
Get Douyin video comments and replies with JustOneAPI
Workflow name
Get Douyin video comments and replies with JustOneAPI

Use this n8n workflow to get Douyin video comments and fetch replies for the first comment with replies using JustOneAPI.

Who’s it for

This template is for content researchers, creator operations teams, marketing teams, analysts, and automation builders who want to collect Douyin video comments and inspect reply threads inside n8n.

What this workflow does

The workflow starts from a Douyin video ID and requests the video comment list with the Video Comments V1 endpoint. It keeps the raw comments response for inspection, cleans the returned top-level comments, and selects the first comment where reply_comment_total is greater than 0.

If a matching comment is found, the workflow sends that comment ID to the Comment Replies V1 endpoint, keeps the raw replies response, cleans the returned replies, and outputs a final structured result. If no comment with replies is found on the selected comments page, the workflow returns a clear no-replies output with the cleaned comments and raw comments response.

This makes it useful for comment review, reply thread collection, engagement research, sentiment workflows, and downstream reporting automations.

What you need

  • A JustOneAPI token
  • A Douyin video ID / aweme ID
  • An n8n environment with HTTP Request node support

Set up

  1. Import the workflow into n8n.
  2. Open the Prepare API and Comment Data node.
  3. Add your JustOneAPI token.
  4. Replace awemeId with the Douyin video ID you want to inspect.
  5. Optionally adjust commentPage and replyPage.
  6. Run the workflow.
  7. Review the final output node and the raw output nodes if you need to debug the API response.

How it works

  1. Prepare the API inputs.
  2. Request the Douyin video comment list.
  3. Keep the raw comments response for troubleshooting.
  4. Clean the returned top-level comments.
  5. Select the first comment with reply_comment_total greater than 0.
  6. Request replies for the selected comment.
  7. Keep the raw replies response for troubleshooting.
  8. Clean the returned replies and build the final output.

Output

The final output can include:

  • awemeId
  • commentPage
  • replyPage
  • hasCommentWithReplies
  • commentsMeta
  • selectedComment
  • repliesMeta
  • totalCommentsReturned
  • replyCountReturned
  • comments
  • replies
  • rawCommentsResponse
  • rawRepliesResponse

If no comment with replies is found on the selected page, the workflow returns a no-replies result with a message, cleaned comments, comment metadata, and the raw comments response.

Notes

  • This workflow is built around the Douyin Video Comments V1 and Comment Replies V1 endpoints.
  • It only fetches replies for the first returned top-level comment that has replies.
  • You can change the comment selection logic in the code node if you want to use a different comment selection rule.
  • You can connect the final output to Google Sheets, Airtable, Notion, databases, dashboards, alerts, or AI analysis steps.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Manual Execution Trigger

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 11 - Prepare API and Comment Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Fetch Video Comments via API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Output Raw Comments Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Select Comment with Replies

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Check for Comment ID

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 16 - Fetch Comment Replies via API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Output Raw Replies Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Build Final Reply Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Output Final Reply Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Build No Replies Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Output No Replies Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

3. Summary Table

Workflow Get Douyin video comments and replies with JustOneAPI
Complexity advanced
Nodes 21
Categories Market Research
Author apisub001
Published 21 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15885/15885.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Get Douyin video comments and replies with JustOneAPI do?

Use this n8n workflow to get Douyin video comments and fetch replies for the first comment with replies using JustOneAPI. Who’s it for This template is for content researchers, creator operations t...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.