TikTok Music Search

https://api.sandbase.ai/v1/api/tiktok/app-v3/music-search-result

Returns TikTok music search results matching specified keywords, with options to filter by title or author and sort by usage or duration.

Price
$0.0015USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 5 optional
Production route

Try the model

Playground

Open playground
Input
Number, do not exceed 20
Filter type, 0-All, 1-Title, 2-Author, default is 0-All
Keyword
Offset, starting from 0, the second page gets the cursor value from the response as the offset to continue the request.
Region, default is US-America, for optional values please refer to TikTok region codes or ISO 3166-1 alpha-2 country codes.
Sort type, 0-Relatedness, 1-Most used, 2-Latest, 3-Shortest duration, 4-Longest duration, default is 0-Relatedness
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Model card

Specifications

Pricing

Base price
$0.0015 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

keyword
string · required
count
integer · optional
filter_by
integer · optional
offset
integer · optional
region
string · optional
sort_type
integer · optional

Access

Provider
TikTok
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/tiktok/app-v3/music-search-result
Authentication
Bearer API key

API README

TikTok Music Search API

Search for TikTok music tracks using a specified keyword. Filter by title or artist and sort results by relevance, usage, or duration.

Use cases

  • Search TikTok tracks by keyword, title, or artist name.
  • Filter music track results for specific target regions.
  • Discover popular audio tracks sorted by usage count or duration.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/music-search-result" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "openai"}'

Parameters

NameTypeRequiredDescription
keywordstringYesKeyword
countintegerNoNumber, do not exceed 20
offsetintegerNoOffset, starting from 0, the second page gets the cursor value from the response as the offset to continue the request.
regionstringNoRegion, default is US-America, for optional values please refer to TikTok region codes or ISO 3166-1 alpha-2 country codes.
filter_byintegerNoFilter type, 0-All, 1-Title, 2-Author, default is 0-All
sort_typeintegerNoSort type, 0-Relatedness, 1-Most used, 2-Latest, 3-Shortest duration, 4-Longest duration, default is 0-Relatedness

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "music": [
    {
      "audition_duration": 60,
      "author": "OpenAI",
      "author_deleted": false,
      "binded_challenge_id": 0,
      "commercial_right_type": 1,
      "create_time": 1676501099,
      "duration": 60,
      "id": 7200517085770811393,
      "music_group_use_count": 0,
      "music_ugid_use_count": 0,
      "duration_high_precision": {
        "audition_duration_precision": 60,
        "duration_precision": 60,
        "shoot_duration_precision": 60,
        "video_duration_precision": 60
      },
      "matched_song": {
        "author": "OpenAI",
        "full_duration": 275100,
        "id": "7200516864395462658",
        "title": "Chatbot"
      },
      "music_release_info": {
        "group_release_date": 0
      }
    }
  ]
}

Notes

  • filter_by supports 0 (All), 1 (Title), and 2 (Author).
  • sort_type supports 0 (Relatedness), 1 (Most used), 2 (Latest), 3 (Shortest duration), and 4 (Longest duration).
  • count must not exceed 20, with subsequent pages using the response cursor as the offset.

Related APIs

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/tiktok/app-v3/music-search-result
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/music-search-result" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "count": 1,
  "offset": 0,
  "region": "US",
  "keyword": "openai",
  "filter_by": 0,
  "sort_type": 0
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
TikTok$0.0015 per callJSONJul 31, 2026
TikTok$0.0015 per callJSONJul 31, 2026
TikTok$0.01 per callJSONJul 31, 2026
TikTok$0.0015 per callJSONJul 31, 2026
TikTok$0.0015 per callJSONJul 31, 2026
TikTok$0.0015 per callJSONJul 31, 2026

Questions

FAQ

How do I use the TikTok Music Search API?

Send a POST request to https://api.sandbase.ai/v1/api/tiktok/app-v3/music-search-result with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the TikTok Music Search API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the TikTok Music Search API accept?

Required: keyword (string). Optional: count (integer), filter_by (integer), offset (integer), region (string) and sort_type (integer). The Parameters table and the Playground on this page list every field.

What does the TikTok Music Search API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a TikTok developer account or API key?

No. TikTok Music Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for TikTok API access separately.