Skip to main content
GET
TikTok Search Music
Search TikTok sounds by keyword with a two-letter region, ordering, and an optional title or creator filter. Each successful uncached request costs 1 credit and returns one source page of up to ten sounds. Pass next_cursor unchanged, with the same query and filters, to fetch the next page. The cursor is bound to this query; raw provider offsets and cursors from another search are rejected. since and until filter each retrieved page locally. Sounds without a source publication date are retained. Continue paging when a filtered page is empty but still has next_cursor. Date-only until includes that entire UTC day. total is the upstream total before local filtering. Music identifiers are strings to preserve TikTok’s 64-bit IDs. post.ext.video_count counts videos using the sound. Views, likes, and other unavailable engagement metrics remain null. post.content.media_urls contains a single audio preview URL when available; playback URLs may expire. Provider access tokens are never included.

Authorizations

x-api-key
string
header
required

Headers

Cache-Control
string
Idempotency-Key
string
X-Max-Credits
integer

Optional nonnegative integer cap on the maximum request hold. A live request whose hold exceeds this cap returns 422 CREDIT_BUDGET_EXCEEDED before spending. Metered holds use the requested limit; cache hits and successful idempotent replays cost zero.

Required range: x >= 0

Query Parameters

query
string
required
Required string length: 1 - 200
cursor
string

Opaque SocialQuery continuation token from next_cursor. Must be used with the same query and filters; raw provider offsets are rejected.

sort_by
enum<string>
Available options:
relevance,
most-used,
most-recent,
shortest,
longest
filter_by
enum<string>
Available options:
all,
title,
creators
region
string
default:US

Two-letter country code.

Pattern: ^[A-Za-z]{2}$
since
string

ISO date or timestamp with explicit timezone. Filter applies locally to each page. Date-only until is inclusive through the end of that UTC day.

until
string

ISO date or timestamp with explicit timezone. Filter applies locally to each page. Date-only until is inclusive through the end of that UTC day.

Response

One music-search page. Unknown or unsupported fields are null.

success
boolean
required
platform
string
required
endpoint
string
required
credits_used
integer
required
Required range: x >= 0
credits_remaining
integer | null
required
request_id
string
required
cached
boolean
required
data
object
required

The selected operation determines the resource fields in this object. Source data can omit a metric or report it as null.