Tiktok Search Scraper

  • epctex/tiktok-search-scraper
  • Modified
  • Users 263
  • Runs 11.6k
  • Created by Author's avatarepctex

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 in various formats including HTML, JSON, CSV, Excel, or XML.

Free trial for 3 days

Then $35.00/month

No credit card required now

Tiktok Search Scraper

Free trial for 3 days

Then $35.00/month

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare Actor input
cat > input.json <<'EOF'
{
  "search": [
    "anime",
    "tiktok"
  ],
  "startUrls": [
    "https://www.tiktok.com/search?q=music&t=1670685477846",
    "https://www.tiktok.com/search?q=dance&t=1670685484412",
    "https://www.tiktok.com/search?q=challenge&t=1670685494590"
  ],
  "maxItems": 10,
  "endPage": 1,
  "extendOutputFunction": "($) => { return {} }",
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  }
}
EOF

# Run the Actor
curl "https://api.apify.com/v2/acts/epctex~tiktok-search-scraper/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'