Tiktok Hashtag Scraper

  • clockworks/tiktok-hashtag-scraper
  • Modified
  • Users 378
  • Runs 2.5k
  • Created by Author's avatarClockworks

Scrape TikTok hashtags the fast and easy way. Just add one or more hashtags and the scraper will extract TikTok data on each video that mentions it: URLs, likes, country of creation, video and music metadata, TikTok creator data. Download data as JSON, HTML and use it in your apps and data projects.

Tiktok Hashtag Scraper

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'
{
  "hashtags": [
    "followforfollowback"
  ]
}
EOF

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