Apify Store
AS
Apify Store
/epctex/tiktok-search-scraper

Tiktok Search Scraper

Unleash the power of data extraction with our advanced TikTok Search Scraper. Gather videos, hashtags, posts, URLs, share numbers, followers, hearts, names, music-related data, and more. Download data

liveasyncunknown~30s typical
social mediaseo toolstiktoksearch
$0.00038
per result + $0.005 call
plus $0.001 platform fee per run
Actor charges $0.0003 per result; Cracked adds 25% plus a $0.005 call fee
Bring your own Apify Store key: provider portion drops to $0.
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run apify /epctex/tiktok-search-scraper for me.

Input

FieldTypeDescription
searcharrayTikTok search keywords to query (e.g. anime, music). Each keyword triggers a Search Query charge.
startUrlsarrayTikTok search URLs to scrape directly. Each URL triggers a Search Query charge.
maxItemsintegerMaximum total posts to output across entire run.
endPageintegerThe page number that you want to end with. By default there is no end page.
dateRangestring (DEFAULT | ALL_TIME | YESTERDAY | THIS_WEEK | THIS_MONTH | LAST_THREE_MONTHS)Date range for search. It uses the standard date filtering of TikTok search.
locationstring (AF | AL | DZ | AS | AD | AO)ISO 3166-1 alpha-2 country code to retrieve results from specific region. Useful for geo-targeted content research and regional trend analysis.
sortTypestring (RELEVANCE | MOST_LIKED | DATE_POSTED)Sort order for search results: Relevance, Most Liked, or Date Posted.
customMapFunctionstringJavaScript function to transform each output post. Use to add computed fields, modify values, or remove unnecessary data. NOT intended for filtering - filtering may result in automatic bans. Must be a single function, e.g. (object) => { return {...object} }. Leave empty if you do not need to transform the output - an unusable function is ignored and the original items are saved instead.

Call it

curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
  -H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
  -d '{"provider":"apify","endpoint":"/epctex/tiktok-search-scraper","input":{"search":["anime","tiktok"],"startUrls":["https://www.tiktok.com/search?q=music&t=1670685477846","https://www.tiktok.com/search?q=dance&t=1670685484412"],"maxItems":3,"endPage":1,"dateRange":"DEFAULT","location":"US","sortType":"RELEVANCE","customMapFunction":"(object) => { return {...object} }"},"wait":false}'
poll
curl "https://cracked-ai-pearl.vercel.app/v1/runs/<runId>?wait=30" -H "Authorization: Bearer ck_live_..."
cli
npx cracked-ai run -p apify -e /epctex/tiktok-search-scraper -i '{"search":["anime","tiktok"],"startUrls":["https://www.tiktok.com/search?q=music&t=1670685477846","https://www.tiktok.com/search?q=dance&t=1670685484412"],"maxItems":3,"endPage":1,"dateRange":"DEFAULT","location":"US","sortType":"RELEVANCE","customMapFunction":"(object) => { return {...object} }"}' -w 120
mcp
run_tool({ provider: "apify", endpoint: "/epctex/tiktok-search-scraper", input: {"search":["anime","tiktok"],"startUrls":["https://www.tiktok.com/search?q=music&t=1670685477846","https://www.tiktok.com/search?q=dance&t=1670685484412"],"maxItems":3,"endPage":1,"dateRange":"DEFAULT","location":"US","sortType":"RELEVANCE","customMapFunction":"(object) => { return {...object} }"}, wait: false })

Try it

Runs against your signed-in workspace balance. Sign in if you have not.