Unofficial TikTok Music Search API

GET/api/v1/search_music· paginated

Search sounds/music (one page per call, cursor-paginated).

ParameterDescription
queryrequiredWhat to search for.
cursoroptionalPage cursor. Omit (or 0) for the first page; pass the next_cursor from the previous response.
formatoptionalOmit for raw music objects (default). clean for a trimmed subset (music_id, title, author, duration, user_count, play_url…).

Returns

query, next_cursor, has_more, count, and a results array of sound objects (raw by default, trimmed with format=clean). Pass a music_id to /music for the videos using it.

Example Request

https://dev.omar-thing.site/api/v1/search_music?query=mrbeast&cursor=0&format=clean&key=YOUR_API_KEY

Example Response

{
  "data": {
    "count": 15,
    "has_more": true,
    "next_cursor": "15|2026...",
    "query": "mrbeast",
    "results": [
      {
        "...": "format=clean shown; raw music object by default",
        "author": "Djibril",
        "duration": 15,
        "music_id": "7393799401238170400",
        "play_url": "https://sf16-ies-music.tiktokcdn.com/obj/.../x.mp3",
        "title": "original sound - Djibril",
        "user_count": 1204
      }
    ]
  },
  "status": "success"
}
Sends a live request using your API key above.

More Search endpoints