> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok Sounds API

> Finds TikTok sounds by keyword or looks up a specific sound's title, artist and usage stats by URL or ID.

`POST /v1/data/tiktok/sounds/run`

**Pricing:** $0.001 per sound ($1.00 per 1,000).

## Ways to call it

* **Search by keyword**: set `keywords` (optional: `region`, `maxResults`)
* **Look up by sound URL or ID**: set `soundUrls`

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**keywords** `string[]`

Search terms used to find matching sounds, such as a song title and artist.

**region** `string`

Two-letter country code to bias search results toward a region.

**soundUrls** `string[]`

TikTok sound page URLs or numeric sound ids to fetch details for.

**maxResults** `integer` (default: 50)

How many sounds to return in total. Defaults to 50; use 0 for all. Applies to Keyword search.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/tiktok/sounds/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "keywords": [
      "Espresso Sabrina Carpenter",
      "YOASOBI アイドル",
      "Blinding Lights The Weeknd"
    ]
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/tiktok/sounds/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "keywords": [
        "Espresso Sabrina Carpenter",
        "YOASOBI アイドル",
        "Blinding Lights The Weeknd"
    ]
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/tiktok/sounds/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "keywords": [
    "Espresso Sabrina Carpenter",
    "YOASOBI アイドル",
    "Blinding Lights The Weeknd"
  ]
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one sound, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `soundId` | Sound ID | text |
| `soundUrl` | Sound URL | url |
| `title` | Title | text |
| `artist` | Artist | text |
| `album` | Album | text |
| `durationS` | Duration (s) | integer |
| `videosUsing` | Videos Using | integer |
| `isOriginalSound` | Is Original Sound | boolean |
| `commercialUseOk` | Commercial Use OK | boolean |
| `ownerHandle` | Owner Handle | text |
| `sourceQuery` | Source Query | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "tiktok/sounds",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "ownerHandle": null,
      "videosUsing": 537172,
      "album": "Espresso",
      "soundId": "7364498342501435408",
      "soundUrl": "7364498342501435408",
      "commercialUseOk": true,
      "artist": "Sabrina Carpenter",
      "isOriginalSound": false,
      "sourceQuery": "Espresso Sabrina Carpenter",
      "title": "Espresso",
      "durationS": 60
    }
  ]
}
```

## Related APIs

For videos using a sound use [`tiktok/posts`](https://docs.mindcase.co/apis/tiktok/posts).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.