Posts using a TikTok sound
tiktok_get_music_postsPosts that use a given TikTok sound, up to 30 per page. Paginate by passing pagination.next_cursor back as cursor while pagination.has_more is true. Costs 1 credit per page (nothing from cache, on errors or with a kd_test_ sandbox key).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"music": "<music>"
},
"name": "tiktok_get_music_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | true returns TikTok's raw JSON in data instead of our fields (same price). Default false. | |
| fresh | No | true skips the cache and fetches live data (full price). Default false. | |
| music | Yes | Numeric sound id (music.id on a post) or a tiktok.com/music URL. | |
| cursor | No | pagination.next_cursor from the previous page. Leave out for the first page. |