Skip to the content

Scraper API

TikTok

tiktok.commentsAvailable

TikTok comments

Its comments in TikTok's order: text, time, likes, number of replies, and the commenter's display name.

Give it a TikTok video's address or id, and optionally how many comments and where to continue.

1 unit a record, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a record
Inputs
4
Record
12 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/tiktok.comments/runs

{
"input": {
"url": "https://www.tiktok.com/@khaby.lame/video/7709194461913419038",
"max_comments": 3
}
}

sent, and answered

a record of the run12 fields

{
video_id: "7709194461913419038"
comment_id: "7709196017240949524"
position: 1
text: "I am Muslim"
created_at: "2026-11-17T17:38:01Z"
like_count: 812
reply_count: 10
language: "en"
liked_by_creator: false
… 3 more fields

ok1 unit a record

A record this scraper returned for this input. The first 9 of its 12 fields are set down here; the whole record is below.

tiktok.com
The page TikTok comments reads, as a browser shows it
The page this scraper reads, photographed in a browser on 19 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Read what viewers say
The comments under a TikTok video in TikTok's order, with their text, time, likes and number of replies.
Gauge a reaction
Sort a video's comments by like_count to see which responses viewers agreed with.
Spot the creator's picks
pinned_by_creator and liked_by_creator show which comments the creator put forward.

What you send

A TikTok video's address or id, and optionally how many comments and where to continue. These are its 4 inputs, as its schema has them.

urlstring One of the two
The video's address, e.g. https://www.tiktok.com/@khaby.lame/video/7709194461913419038.
video_idstring One of the two
The video's id instead: the digits at the end of its address.
max_commentsinteger Optional
How many comments to return, in TikTok's order: 1 to 500.Default 50
cursorstring Optional
Continue an earlier run: the next_cursor it reported.

A request, ready to send

It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.

# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/tiktok.comments/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://www.tiktok.com/@khaby.lame/video/7709194461913419038","max_comments":3}}'

# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
from enrichednow import EnrichedNow

client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY

# Start a run, wait for it to end, and get its records
result = client.scrape("tiktok.comments", {
    "url": "https://www.tiktok.com/@khaby.lame/video/7709194461913419038",
    "max_comments": 3,
})
print(result.run.id, result.run.status, result.run.record_count)

# Read its records: pages are fetched as you go
for record in result.records:
    print(record)

Install it with pip install enrichednow, then save as run.py and run python3 run.py

import EnrichedNow from "enrichednow";

const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY

// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("tiktok.comments", {
  url: "https://www.tiktok.com/@khaby.lame/video/7709194461913419038",
  max_comments: 3,
});
console.log(run.id, run.status, run.record_count);

// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);

Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

package main

import (
	"context"
	"fmt"
	"log"
	"time"

	enrichednow "github.com/enrichednow/enrichednow-go"
)

func main() {
	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
	defer cancel()

	// Start a run, wait for it to end, and get its records
	run, records, err := client.Scrape(ctx, "tiktok.comments", map[string]any{"url": "https://www.tiktok.com/@khaby.lame/video/7709194461913419038", "max_comments": 3})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(run.ID, run.Status, run.RecordCount)

	// Read its records: pages are fetched as you go
	for records.Next() {
		fmt.Println(string(records.Current()))
	}
	if err := records.Err(); err != nil {
		log.Fatal(err)
	}
}

Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;

public class Run {
    public static void main(String[] args) {
        EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY

        // Start a run, wait for it to end, and get its records
        ScrapeResult result = client.scrape("tiktok.comments", Map.of("url", "https://www.tiktok.com/@khaby.lame/video/7709194461913419038", "max_comments", 3));
        System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());

        // Read its records: pages are fetched as you go
        for (Map<String, Object> record : result.records()) {
            System.out.println(record);
        }
    }
}

Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

enrichednow run tiktok.comments --input url=https://www.tiktok.com/@khaby.lame/video/7709194461913419038 --input max_comments=3

Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

What comes back

Its comments in TikTok's order: text, time, likes, number of replies, and the commenter's display name. A record has 12 fields. One we could not read is null, never an empty string or a zero.

A record tiktok.comments returned
{
  "video_id": "7709194461913419038",
  "comment_id": "7709196017240949524",
  "position": 1,
  "text": "I am Muslim",
  "created_at": "2026-11-17T17:38:01Z",
  "like_count": 812,
  "reply_count": 10,
  "language": "en",
  "liked_by_creator": false,
  "pinned_by_creator": false,
  "author_name": "Person 1",
  "fetched_at": "2026-11-19T18:30:51.469716Z"
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

The fields of a record

video_idstring
The id of the video the comment is under.
comment_idstring
TikTok's id of the comment.
positioninteger
Its place in this run's list, from 1, in TikTok's order.
textstring or null
The comment's text; null for a comment that is only a sticker or picture.
created_atdatetime or null
When it was posted, in UTC.
like_countinteger or null
Number of likes.
reply_countinteger or null
Number of replies under it (the replies are not read).
languagestring or null
The language TikTok detected, e.g. en.
liked_by_creatorboolean
True when the video's creator liked the comment.
pinned_by_creatorboolean
True when the creator pinned it to the top.
author_namestring or null
The commenter's display name, as the comment's byline shows it.
fetched_atdatetime
When the page of comments was read, in UTC.

The whole schema, in its reference

Units and limits

Counted per record
Billed per record: a run that returns data costs 1 unit for each record it returns.
A miss costs nothing
A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
What bounds a run
A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.

What it does not do

  • Up to 500 comments a run; the run reports where to continue.
  • Replies under a comment are not read.
  • A commenter is named only by display name.

The bounds its schema sets

max_comments
1 to 500; 50 unless you say otherwise

Scraper API pricing: how units workThe five ways a run ends

Questions

What does TikTok comments return?

Its comments in TikTok's order: text, time, likes, number of replies, and the commenter's display name. A record has 12 fields, among them video_id, comment_id, position, text, created_at and like_count. A value that could not be read is null, never an empty string or a zero.

What do I send?

A TikTok video's address or id, and optionally how many comments and where to continue. Of url and video_id, send one of the two. Optional: max_comments and cursor.

How is it counted?

Billed per record: a run that returns data costs 1 unit for each record it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.

How much does one run return?

Its schema sets these bounds: max_comments 1 to 500 (50 unless you say otherwise). A run may take up to 5 minutes.

What does it not do?

Up to 500 comments a run; the run reports where to continue. Replies under a comment are not read. A commenter is named only by display name.

How long are the records kept, and in what format do they come?

Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.

Can an AI assistant call it?

Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id tiktok.comments and the same input. It costs what the same API call costs.

TikTok

Public TikTok accounts and their videos, as a visitor who is not signed in sees them.

  • TikTok profile

    tiktok.profile

    A TikTok account's handle, or its profile address. Its names, bio, bio link, verified badge and its follower, following, like and video counts.

  • TikTok profile videos

    tiktok.profile_videos

    A TikTok account's handle, or its profile address. Its most recent videos: caption, hashtags, play, like, comment and share counts, length, sound, cover and link.

  • TikTok video

    tiktok.video

    A TikTok video's address, or its id. Its caption, hashtags, play, like, comment, share and save counts, length, sound, cover and author.

TikTok on the line-up

Where
Worldwide

Run it on an input of your own.

Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.