# 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

| Issue | Symptom |
| --- | --- |
| 1168 (Jul 2024) | `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) | `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

1. Take the number at the end of the sound's link (`tiktok.com/music/<name>-<music_id>`), or read it from a video via `tiktok.videos.detail`.
2. `tiktok.music_videos.list` with `music_id`, `limit`, and `cursor` for the next page.
3. For each video, `tiktok.videos.detail` gives 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

- [TikTok music videos API](https://xtikapi.com/apis/tiktok/music_videos/list) ($0.002 a call): TikTok videos that use one sound, by music ID.
- [TikTok video details API](https://xtikapi.com/apis/tiktok/videos/detail) ($0.002 a call): One TikTok video by ID: caption, author, plays, likes, comments and shares.
- [Douyin music videos API](https://xtikapi.com/apis/douyin/music_videos/list) ($0.002 a call): Douyin videos that use one sound, by music ID.

## More about TikTok

- [TikTok API](https://xtikapi.com/apis/tiktok)
- [Douyin API](https://xtikapi.com/apis/douyin)
- [f2 TikTok user posts return status 200 with an empty response: why?](https://xtikapi.com/answers/f2-tiktok-user-post-empty)
- [TikTok-Api errors (EmptyResponseException, 200 empty body, Captcha, statusCode): how do I fix them?](https://xtikapi.com/answers/tiktok-api-errors-and-fixes)
- [The TikTok comments endpoint in Douyin_TikTok_Download_API stopped working: what now?](https://xtikapi.com/answers/tiktok-comments-api-not-working)
- [yt-dlp fails on a TikTok user profile with "[tiktok:user] Failed to parse JSON": how do I fix it?](https://xtikapi.com/answers/yt-dlp-tiktok-user-failed-parse-json)
- [Why does the Douyin video URL I parsed return 403 Forbidden?](https://xtikapi.com/answers/douyin-video-url-403-forbidden)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-23.

- [TikTok-Api issue #1168 (sound.info() fails headless)](https://github.com/davidteather/TikTok-Api/issues/1168)
- [TikTok-Api issue #1251 (Failed to create Sound)](https://github.com/davidteather/TikTok-Api/issues/1251)

## 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`.

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/tiktok-api-sound-videos) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
