# List TikTok videos by sound

Returns public videos that use a sound, given its `music_id` (the `music.id` on any returned video). Page with `cursor` and `count`. An unknown sound returns `data: null`.

- Platform: TikTok
- Request: `GET https://api.toolzerhub.com/v1/tiktok/music_videos`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/tiktok/music/get-tiktok-web-music-videos

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `music_id` | query | yes | string | TikTok's own numeric id for the sound. Every video this surface and /tiktok/video return carries one, so nothing has to be resolved first. |
| `cursor` | query | no | integer | Where to resume. 0 for the first page, then the next_cursor a previous response returned, verbatim. It is TikTok's own token, not a page number. Default: 0. |
| `count` | query | no | integer | How many videos to ask for. A ceiling, not a page size — 6, 12, 25, 27 and 30 items were all returned for count=30 across seven sounds. Default: 30. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/tiktok/music_videos?music_id=<music_id>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
