How to Scrape Tiktok Trending Music And Audio
This tutorial shows how to use Tiktok Trending Music And Audio API to scrape and crawl structured Tiktok data in real-time.
See which audio tracks are powering viral TikTok content right now. Fetch track usage counts, linked videos, and trending sound metadata through our API.
Access Tiktok Data in 3 Steps
Start crawling Tiktok music trends data. Follow these steps to extract social media data in minutes.
Create Your Account
Go to our registration page and make an account. It's free, no credit card, and you get credits right away to play around with.
Verify Your Email Address
You'll get a verification email, click the link in it. Once that's done, you can grab your API token from the dashboard.
Make Your First API Call
Copy the code snippet below, swap in your API key, and run it. You'll get Tiktok data back as JSON within a few seconds.
Code Sample
Here's a JavaScript example to get you going. Swap out the token and you're good, works the same way in any language that can make HTTP requests. Start collecting music trends data via our REST API!
| 1 | const root = 'https://ensembledata.com/apis' |
| 2 | const endpoint = '/tt/music/details' |
| 3 | const params = { |
| 4 | "id": "7063948643480488709", |
| 5 | "token": "YOUR-TOKEN-HERE" |
| 6 | } |
| 7 | |
| 8 | const queryString = new URLSearchParams(params).toString(); |
| 9 | const url = `${root}${endpoint}?${queryString}`; |
| 10 | |
| 11 | await fetch(url) |
| 12 | .then(response => response.json()) |
| 13 | .then(data => console.log(data)) |
| 14 | .catch(error => console.error(error)); |
| 15 |
Parameters
Example Response
Explore the fields returned by this endpoint. Click a row to expand nested objects and arrays, hover a value to copy it, or use "Expand all" to see everything at once.
dataobject64 fields
artistsarray0 items
avatar_largeobject4 fields
url_listarray3 items · schema from #0 3 items
avatar_mediumobject4 fields
url_listarray3 items · schema from #0 3 items
avatar_thumbobject4 fields
url_listarray3 items · schema from #0 3 items
cover_hdobject4 fields
url_listarray3 items · schema from #0 3 items
cover_largeobject4 fields
url_listarray3 items · schema from #0 3 items
cover_mediumobject4 fields
url_listarray3 items · schema from #0 3 items
cover_thumbobject4 fields
url_listarray3 items · schema from #0 3 items
duration_high_precisionobject4 fields
external_song_infoarray0 items
multi_bit_rate_play_infoarray3 items · schema from #0 3 items
play_addrobject1 field
url_listarray2 items · schema from #0 2 items
play_urlobject4 fields
url_listarray1 item · schema from #0 1 item
share_infoobject12 fields
strong_beat_urlobject4 fields
url_listarray1 item · schema from #0 1 item
Response Codes
Status codes this endpoint can return, so you can handle errors before they surprise you in production.
API Pricing
Fetch Tiktok Data at Scale
Monitor TikTok audio trends at scale with our data API by tracking rising sounds, usage counts, and linked videos across any timeframe.
Usage Counts
See exactly how many TikTok videos currently use a given sound.
Sound Trends
Track rising audio tracks before they peak in popularity on TikTok.
Linked Videos
Get videos tied to a sound to see which content drives its growth.