How do I get the videos that use a TikTok sound (music ID)?
With TikTok-Api, sound lookups have been unreliable: issue 1168 (July 2024) reports api.sound(id).info() fails in headless mode and only works with a visible browser, and issue 1251 (July 2025) shows "Failed to create Sound" with empty video data. XTikAPI's tiktok.music_videos.list takes the music_id from the sound's link and returns the videos that use it, with cursor for more pages, $0.002 a page.
Updated 2026-11-23
What breaks in TikTok-Api
1168 (Jul 2024)
Symptom: api.sound(id=...).info() fails with headless=True; works with headless=False. Still open, a September 2025 comment asks for a fix
1251 (Jul 2025)
Symptom: ERROR - Failed to create Sound with data: {...} with an empty video object
A visible browser on a server is heavy, and a Failed to create Sound leaves you with nothing to page through.
Get them by music ID
- Take the number at the end of the sound's link (
tiktok.com/music/<name>-<music_id>), or read it from a video viatiktok.videos.detail. tiktok.music_videos.listwithmusic_id,limit, andcursorfor the next page.- For each video,
tiktok.videos.detailgives plays, likes and comments.
Cost: tracking 50 sounds, 3 pages each, daily for 30 days = 4,500 calls × $0.002 = $9. Douyin has the same thing: douyin.music_videos.list.
Why XTikAPI
- XTikAPI reads TikTok with 24 endpoints from $0.002 a call, and a failed call is not charged.
- Fewer tokens for AI: across 14 recorded live TikTok calls (2026-11-18), raw platform JSON is ~1.21M tokens vs ~35k via XTikAPI REST (97.1% fewer) and ~35k via MCP (97.1% fewer).
- See before you pay: 192 of 229 endpoints show a recorded real response on their page (22 of 24 for TikTok).
- One shape: posts, comments and accounts from 19 platforms come back as the same objects, author in author and counts in metrics, so another platform needs no new parser.
- Free trial: a verified account gets $0.50, no card.
Endpoints
Each with its price; the endpoint page has parameters, fields and a recorded response.
Sources
What this page says about other products comes from their own pages and docs, read on 2026-11-23.
More about TikTok
- TikTok API
- Douyin API
- f2 TikTok user posts return status 200 with an empty response: why?
- TikTok-Api errors (EmptyResponseException, 200 empty body, Captcha, statusCode): how do I fix them?
- The TikTok comments endpoint in Douyin_TikTok_Download_API stopped working: what now?
- yt-dlp fails on a TikTok user profile with "[tiktok:user] Failed to parse JSON": how do I fix it?
- Why does the Douyin video URL I parsed return 403 Forbidden?
Questions
Can I get how many videos use a sound?
Issue 1168's code read `musicInfo.stats.videoCount` from the sound info; with XTikAPI you page the videos themselves with `tiktok.music_videos.list`.
One key. Start now.
19 platforms, 229 endpoints, from $0.002 a call. Errors and timeouts are free.
Start free