Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

TikTok Music Search

APIドキュメント
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.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 5 件

プレイグラウンド

入力
Keyword
Number, do not exceed 20
Filter type, 0-All, 1-Title, 2-Author, default is 0-All
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
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

TikTok Music Search API

Returns a list of TikTok music tracks that match a search keyword. Each track includes its title-level details, author, album, duration, cover images and licensing flags. You can filter by title or author, sort the results, and set the region.

Use cases

  • Find sounds that match a brand or topic name, such as openai, to see which tracks exist on TikTok.
  • Sort by sort_type 1 to list the most used tracks for a keyword.
  • Check commercial_right_type and has_commerce_right to screen tracks before a campaign picks one.
  • Collect track IDs and pass them to a music detail or music video call.

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"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesKeyword
countintegerNoNumber, do not exceed 20
filter_byintegerNoFilter type, 0-All, 1-Title, 2-Author, default is 0-All
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.
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: lists keep their first item and long strings are cut.

{
  "ad_info": {},
  "cursor": 20,
  "extra": {
    "api_debug_info": null,
    "fatal_item_ids": [],
    "logid": "202611030743562837450654C169018201",
    "now": 1793691837000,
    "search_request_id": "",
    "server_stream_time": 1000
  },
  "feedback_type": "music",
  "global_doodle_config": {
    "display_filter_bar": 1,
    "enable_music_mix_rank": 1,
    "feedback_survey": [
      {
        "feedback_type": "music",
        "long_stress_info": null,
        "multiple_choices": [
          {
            "key": "Dislike",
            "value": "Dislike"
          }
        ],
        "send_us_multiple_choices": null
      }
    ],
    "feel_good": {
      "extra": "has_logged=true&query_flag1=0&query_flag2=0&query_usability=0&search_display_sur…",
      "token": "eyJhbGci…",
      "token_type": "Bearer"
    },
    "hide_results": false,
    "hit_dolphin": false,
    "hit_shark": false,
    "keyword": "openai",
    "new_source": "normal_search",
    "search_channel": "musically_music",
    "tns_search_result": "Pass"
  },
  "has_more": 1,
  "log_pb": {
    "impr_id": "202611030743562837450654C169018201"
  },
  "music": [
    {
      "album": "Traffic Alert",
      "allow_offline_music_to_detail_page": false,
      "artists": [],
      "audition_duration": 60,
      "author": "OpenAI",
      "author_deleted": false,
      "author_position": null,
      "avatar_medium": {
        "height": 720,
        "uri": "musically-maliva-obj/1594805258216454",
        "url_list": [
          "https://p19-common-sign.tiktokcdn-us.com/musically-maliva-obj/1594805258216454~t…"
        ],
        "url_prefix": null,
        "width": 720
      },
      "avatar_thumb": {
        "height": 720,
        "uri": "musically-maliva-obj/1594805258216454",
        "url_list": [
          "https://p19-common-sign.tiktokcdn-us.com/musically-maliva-obj/1594805258216454~t…"
        ],
        "url_prefix": null,
        "width": 720
      },
      "binded_challenge_id": 0,
      "can_be_stitched": true,
      "can_not_reuse": false
    }
  ],
  "music_info_list": [
    {
      "aweme_list": null,
      "card_type": 1,
      "music": {
        "album": "Traffic Alert",
        "allow_offline_music_to_detail_page": false,
        "artists": [],
        "audition_duration": 60,
        "author": "OpenAI",
        "author_deleted": false,
        "author_position": null,
        "avatar_medium": {
          "height": 720,
          "uri": "musically-maliva-obj/1594805258216454",
          "url_list": [
            "https://p19-common-sign.tiktokcdn-us.com/musically-maliva-obj/1594805258216454~t…"
          ],
          "url_prefix": null,
          "width": 720
        }
      },
      "musics": null
    }
  ],
  "qc": "",
  "status_code": 0,
  "total": 352
}

Response fields

FieldMeaning
music[].id / music[].id_strTrack ID as a number and as a string. Use the string form to avoid number precision loss in your code.
music[].authorName of the track's author or uploader.
music[].albumAlbum name shown for the track.
music[].duration / music[].audition_durationTrack length and preview length, both 60 in the sample.
music[].create_timeCreation time of the track as a Unix timestamp in seconds.
music[].cover_large.url_list[] / music[].cover_medium.url_list[] / music[].cover_thumb.url_list[]Cover image URLs in three sizes.
music[].commercial_right_type / music[].has_commerce_right / music[].is_commerce_musicFlags that describe commercial licensing for the track.
music[].is_original / music[].is_original_sound / music[].is_pgcFlags that show whether the track is an original sound or professionally produced content.
music[].languageLanguage tag of the track, for example non_vocal.
cursor / has_morecursor is the offset value for the next page. has_more is 1 when more results remain.

Notes

  • For the next page, send the cursor value from the response as offset. In the sample, cursor is 20.
  • count must not exceed 20.
  • filter_by takes 0 (All), 1 (Title) or 2 (Author). sort_type takes 0 (Relatedness), 1 (Most used), 2 (Latest), 3 (Shortest duration) or 4 (Longest duration).
  • Pass a track id to TikTok Music Details or TikTok Music Video List to see more about a track.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.01 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON

ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

質問

FAQ

TikTok Music Search API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/app-v3/music-search-result に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

TikTok Music Search API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

TikTok Music Search API はどのパラメータを受け付けますか?

必須: keyword (string)。 任意: count (integer), filter_by (integer), offset (integer), region (string) と sort_type (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

TikTok Music Search API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

TikTok の開発者アカウントまたは API key は必要ですか?

いいえ。TikTok Music Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。