Tiktok Scraper avatar

Tiktok Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Tiktok Scraper

Tiktok Scraper

TikTok scraper API for videos, profiles, hashtags, search & comments. Export views, likes, captions, music, bio links & download MP4s. Best TikTok data extractor for AI agents, ChatGPT, Claude & lead gen—JSON dataset, region cookies, proxies, transcripts & AI video summary.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Market Flow

Market Flow

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a day ago

Last modified

Categories

Features

Limited permissions

Share

TikTok Scraper API — Videos, Profiles, Hashtags, Search & Comments

TikTok data extractor for Apify. Scrape TikTok videos, profiles, hashtags, search results, and comments into clean JSON. Built for AI agents, ChatGPT, Claude, Make, Zapier, n8n, and custom backends that need a reliable TikTok API alternative.

Actor: market_flow/tiktok-scraper
Output: Apify Dataset (typed rows) + optional Key-Value Store video files


Why use this TikTok scraper

  • TikTok video scraper — captions, views, likes, shares, play URLs, covers, music
  • TikTok profile scraper — followers, bio, verified status, posts, bio link enrichment
  • TikTok hashtag scraper — collect posts for any #tag
  • TikTok search scraper — Top / Video / Profile sections with sort & date filters
  • TikTok comments scraper — top-level comments + replies
  • Download TikTok videos (MP4) — saved to the run Key-Value Store with public videoFileURL
  • Subtitles / captions when TikTok provides them
  • AI video description & summary for agent workflows (ChatGPT / Claude / LLM pipelines)
  • Multi-region runs

Ideal for: lead generation, influencer research, competitor monitoring, content research, SEO content ideas, and LLM tool-calling.


Quick start (humans)

  1. Open market_flow/tiktok-scraper on Apify.
  2. Provide at least one of: hashtags, profiles, searchQueries, pageURLs.
  3. Run → open Dataset for JSON rows; open Key-Value Store for OUTPUT and downloaded videos.

Minimal input examples

Hashtag scrape

{
"hashtags": ["fyp"],
"resultsPerPage": 50
}

Profile scrape

{
"profiles": ["tiktok"],
"resultsPerPage": 30,
"profileSorting": "latest"
}

Search videos

{
"searchQueries": ["electric cars"],
"searchSection": "video",
"resultsPerPage": 40,
"videoSearchSorting": "MOST_LIKED"
}

Video URL + comments + download

{
"pageURLs": ["https://www.tiktok.com/@user/video/7123456789012345678"],
"commentsPerPost": 50,
"topLevelCommentsPerPost": 20,
"maxRepliesPerComment": 5,
"downloadVideos": true,
"downloadMusics": true
}

Integration for AI agents (ChatGPT, Claude, Cursor, custom tools)

Use this section when an LLM must call the Actor via Apify API.

Actor identity

FieldValue
Actor IDbonwIOLa2RTrVo5Fq
Actor namemarket_flow/tiktok-scraper
API name formmarket_flow~tiktok-scraper

Run Actor (HTTP)

POST https://api.apify.com/v2/acts/market_flow~tiktok-scraper/runs?token=APIFY_TOKEN
Content-Type: application/json
{ ...input JSON... }

Run Actor (Python)

from apify_client import ApifyClient
client = ApifyClient("APIFY_TOKEN")
run = client.actor("market_flow/tiktok-scraper").call(run_input={
"hashtags": ["fyp"],
"resultsPerPage": 20,
})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())

Run Actor (Node.js)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('market_flow/tiktok-scraper').call({
profiles: ['tiktok'],
resultsPerPage: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();

What agents should do after a run

  1. Read defaultDatasetId → list dataset items (primary structured output).
  2. Optionally read Key-Value record OUTPUT for the full payload summary.
  3. If downloadVideos: true, use each video row’s videoFileURL (KV public URL) or VIDEOS_INDEX.
  4. If downloadMusics: true, use each video row’s musicFileURL (audio-only) or MUSIC_INDEX.
  5. Filter rows by type: "video" | "author" | "comment" | "music".

Agent-friendly tips

  • Prefer small resultsPerPage first (10–30) for latency/cost tests.
  • Set comment limits to 0 unless comments are required.
  • Enable downloadVideos / downloadMusics / AI only when needed (slower, more storage).
  • Always pass Apify token as a secret; never hardcode it in prompts committed to git.

Input reference

Provide at least one source field. All other fields are optional.

Sources

FieldTypeDescription
hashtagsstring[]Tags without #
profilesstring[]Username, @user, or profile URL
searchQueriesstring[]Search keywords
pageURLsstring[]Video / profile / hashtag / music / explore / short links
resultsPerPageintegerMax videos per hashtag/profile/search (1–500, default 100)

Profile options

FieldValues / defaultDescription
profileScrapeSectionsvideos (default)Videos section (reposts/stories not returned yet)
profileSortinglatest | oldest | popularPost order
excludePinnedPostsfalseDrop pinned posts
oldestPostDateUnifieddate or 7 daysKeep posts after this
newestPostDateYYYY-MM-DDKeep posts before this
leastDiggs / mostDiggsintegerHearts (likes) filters
maxFollowersPerProfile0Follower list cap (0 = skip)
maxFollowingPerProfile0Following list cap (0 = skip)

Search options

FieldValues / defaultDescription
searchSectiontop | video | profileResult section
maxProfilesPerQuery10Authors when section is Profile
videoSearchSortingMOST_RELEVANT | MOST_LIKED | DATE_POSTEDVideo order
videoSearchDateFilterALL_TIME, YESTERDAY, THIS_WEEK, …Time window
scrapeRelatedSearchWordsfalseAdd related keywords

Page / enrichment options

FieldDefaultDescription
scrapeRelatedVideosfalseRelated videos for video URLs (isRelated, related_to)
scrapeAdditionalAuthorMetadatafalseRicher author rows
downloadVideosfalseSave MP4s → KV + videoFileURL
downloadMusicsfalseSave audio (music.playUrl) → KV + musicFileURL
downloadSubtitlesfalseSubtitle tracks / text
subtitleLanguage""Preferred language code (e.g. en)
commentsPerPost0Max comments per video
topLevelCommentsPerPost0Max root comments
maxRepliesPerComment0Max replies per root
readLinkInBioPagesfalseExpand bio link → emails/phones/socials
aiVideoDescriptionfalseAdds ai_description
aiVideoSummaryfalseAdds ai_summary

Output schema (dataset rows)

Every dataset item includes "type".

type: "video" (common fields)

id, desc, create_time, views, likes, comments, shares, collects, author, author_id, author_nickname, author_avatar, author_followers, author_verified, music_id, music_title, music_author, video_duration, video_cover, post_url, pinned, region, hashtag / profile / searchQuery (when applicable)

Optional enrichments

FieldWhen
video_file, videoFileURL, video_downloaded, video_download_skippeddownloadVideos
music_file, musicFileURL, music_downloaded, music_download_skippeddownloadMusics
subtitles, subtitle_files, subtitle_textdownloadSubtitles
ai_description, ai_summary, ai_transcriptAI toggles
bio_link, bio_link_*readLinkInBioPages
isRelated, related_toscrapeRelatedVideos
commentsDatasetURLcomments enabled

type: "author"

author, author_id, author_nickname, author_avatar, author_followers, author_following, author_hearts, author_videos, author_verified, secUid, signature, profile_url, optional bio_link*

type: "comment"

cid, text, createTime, diggCount, replyCommentTotal, videoId, postUrl, repliesToId, isReply, author, authorMeta

Key-Value Store

KeyContents
OUTPUTFull run payload (includes datasetItems, notes, video/music index meta)
VIDEOS_INDEXMap of uploaded video ids → public URLs (when downloads ran)
video-{id}.mp4Downloaded video binary
MUSIC_INDEXMap of uploaded music ids → public URLs (when music downloads ran)
music-{id}.mp3Downloaded audio binary

SEO / discovery keywords

TikTok scraper, TikTok API, TikTok data extractor, TikTok video downloader API, scrape TikTok hashtags, scrape TikTok profiles, TikTok comments API, TikTok search API, TikTok influencer data, TikTok lead generation, Apify TikTok actor, ChatGPT TikTok tool, Claude TikTok integration, AI video summary TikTok, TikTok transcript, social media scraping API.


Pricing (pay-per-event)

EventPriceCharged when
Actor start$0.01Run starts
Dataset result$0.002Each dataset row
video-download$0.08New MP4 saved for a video
music-download$0.03New audio saved for a music id
ai-description$0.12AI description on a video
ai-summary$0.15AI summary on a video

Notes & limits

  • Runs need valid Actor secrets/config for the regions you select; success can vary by region and target.
  • AI analysis and video/music downloads increase run time and storage usage.
  • Respect TikTok Terms of Service and applicable laws; use scraped data responsibly.

Support

Issues and feature requests: open them on the Actor’s Issues tab in Apify Console, or contact the publisher Market Flow.