GET /v1/douyin/comment_list
Douyin comments API: get a video's comments by video ID
Returns a Douyin video's top-level comments, hottest first, each with text, post time, likes, reply count, author and the commenter's region in extra.ip_label. Send aweme_id. Use max_pages=1 for one page. Leave it out to run a job that reads 10 pages, or send max_pages=-1 for a job that reads every page.
- Price
- $0.0005 per 20 results
- Billing
- $0.0005/20
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/douyin/comment_list?aweme_id=7626744113161170259&max_pages=1' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/douyin/comment_list",
params={
"aweme_id": "7626744113161170259",
"max_pages": "1",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
aweme_id required | query | string | A numeric Douyin video id, or the https://www.douyin.com/video/{id} URL. |
since | query | string | Not accepted on this operation: its items carry no timestamp, so since returns 400 before billing. |
max_pages | query | integer | Maximum pages to fetch. -1 walks until exhaustion or since with no page cap, and must be written. Omitted, since alone bounds the walk; with neither, the job stops after 10 pages. Any positive integer is accepted. 1 returns one page synchronously with HTTP 200; any other value creates a durable job with HTTP 202. |
cursor | query | string | Opaque next_cursor from an earlier answer of this operation, also with get_raw=true. A native Douyin cursor from a raw page answers 400. Result download cursors belong to the results route. |
page_size | query | integer | Native count, default 20. Douyin answers at most 50. Billed per 20 unique returned items, one native page. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Douyin (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. cache_only reads one saved page per request: omit max_pages or pass 1, and continue with next_cursor. |
get_raw | query | boolean | true returns the upstream JSON exactly as Douyin answered it instead of the normalized Page[Comment]. |
Idempotency-Key | header | string | Reuse this key with the same inputs to recover a lost job submission. A different input with the same key returns 409. |
Example response
The example response of the API reference.
{
"data": {
"items": [
{
"id": "7626917599154668346",
"text": "我们这的gay就是比我们想象中的要多,我朋友下载小蓝打开定位发现附近都是!",
"created_at": "2026-04-10T00:15:37+00:00",
"likes": 1628,
"replies": 23,
"liked_by_owner": false,
"owner": {
"id": "107784388189",
"username": null,
"full_name": "永恒დ",
"is_verified": null,
"is_private": null,
"avatar_url": null,
"latest_story_at": null,
"extra": {
"sec_uid": "MS4wLjABAAAAARWGYL5dehexhDWxcxqzPnaQFe8xeFnyt32Hwha9ngQ"
}
},
"extra": {
"ip_label": "山东"
}
},
{
"id": "7634600795917501243",
"text": "感觉说的这么像绝情电工啊,而且他也是湖北的[憨笑]",
"created_at": "2026-04-30T17:10:21+00:00",
"likes": 3,
"replies": 3,
"liked_by_owner": false,
"owner": {
"id": "2516126428313956",
"username": "Joker36836",
"full_name": "周可儿.",
"is_verified": null,
"is_private": null,
"avatar_url": null,
"latest_story_at": null,
"extra": {
"sec_uid": "MS4wLjABAAAAv53LYISXn58eERN3yPa1MhWkd--rNqsqW35746RemS8O72ALY4KFT2nS5aURKGVD"
}
},
"extra": {
"ip_label": "安徽"
}
}
],
"pages": [
{
"cursor": null,
"fetched_at": "2026-10-27T21:05:15.438109+00:00",
"count": 19
}
],
"next_cursor": "eyJjdXJzb3IiOiIyMCIsIm9wIjoiY29tbWVudF9saXN0In0",
"has_more": true,
"stop_reason": "pages",
"coverage": {
"since": null,
"oldest_at": null,
"since_reached": false
}
},
"meta": {
"source": "live",
"fetched_at": "2026-10-27T21:05:15.438109+00:00",
"cost": "$0.0005",
"balance": "$9.9960",
"request_id": "req_0f70712d13cdec5c83f3d4d3aea9efb4"
}
}How it works
A video's top-level comments, hottest first, with each commenter's region in extra.ip_label. With max_pages=1, returns Page[Comment] under data; with get_raw=true returns the upstream JSON.
The default request creates a durable job (202). Use max_pages=1 for one synchronous Page response (200). Poll status_url, then read results_url with its opaque cursor. Acquisition stops at the first of since, max_pages, or exhaustion. Jobs continue after disconnects. Supply Idempotency-Key to recover a lost submission response; reuse it with the same inputs.
A field Douyin does not carry is null, a list it does not carry is [], and Douyin-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Billing: $0.0005 per 20 unique returned items (one native page), rounded up to a minimum of one billing unit. Jobs settle once after successful completion.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the Douyin account or item does not exist (not_found). You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |