Tiktok Scraper
Pricing
from $2.00 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
a day ago
Last modified
Categories
Features
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)
- Open market_flow/tiktok-scraper on Apify.
- Provide at least one of:
hashtags,profiles,searchQueries,pageURLs. - Run → open Dataset for JSON rows; open Key-Value Store for
OUTPUTand 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
| Field | Value |
|---|---|
| Actor ID | bonwIOLa2RTrVo5Fq |
| Actor name | market_flow/tiktok-scraper |
| API name form | market_flow~tiktok-scraper |
Run Actor (HTTP)
POST https://api.apify.com/v2/acts/market_flow~tiktok-scraper/runs?token=APIFY_TOKENContent-Type: application/json{ ...input JSON... }
Run Actor (Python)
from apify_client import ApifyClientclient = 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
- Read
defaultDatasetId→ list dataset items (primary structured output). - Optionally read Key-Value record
OUTPUTfor the full payload summary. - If
downloadVideos: true, use each video row’svideoFileURL(KV public URL) orVIDEOS_INDEX. - If
downloadMusics: true, use each video row’smusicFileURL(audio-only) orMUSIC_INDEX. - Filter rows by
type:"video"|"author"|"comment"|"music".
Agent-friendly tips
- Prefer small
resultsPerPagefirst (10–30) for latency/cost tests. - Set comment limits to
0unless 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
| Field | Type | Description |
|---|---|---|
hashtags | string[] | Tags without # |
profiles | string[] | Username, @user, or profile URL |
searchQueries | string[] | Search keywords |
pageURLs | string[] | Video / profile / hashtag / music / explore / short links |
resultsPerPage | integer | Max videos per hashtag/profile/search (1–500, default 100) |
Profile options
| Field | Values / default | Description |
|---|---|---|
profileScrapeSections | videos (default) | Videos section (reposts/stories not returned yet) |
profileSorting | latest | oldest | popular | Post order |
excludePinnedPosts | false | Drop pinned posts |
oldestPostDateUnified | date or 7 days | Keep posts after this |
newestPostDate | YYYY-MM-DD | Keep posts before this |
leastDiggs / mostDiggs | integer | Hearts (likes) filters |
maxFollowersPerProfile | 0 | Follower list cap (0 = skip) |
maxFollowingPerProfile | 0 | Following list cap (0 = skip) |
Search options
| Field | Values / default | Description |
|---|---|---|
searchSection | top | video | profile | Result section |
maxProfilesPerQuery | 10 | Authors when section is Profile |
videoSearchSorting | MOST_RELEVANT | MOST_LIKED | DATE_POSTED | Video order |
videoSearchDateFilter | ALL_TIME, YESTERDAY, THIS_WEEK, … | Time window |
scrapeRelatedSearchWords | false | Add related keywords |
Page / enrichment options
| Field | Default | Description |
|---|---|---|
scrapeRelatedVideos | false | Related videos for video URLs (isRelated, related_to) |
scrapeAdditionalAuthorMetadata | false | Richer author rows |
downloadVideos | false | Save MP4s → KV + videoFileURL |
downloadMusics | false | Save audio (music.playUrl) → KV + musicFileURL |
downloadSubtitles | false | Subtitle tracks / text |
subtitleLanguage | "" | Preferred language code (e.g. en) |
commentsPerPost | 0 | Max comments per video |
topLevelCommentsPerPost | 0 | Max root comments |
maxRepliesPerComment | 0 | Max replies per root |
readLinkInBioPages | false | Expand bio link → emails/phones/socials |
aiVideoDescription | false | Adds ai_description |
aiVideoSummary | false | Adds 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
| Field | When |
|---|---|
video_file, videoFileURL, video_downloaded, video_download_skipped | downloadVideos |
music_file, musicFileURL, music_downloaded, music_download_skipped | downloadMusics |
subtitles, subtitle_files, subtitle_text | downloadSubtitles |
ai_description, ai_summary, ai_transcript | AI toggles |
bio_link, bio_link_* | readLinkInBioPages |
isRelated, related_to | scrapeRelatedVideos |
commentsDatasetURL | comments 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
| Key | Contents |
|---|---|
OUTPUT | Full run payload (includes datasetItems, notes, video/music index meta) |
VIDEOS_INDEX | Map of uploaded video ids → public URLs (when downloads ran) |
video-{id}.mp4 | Downloaded video binary |
MUSIC_INDEX | Map of uploaded music ids → public URLs (when music downloads ran) |
music-{id}.mp3 | Downloaded 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)
| Event | Price | Charged when |
|---|---|---|
| Actor start | $0.01 | Run starts |
| Dataset result | $0.002 | Each dataset row |
video-download | $0.08 | New MP4 saved for a video |
music-download | $0.03 | New audio saved for a music id |
ai-description | $0.12 | AI description on a video |
ai-summary | $0.15 | AI 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.