
Tiktok Sound Scraper
- clockworks/tiktok-sound-scraper
- Modified
- Users 27
- Runs 342
- Created by
Clockworks
Scrape TikTok videos with a specific sound the fast and easy way. Just add one or more sound urls 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.
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'
{
"musics": [
"https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121"
]
}
EOF
# Run the Actor
curl "https://api.apify.com/v2/acts/clockworks~tiktok-sound-scraper/runs?token=$API_TOKEN" \
-X POST \
-d @input.json \
-H 'Content-Type: application/json'