Skip to the content

Scraper API

TikTok

tiktok.videoAvailable

TikTok video

Its caption, hashtags, play, like, comment, share and save counts, length, sound, cover and author.

Give it a TikTok video's address, or its id.

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

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

POST/v1/scrapers/tiktok.video/runs

{
"input": {
"url": "https://www.tiktok.com/@nasa/video/7665075736742530317"
}
}

sent, and answered

a record of the run30 fields

{
id: "7665075736742530317"
url: "https://www.tiktok.com/@nasa/video/7665075736742530317"
caption: "Something big just landed on TikTok."
hashtags: []
mentions: []
created_at: "2026-07-21T20:09:02Z"
author_username: "nasa"
author_display_name: "NASA"
author_id: "7664638705177150477"
… 21 more fields

ok1 unit a run

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

tiktok.com
The page TikTok video 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

Measure a video
A video's plays, likes, comments, shares, saves and reposts, with its caption, hashtags and sound.
Report on a paid post
Read the videos of a campaign by address and put the figures in one table.
Follow a sound
music_title, music_author and music_original name the sound a video uses, to see what a trend is built on.

What you send

A TikTok video's address, or its id. These are its 2 inputs, as its schema has them.

urlstring One of the two
The video's address, e.g. https://www.tiktok.com/@nasa/video/7665075736742530317.
video_idstring One of the two
The video's id instead: the digits at the end of its address.

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.video/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://www.tiktok.com/@nasa/video/7665075736742530317"}}'

# 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.video", {
    "url": "https://www.tiktok.com/@nasa/video/7665075736742530317",
})
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.video", {
  url: "https://www.tiktok.com/@nasa/video/7665075736742530317",
});
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.video", map[string]any{"url": "https://www.tiktok.com/@nasa/video/7665075736742530317"})
	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.video", Map.of("url", "https://www.tiktok.com/@nasa/video/7665075736742530317"));
        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.video --input url=https://www.tiktok.com/@nasa/video/7665075736742530317

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

What comes back

Its caption, hashtags, play, like, comment, share and save counts, length, sound, cover and author. A record has 30 fields. One we could not read is null, never an empty string or a zero.

A record tiktok.video returned
{
  "id": "7665075736742530317",
  "url": "https://www.tiktok.com/@nasa/video/7665075736742530317",
  "caption": "Something big just landed on TikTok.",
  "hashtags": [],
  "mentions": [],
  "created_at": "2026-07-21T20:09:02Z",
  "author_username": "nasa",
  "author_display_name": "NASA",
  "author_id": "7664638705177150477",
  "author_verified": true,
  "play_count": 1800000,
  "like_count": 112400,
  "comment_count": 3367,
  "share_count": 3418,
  "save_count": 8177,
  "repost_count": 0,
  "duration_seconds": 25,
  "width": 720,
  "height": 1280,
  "cover_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/oAUhkWfCZC7g6ALj2HZgOeELFvIrALeFYOoGI4~tplv-tiktokx-origin.image?dr=9636&x-expires=1795197600&x-signature=1%2ByxvV1QDQ5kEW955fVDnQbVvkY%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
  "is_photo_post": false,
  "image_urls": [],
  "music_id": "7665075815390645006",
  "music_title": "original sound",
  "music_author": "NASA",
  "music_original": true,
  "location_created": "US",
  "language": "en",
  "is_ad": false,
  "fetched_at": "2026-11-19T18:07:41.509046Z"
}

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

idstring
TikTok's id of the video.
urlstring
The video's address.
captionstring or null
The caption, hashtags and mentions included, as written.
hashtagslist of strings
The hashtags of the caption, without the #, in order.
mentionslist of strings
The handles the caption mentions, without the @, in order.
created_atdatetime or null
When the video was posted, in UTC; null when the video's own page could not be read.
author_usernamestring or null
The handle of the account that posted it, without the @.
author_display_namestring or null
That account's display name.
author_idstring or null
TikTok's numeric id of that account, when the page states it.
author_verifiedboolean or null
True when that account carries the verified badge; null when the page does not say.
play_countinteger or null
Number of plays. TikTok rounds large numbers (610600 for 610.6K).
like_countinteger or null
Number of likes. TikTok rounds large numbers (84300 for 84.3K).
comment_countinteger or null
Number of comments.
share_countinteger or null
Number of shares.
save_countinteger or null
Number of times the video was saved to favourites; null where the page does not state it.
repost_countinteger or null
Number of reposts; null where the page does not state it.
duration_secondsinteger or null
Length of the video in seconds; 0 or null for a photo post.
widthinteger or null
Width of the video in pixels.
heightinteger or null
Height of the video in pixels.
cover_urlstring or null
The cover image. TikTok signs this address and it stops working after some hours.
is_photo_postboolean or null
True for a post of photos instead of a video.
image_urlslist of strings
The photos of a photo post, in order; empty for a video. Signed addresses, like the cover.
music_idstring or null
TikTok's id of the sound.
music_titlestring or null
The title of the sound, e.g. "original sound".
music_authorstring or null
Who the sound is credited to.
music_originalboolean or null
True when the sound is the poster's own recording; null where the page does not say.
location_createdstring or null
The two-letter country code TikTok records as where the video was posted from, when stated.
languagestring or null
The language of the caption as TikTok detects it, e.g. en.
is_adboolean or null
True when TikTok marks the video as an advertisement.
fetched_atdatetime
When the page was read, in UTC.

The whole schema, in its reference

Units and limits

Counted per request
Billed per request: a run that returns data costs 1 unit, however many records 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

  • Comments come from tiktok.comments.
  • The video file is not downloaded.

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

Questions

What does TikTok video return?

Its caption, hashtags, play, like, comment, share and save counts, length, sound, cover and author. A record has 30 fields, among them id, url, caption, hashtags, mentions and created_at. 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 its id. Of url and video_id, send one of the two.

How is it counted?

Billed per request: a run that returns data costs 1 unit, however many records 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.

What does it not do?

Comments come from tiktok.comments. The video file is not downloaded.

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.video 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 comments

    tiktok.comments

    A TikTok video's address or id, and optionally how many comments and where to continue. Its comments in TikTok's order: text, time, likes, number of replies, and the commenter's display name.

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.