tiktok-scraper

v1.0.0

Access live TikTok data via the CreatorCrawl API. Look up creator profiles, search videos, pull comments and transcripts, track trending hashtags, discover p...

0· 384· 1 versions· 2 current· 2 all-time· Updated 15h ago· MIT-0
bySimon Balfe@simonbalfe

Install

openclaw skills install tiktok-scraper

CreatorCrawl TikTok Data

Access live TikTok data: creator profiles, video analytics, comments, transcripts, search, trending content, and songs. 19 endpoints, structured JSON responses, no scraping required.

Setup

Get a free API key at https://creatorcrawl.com (250 free credits, no card required). Set the CREATORCRAWL_API_KEY environment variable.

How to call the API

Use curl for all requests. Authenticate with the x-api-key header. Base URL: https://creatorcrawl.com.

curl -s -H "x-api-key: $CREATORCRAWL_API_KEY" \
  "https://creatorcrawl.com/api/tiktok/profile?handle=charlidamelio"

All responses are JSON. Errors return { "success": false, "error": "message" } with status 400 (bad params), 401 (unauthorized), 402 (no credits), or 502 (upstream).

Endpoints

Profiles

GET /api/tiktok/profile — Get a creator's profile, stats, and recent videos.

ParamRequiredDescription
handleyesTikTok handle (without @)

Returns: user info (id, uniqueId, nickname, signature, verified), stats (followerCount, followingCount, heartCount, videoCount), and recent videos.

GET /api/tiktok/profile/videos — Get a creator's videos with pagination and sorting.

ParamRequiredDescription
handleyesTikTok handle
sort_bynolatest or popular
max_cursornoPagination cursor from previous response
regionno2-letter country code

Returns: aweme_list with statistics (play_count, digg_count, comment_count, share_count), author info, music info. Paginate with max_cursor.

GET /api/tiktok/user/followers — Get a creator's followers (paginated).

ParamRequiredDescription
handleyes (or user_id)TikTok handle
user_idyes (or handle)User ID (faster)
min_timenoPagination cursor

GET /api/tiktok/user/following — Get accounts a creator follows.

ParamRequiredDescription
handleyesTikTok handle
min_timenoPagination cursor

GET /api/tiktok/user/live — Check if a creator is live streaming.

ParamRequiredDescription
handleyesTikTok handle

Videos

GET /api/tiktok/video — Get full video details.

ParamRequiredDescription
urlyesTikTok video URL
get_transcriptnotrue to include transcript
regionno2-letter country code

Returns: aweme_detail with statistics, author, music, video dimensions, hashtags, and optional transcript.

GET /api/tiktok/video/comments — Get video comments (paginated).

ParamRequiredDescription
urlyesTikTok video URL
cursornoPagination cursor

Returns: comments with text, digg_count, reply_comment_total, nested replies.

GET /api/tiktok/video/transcript — Get video transcript text.

ParamRequiredDescription
urlyesTikTok video URL
languageno2-letter language code (en, es, fr)
use_ai_as_fallbacknotrue for AI transcription (under 2 min videos)

Search

GET /api/tiktok/search/keyword — Search videos by keyword.

ParamRequiredDescription
queryyesSearch keyword
date_postednoyesterday, this-week, this-month, last-3-months, last-6-months, all-time
sort_bynorelevance, most-liked, date-posted
regionno2-letter country code
cursornoPagination cursor

GET /api/tiktok/search/hashtag — Search videos by hashtag.

ParamRequiredDescription
hashtagyesHashtag without #
regionno2-letter country code
cursornoPagination cursor

GET /api/tiktok/search/users — Search TikTok users.

ParamRequiredDescription
queryyesSearch query
cursornoPagination cursor

GET /api/tiktok/search/top — Top search results (videos + photo carousels).

ParamRequiredDescription
queryyesSearch keyword
publish_timenoyesterday, this-week, this-month, last-3-months, last-6-months, all-time
sort_bynorelevance, most-liked, date-posted
regionno2-letter country code
cursornoPagination cursor

Trending

GET /api/tiktok/get-trending-feed — Get trending feed for a region.

ParamRequiredDescription
regionyes2-letter country code (US, GB, FR, etc.)

GET /api/tiktok/videos/popular — Get popular videos across TikTok.

ParamRequiredDescription
periodno7 or 30 (days)
pagenoPage number
orderBynolike, hot, comment, repost
countryCodenoCountry code

GET /api/tiktok/creators/popular — Discover popular creators with filters.

ParamRequiredDescription
pagenoPage number
sortBynoengagement, follower, avg_views
followerCountno10K-100K, 100K-1M, 1M-10M, 10M+
creatorCountrynoCreator's country code
audienceCountrynoAudience country code

GET /api/tiktok/hashtags/popular — Get trending hashtags.

ParamRequiredDescription
periodno7, 30, or 120 (days)
pagenoPage number
countryCodenoCountry code
newOnBoardnoOnly newly trending
industrynoe.g. beauty-and-personal-care, food-and-beverage, tech-and-electronics

Songs

GET /api/tiktok/song — Get song details by clip ID.

ParamRequiredDescription
clipIdyesClip ID (not song ID)

GET /api/tiktok/song/videos — Get videos using a specific song.

ParamRequiredDescription
clipIdyesClip ID from song URL
cursornoPagination cursor

GET /api/tiktok/songs/popular — Get popular/surging songs (can take up to 30s).

ParamRequiredDescription
pagenoPage number
timePeriodno7, 30, or 130 (days)
rankTypenopopular or surging
newOnBoardnoNew to top 100
commercialMusicnoApproved for business use
countryCodenoCountry code

Pagination

Paginated endpoints return a cursor field (cursor, min_time, or max_cursor depending on the endpoint). Pass it back as a query param for the next page. Stop when the cursor is empty/null or no more items are returned.

Pricing

1 credit per API call. Free signup gives 250 credits. Paid packs: Starter ($29/5k credits), Pro ($99/20k credits), Scale ($299/100k credits). Credits never expire, no rate limits.

Version tags

latestvk974shgbffh25b3jhe9rw5tjzn82rc1c

Runtime requirements

📱 Clawdis
Binscurl
EnvCREATORCRAWL_API_KEY
Primary envCREATORCRAWL_API_KEY