# 🎵 TikTok Sound Scraper (`scraper-engine/tiktok-sound-scraper`) Actor

🎵 TikTok Sound Scraper (tiktok-sound-scraper) pulls trending TikTok sound data fast—captions, URLs & metadata included. 🚀 Perfect for content research, influencer discovery, and music marketing—save time, boost insights, and stay ahead of trends! 🔥

- **URL**: https://apify.com/scraper-engine/tiktok-sound-scraper.md
- **Developed by:** [Scraper Engine](https://apify.com/scraper-engine) (community)
- **Categories:** Social media, Lead generation, Videos
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🎵 TikTok Sound Scraper

**Find every TikTok video made with a sound.** Paste one or more TikTok music/sound URLs and get a clean, structured dataset of all the videos using that sound — complete with author profiles, engagement stats, hashtags, sound details, and optional subtitles, AI transcripts, slideshow images and sound covers.

Perfect for **trend research, influencer discovery, music/UGC analytics, and content monitoring**.

---

### ✨ Why choose this Actor?

- 🚀 **Bulk input** — scrape many sounds in a single run.
- 🧠 **Smart anti-blocking** — starts direct, then automatically escalates to datacenter and residential proxies only if needed.
- 📊 **Beautiful output** — five ready-made table views (Overview, Author, Sound, Engagement, Media & Subtitles).
- 📝 **Subtitles & AI transcription** — grab TikTok captions or generate speech-to-text transcripts.
- 🖼️ **Media downloads** — save slideshow images & sound covers to permanent, never-expiring links.
- 💾 **Live results** — every video is saved the moment it's scraped.

---

### 🎧 Input

| Field | Type | Description |
|-------|------|-------------|
| `musics` ✅ | array | TikTok sound URL(s) or IDs. Bulk supported. |
| `resultsPerPage` | integer | Max videos to scrape per sound (default `100`). |
| `downloadSubtitlesOptions` | select | `NEVER_DOWNLOAD_SUBTITLES` · `DOWNLOAD_SUBTITLES` · `DOWNLOAD_AND_TRANSCRIBE_VIDEOS_WITHOUT_SUBTITLES` · `TRANSCRIBE_ALL_VIDEOS` |
| `shouldDownloadSlideshowImages` | boolean | Download slideshow images → `mediaUrls`. |
| `shouldDownloadMusicCovers` | boolean | Download sound cover images. |
| `videoKvStoreIdOrName` | string | Name of the Key-Value store for downloaded media. |
| `proxyConfiguration` | object | Proxy settings. Default: no proxy (auto-escalates on blocks). |

#### Example input

```json
{
  "musics": [
    "https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121"
  ],
  "resultsPerPage": 100,
  "downloadSubtitlesOptions": "NEVER_DOWNLOAD_SUBTITLES",
  "shouldDownloadSlideshowImages": false,
  "shouldDownloadMusicCovers": false,
  "proxyConfiguration": { "useApifyProxy": false }
}
````

***

### 📋 Output

Each item is one TikTok video. Example (truncated):

```json
{
  "id": "7103242920618216710",
  "text": "#pov #sealion #animal",
  "createTimeISO": "2022-05-29T19:30:23.000Z",
  "authorMeta": { "name": "francescaspadola", "fans": 45100, "verified": false },
  "musicMeta": { "musicName": "Oh No (Instrumental)", "musicId": "6889520563052645121" },
  "webVideoUrl": "https://www.tiktok.com/@francescaspadola/video/7103242920618216710",
  "videoMeta": { "duration": 8, "subtitleLinks": null, "transcriptionLink": null },
  "diggCount": 8600000,
  "playCount": 56500000,
  "commentCount": 55800,
  "hashtags": [{ "name": "pov" }],
  "isSlideshow": false,
  "mediaUrls": [],
  "input": "https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121",
  "searchMusic": { "musicTag": "Oh-No-Instrumental-6889520563052645121", "videos": "818100" }
}
```

**Dataset views:** 📋 Overview · 👤 Author · 🎵 Sound · 📊 Engagement · 🎬 Media & Subtitles.

***

### 🚀 How to use (Apify Console)

1. Open the Actor in [Apify Console](https://console.apify.com).
2. Paste one or more TikTok **sound URLs** into *Music / Sound URL(s)*.
3. (Optional) Enable subtitles/transcription or media downloads.
4. Click **Start** and watch the live log fill up with results. 🎉
5. Open the **Output** tab → switch between views → export to JSON / CSV / Excel.

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"musics":["https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121"],"resultsPerPage":50}'
```

***

### 💳 Pricing

This Actor uses **Pay-Per-Event**:

- **`result`** — charged per scraped video saved to the dataset.
- **`transcription-minute`** — extra, charged only when you enable a transcription option (per started minute of audio).

You only pay for what you collect. Subtitles, slideshow images and sound covers add platform usage (download time) but no extra event fee beyond transcription.

***

### ❓ FAQ

**Where do I find a sound URL?** Open any TikTok video, tap the spinning sound disc → that page's URL is the sound URL. You can also paste just the slug/ID.

**Do downloaded files expire?** No. Slideshow images, covers, subtitles and transcripts are stored in your Key-Value store with permanent links (unlike TikTok CDN URLs).

**Is login required?** No — only public data is collected.

***

### ⚖️ Legal

This Actor collects only **publicly available** data. You are responsible for complying with TikTok's Terms, GDPR/CCPA, and applicable laws when using the scraped data.

### 🛟 Support

Found a bug or need a new field? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

## `musics` (type: `array`):

TikTok music/sound URL(s) to scrape videos from — e.g. https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121. You can also paste the slug/ID only, e.g. Oh-No-Instrumental-6889520563052645121. Supports bulk input (one per line).

## `resultsPerPage` (type: `integer`):

How many videos to scrape for each sound URL.

## `downloadSubtitlesOptions` (type: `string`):

Choose how to handle subtitles and audio transcription for the scraped videos.

## `shouldDownloadSlideshowImages` (type: `boolean`):

Tick to download TikTok slideshow images. Links are saved to the dataset field 'mediaUrls'. Note that this increases cost and time.

## `shouldDownloadMusicCovers` (type: `boolean`):

Tick to download cover images of the sounds used in posts. Note that this increases time and cost.

## `videoKvStoreIdOrName` (type: `string`):

Name (or ID) of the Key-Value store where downloaded media (slideshow images, sound covers, subtitle & transcript files) will be stored. Omit to use the default store. A named store helps bypass data retention and keeps the content until the store is manually deleted. Allowed characters: letters, digits and hyphens (no spaces).

## `proxyConfiguration` (type: `object`):

Proxy settings. Leave disabled to start direct with automatic datacenter → residential fallback on blocks.

## Actor input object example

```json
{
  "musics": [
    "https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121"
  ],
  "resultsPerPage": 10,
  "downloadSubtitlesOptions": "NEVER_DOWNLOAD_SUBTITLES",
  "shouldDownloadSlideshowImages": false,
  "shouldDownloadMusicCovers": false,
  "videoKvStoreIdOrName": "tiktok-videos",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "musics": [
        "https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121"
    ],
    "resultsPerPage": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraper-engine/tiktok-sound-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "musics": ["https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121"],
    "resultsPerPage": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("scraper-engine/tiktok-sound-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "musics": [
    "https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121"
  ],
  "resultsPerPage": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call scraper-engine/tiktok-sound-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scraper-engine/tiktok-sound-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🎵 TikTok Sound Scraper",
        "description": "🎵 TikTok Sound Scraper (tiktok-sound-scraper) pulls trending TikTok sound data fast—captions, URLs & metadata included. 🚀 Perfect for content research, influencer discovery, and music marketing—save time, boost insights, and stay ahead of trends! 🔥",
        "version": "0.1",
        "x-build-id": "fFwPYIh10cYx1Nyu5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scraper-engine~tiktok-sound-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scraper-engine-tiktok-sound-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scraper-engine~tiktok-sound-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scraper-engine-tiktok-sound-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scraper-engine~tiktok-sound-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scraper-engine-tiktok-sound-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "musics"
                ],
                "properties": {
                    "musics": {
                        "title": "🎧 Music / Sound URL(s)",
                        "type": "array",
                        "description": "TikTok music/sound URL(s) to scrape videos from — e.g. https://www.tiktok.com/music/Oh-No-Instrumental-6889520563052645121. You can also paste the slug/ID only, e.g. Oh-No-Instrumental-6889520563052645121. Supports bulk input (one per line).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "resultsPerPage": {
                        "title": "🔢 Max results per sound",
                        "minimum": 1,
                        "type": "integer",
                        "description": "How many videos to scrape for each sound URL.",
                        "default": 10
                    },
                    "downloadSubtitlesOptions": {
                        "title": "📝 Subtitles & Transcription",
                        "enum": [
                            "NEVER_DOWNLOAD_SUBTITLES",
                            "DOWNLOAD_SUBTITLES",
                            "DOWNLOAD_AND_TRANSCRIBE_VIDEOS_WITHOUT_SUBTITLES",
                            "TRANSCRIBE_ALL_VIDEOS"
                        ],
                        "type": "string",
                        "description": "Choose how to handle subtitles and audio transcription for the scraped videos.",
                        "default": "NEVER_DOWNLOAD_SUBTITLES"
                    },
                    "shouldDownloadSlideshowImages": {
                        "title": "🖼️ Download slideshow images",
                        "type": "boolean",
                        "description": "Tick to download TikTok slideshow images. Links are saved to the dataset field 'mediaUrls'. Note that this increases cost and time.",
                        "default": false
                    },
                    "shouldDownloadMusicCovers": {
                        "title": "🎵 Include sound covers",
                        "type": "boolean",
                        "description": "Tick to download cover images of the sounds used in posts. Note that this increases time and cost.",
                        "default": false
                    },
                    "videoKvStoreIdOrName": {
                        "title": "✍️ Name your media storage",
                        "pattern": "^[a-zA-Z0-9-]+$",
                        "type": "string",
                        "description": "Name (or ID) of the Key-Value store where downloaded media (slideshow images, sound covers, subtitle & transcript files) will be stored. Omit to use the default store. A named store helps bypass data retention and keeps the content until the store is manually deleted. Allowed characters: letters, digits and hyphens (no spaces)."
                    },
                    "proxyConfiguration": {
                        "title": "🌐 Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. Leave disabled to start direct with automatic datacenter → residential fallback on blocks.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
