Douyin Video Comments
Douyin video comments are public responses attached to a video, with text, author identity, publication context, and visible like or reply signals. These records support audience-response review, conversation mapping, and point-in-time engagement comparison.
Features
- Direct video targetingResolve the numeric video ID from one public douyin.com or iesdouyin.com URL whose path contains /video/{numeric_id}.
- Bounded one-page collectionRequest up to 20 comment rows from the first source page, with results_limit controlling the stored subset from 1 through 20.
- Canonical comment contextReturn CommentItem 1.0 records with text, author identity, video and parent relationships, publication and collection times, and visible like or reply counts.
Parameters
| Parameters | Required | Description |
|---|---|---|
url | Required | Required public URL on douyin.com, iesdouyin.com, or a subdomain. Its path must contain /video/ followed by a numeric video ID. |
results_limit | Optional | Optional integer from 1 through 20. Omission defaults to 20; the integration requests only the first source page. |
How to Use
Set a direct public Douyin video URL, submit the asynchronous task, and read the normalized comments stored for that task.
- Set DOUYIN_VIDEO_URL to a public douyin.com or iesdouyin.com URL with a /video/{numeric_id} path.
- POST url and the optional results_limit to /v1/douyin/video-comments, then save task_id.
- Poll /v1/tasks/{task_id} until the task succeeds or fails.
- Read data.results.items and follow next_cursor only while has_more is true to continue through records already stored by SocQ.
curl -X POST "https://api.socq.ai/v1/douyin/video-comments" \
-H "Authorization: Bearer $SOCQ_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"url\":\"${DOUYIN_VIDEO_URL}\",\"results_limit\":20}"
# Poll GET /v1/tasks/{task_id}
# Read data.results.items and follow next_cursor while has_more is trueBest Use Cases
- Audience-response review: Use comment text, author identity, and visible like or reply counts to review responses to a known public video.
- Comment relationship mapping: Connect returned comments to the source video and any supplied parent reference with post_id and parent_id.
- Engagement snapshot comparison: Compare visible comment signals across selected videos or collection times while retaining collected_at as the observation timestamp.
Pro Tips
- Resolve a shared or redirected link to its final accepted /video/{numeric_id} URL before submitting it, so host and path validation can succeed.
- Omit results_limit to request 20 rows, or choose a smaller integer when only a subset of the one returned source page is needed.
- Reuse the original task_id and follow next_cursor only when has_more is true; that cursor reads stored rows and does not fetch another source page.
- Use the comment id as the primary deduplication key, and allow parent_id or post_id to remain null when the source row omits a relationship.
- Treat author details, published_at, and individual metrics as optional, and use collected_at to timestamp every result snapshot.
- Escape comment text before inserting it into HTML because public comments are user-generated content.
Related APIs
Use these APIs when you need a different type of public Douyin data.
- Douyin Live Room Detail API — Retrieve one known Douyin live room by numeric room ID with normalized room context, host identity, media, and visible audience counts.
- Douyin User Profile API
- Douyin User Videos API
- Douyin Video Detail API
- Douyin Video Search API