# TikTok Comments Export: Comments to CSV or JSON

Paste a TikTok video link and export its comments: text, author, likes, reply count and date. Turn on includeReplies to add the replies under each comment.

- Actor: openclawai/tiktok-douyin-bilibili-scraper (TikTok & Douyin Scraper), https://datapika.com/actors/tiktok-douyin-bilibili-scraper
- Run on Apify: https://apify.com/openclawai/tiktok-douyin-bilibili-scraper
- Tested: 2026-11-23, 5 rows in 2 seconds, $0.0025 at free-plan prices

## Input

```json
{
  "mode": "video_comments",
  "platform": "tiktok",
  "urls": [
    "https://www.tiktok.com/@khaby.lame/video/7644214443265625375"
  ],
  "maxItems": 50
}
```

## Output fields

- `platform`: Platform
- `author_name`: Author
- `like_count`: Likes
- `comment_count`: Comments
- `created_at`: Posted
- `url`: URL

## Sample rows (personal data masked)

```json
[
  {
    "platform": "tiktok",
    "author_name": "Samuel",
    "like_count": 75237,
    "comment_count": 46,
    "created_at": "2026-05-26T15:06:49+00:00",
    "url": "https://www.tiktok.com/@khaby.lame/video/7644214443265625375"
  },
  {
    "platform": "tiktok",
    "author_name": "istahil🇬🇲🇸🇱 🇰🇪",
    "like_count": 8594,
    "comment_count": 50,
    "created_at": "2026-05-27T05:14:57+00:00",
    "url": "https://www.tiktok.com/@khaby.lame/video/7644214443265625375"
  },
  {
    "platform": "tiktok",
    "author_name": "inaaah🦕",
    "like_count": 36321,
    "comment_count": 24,
    "created_at": "2026-05-26T15:14:11+00:00",
    "url": "https://www.tiktok.com/@khaby.lame/video/7644214443265625375"
  }
]
```

Full sample: https://datapika.com/data/tasks/tiktok-video-comments.json

## How to run it

1. **Open the actor on Apify.** Click Copy input, then Run on Apify to open the TikTok & Douyin Scraper. Sign in or create a free account, open the JSON tab of the input form and paste the input.
2. **Start the "TikTok Comments Export: Comments to CSV or JSON" task.** Press Start. Change any input field first if you need a different topic, account or size; the fields are listed above.
3. **Get the results.** Rows arrive in a dataset while the run works. Our test returned 5 rows in 2 seconds.
4. **Use the data.** Download JSON, CSV or Excel, call the run from the API, schedule it, or let an AI agent run it through MCP.

API (replace the token):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/openclawai~tiktok-douyin-bilibili-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"video_comments","platform":"tiktok","urls":["https://www.tiktok.com/@khaby.lame/video/7644214443265625375"],"maxItems":50}'
```

## Change it

- mode picks the job: videos, profile, comments, followers, search, trending, downloads and more.
- platform picks TikTok, Douyin, Bilibili or Kuaishou; auto detects it from each link.
- Paste your own profile, video or hashtag links in urls.
- Raise maxItems for a bigger dataset; you pay per result delivered.

## FAQ

### Can I include replies?

Yes. Turn on includeReplies to fetch the replies under each comment.

### Do I need an account, cookie or API key?

No. It reads public data with no login, cookie or API key. Run it from the Apify Console, the API, or an AI agent through MCP.

### How much does it cost?

You pay per result delivered to your dataset. There is no start fee. The current prices are on the Pricing tab.

### How do I export the results?

Download the dataset as JSON, CSV or Excel, or read it through the Apify API.
