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

Scrape public TikTok videos using specific sounds and return video, creator, engagement, and music metadata.

- **URL**: https://apify.com/fetch\_cat/tiktok-sound-scraper.md
- **Developed by:** [Hanna Nosova](https://apify.com/fetch_cat) (community)
- **Categories:** Social media, Marketing, Videos
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.09 / 1,000 video rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

Scrape public TikTok videos that use one or more TikTok sounds. The Actor returns one row per video with sound metadata, video details, creator profile fields, hashtags, and engagement counts.

Use it for campaign monitoring, music trend research, creator discovery, reporting, and automated CSV/JSON/API exports.

### At a glance

- **Primary job**: collect public TikTok videos for specific `/music/` sound URLs or numeric music IDs.
- **Input**: TikTok sound URLs, music IDs, total result limits, per-sound limits, and optional Apify Proxy settings.
- **Output**: one dataset row per public video using the sound.
- **Best for**: brand campaign tracking, viral sound analysis, creator prospecting, and social listening workflows.

### Who is it for?

Creator marketers, music marketers, social-listening teams, and trend analysts who need a repeatable export of public videos using a known TikTok sound.

### TikTok music scraper workflows

- **Campaign monitoring**: run a branded sound daily and compare creators, captions, and engagement over time.
- **Music trend research**: export videos using a viral sound and sort by views, likes, comments, or shares.
- **Creator discovery**: collect author usernames, display names, follower counts, bios, and per-video metrics for outreach lists.
- **Automation**: call the Actor from the Apify API, MCP tools, webhooks, or scheduled Apify tasks and export the dataset to CSV, JSON, Excel, or BI tools.

### Input recipes

### Ready-to-run examples

- [Brand campaign sound monitor](https://apify.com/fetch_cat/tiktok-sound-scraper/examples/brand-campaign-sound-monitor)

- [Music trend research sample](https://apify.com/fetch_cat/tiktok-sound-scraper/examples/music-trend-research-sample)

- [Creator discovery by sound ID](https://apify.com/fetch_cat/tiktok-sound-scraper/examples/creator-discovery-by-sound-id)

- **Small smoke test**: use the default TikTok sound URL with `maxItems: 10`.

- **Brand campaign sound monitor**: provide one branded `/music/` URL with `maxItems: 500` and schedule recurring runs.

- **Creator discovery by sound ID**: provide `musicIds: ["7149523537730997035"]` with `maxItemsPerSound: 250`.

### Scrape TikTok sounds and export public video data

Use this TikTok sound API workflow to export a bounded, structured sample for a known public sound without downloading media or accessing private accounts.

### What data can you extract?

| Field | Description |
| --- | --- |
| `soundUrl` | TikTok sound URL processed for the row. |
| `musicId` | Numeric TikTok music/sound ID. |
| `musicTitle` | Public sound title. |
| `musicAuthor` | Sound author or owner name. |
| `musicOriginal` | Whether TikTok marks the sound as original. |
| `musicDuration` | Sound duration in seconds when available. |
| `musicCoverUrl` | Public sound cover image URL. |
| `musicPlayUrl` | Public audio playback URL when exposed by TikTok. |
| `videoId` | TikTok video ID. |
| `videoUrl` | Public video URL. |
| `text` | Video caption text. |
| `createdAt`, `createdAtISO`, `locationCreated` | Video creation timestamp and public location when supplied. |
| `isAd`, `isMuted` | Public video status flags when supplied. |
| `duration`, `width`, `height`, `coverUrl` | Public video duration, dimensions, and cover URL. |
| `hashtags` | Caption hashtags. |
| `diggCount`, `playCount`, `shareCount`, `commentCount`, `collectCount` | Public engagement metrics. |
| `authorId`, `authorUsername`, `authorDisplayName`, `authorVerified` | Creator identity fields. |
| `authorAvatar`, `authorBio`, `authorPrivate` | Public creator profile details and status. |
| `authorFollowerCount`, `authorFollowingCount`, `authorLikeCount` | Public creator statistics. |
| `scrapedAt` | Actor collection timestamp. |

### Input configuration

| Setting | JSON key | Use it for | Example |
| --- | --- | --- | --- |
| TikTok sound URLs | `soundUrls` | Full public TikTok `/music/` URLs. | `[{"url":"https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035"}]` |
| Music IDs | `musicIds` | Numeric sound IDs when you do not have a full URL. | `["7149523537730997035"]` |
| Maximum video rows | `maxItems` | Cap total saved rows and control spend. | `100` |
| Maximum rows per sound | `maxItemsPerSound` | Prevent one sound from consuming the whole run. | `50` |
| Proxy configuration | `proxyConfiguration` | Enable Apify Proxy if TikTok blocks direct access. | `{ "useApifyProxy": true }` |

### Example input

```json
{
  "soundUrls": [
    { "url": "https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035" }
  ],
  "maxItems": 10,
  "maxItemsPerSound": 10,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

### Example output

```json
{
  "soundUrl": "https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035",
  "musicId": "7149523537730997035",
  "musicTitle": "a negroni sbagliato w prosecco l hbo max",
  "musicAuthor": "HBO Max",
  "musicOriginal": true,
  "musicDuration": 20,
  "videoId": "7149523510589754670",
  "videoUrl": "https://www.tiktok.com/@hbomax/video/7149523510589754670",
  "text": "I'll take one of each. #houseofthedragon",
  "createdAtISO": "2022-10-01T12:43:01.000Z",
  "hashtags": ["houseofthedragon"],
  "diggCount": 2400000,
  "playCount": 35700000,
  "shareCount": 158000,
  "commentCount": 11300,
  "authorUsername": "hbomax",
  "authorDisplayName": "HBO Max",
  "authorVerified": true,
  "scrapedAt": "2026-07-22T12:16:38.898Z"
}
```

### Pricing

The Actor charges for each public video row successfully saved to the dataset. Current tier rates are shown on the [TikTok Sound Scraper Pricing tab](https://apify.com/fetch_cat/tiktok-sound-scraper/pricing).

Keep limits low while testing. The Actor validates inputs before browser, proxy, or charge work and only charges for rows pushed to the dataset.

### Tips for best results

- **Start small**: Use `maxItems: 10` until you confirm output quality for a sound.
- **Use public sounds**: Private, deleted, unavailable, or region-limited sounds may return no rows.
- **Keep runs focused**: Split very broad monitoring jobs into separate sounds or smaller scheduled runs.
- **Enable proxy only when needed**: Direct access is cheaper; Apify Proxy can help when TikTok throttles or blocks direct browser traffic.

### API usage

Node.js:

```js
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("fetch_cat/tiktok-sound-scraper").call({
  soundUrls: [{ url: "https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035" }],
  maxItems: 10,
  maxItemsPerSound: 10
});
console.log(run.defaultDatasetId);
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("fetch_cat/tiktok-sound-scraper").call(run_input={
    "soundUrls": [{ "url": "https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035" }],
    "maxItems": 10,
    "maxItemsPerSound": 10,
})
print(run["defaultDatasetId"])
```

cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/fetch_cat~tiktok-sound-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"soundUrls":[{"url":"https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035"}],"maxItems":10,"maxItemsPerSound":10}'
```

### MCP and AI agents

Use this Actor from MCP-compatible tools through the official Apify MCP Server.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fetch_cat/tiktok-sound-scraper"
```

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=fetch_cat/tiktok-sound-scraper"
    }
  }
}
```

Example prompt: "Run TikTok Sound Scraper for this TikTok sound URL with maxItems 10 and summarize the top videos by playCount."

### Limits and caveats

- **Coverage**: TikTok can limit, personalize, remove, or reorder public sound results; output is a bounded public sample, not guaranteed exhaustive coverage.
- **Freshness**: Engagement metrics and sound availability can change after a run finishes.
- **Blocking**: TikTok may return challenges or throttle traffic. Retry later, reduce limits, or enable Apify Proxy if direct browser access fails.
- **No private data**: The Actor does not log in, bypass privacy controls, or scrape private TikTok state.

### Related actors

#### More TikTok scrapers

- [TikTok Profile Scraper](https://apify.com/fetch_cat/tiktok-profile-scraper)
- [TikTok Ads Library Scraper](https://apify.com/fetch_cat/tiktok-ads-library-scraper)
- [TikTok Followers and Following Scraper](https://apify.com/fetch_cat/tiktok-followers-scraper)
- [TikTok User Search Scraper](https://apify.com/fetch_cat/tiktok-user-search-scraper)
- [TikTok Video Scraper](https://apify.com/fetch_cat/tiktok-video-scraper)

### FAQ

#### What data can I export with TikTok Sound Scraper?

You can export public sound, video, creator, hashtag, and engagement fields as dataset rows in JSON, CSV, Excel, XML, RSS, or through the API.

#### Can I run TikTok Sound Scraper through an API, schedule, or MCP client?

Yes. Use the API examples above, schedule a bounded run in Apify, or call the Actor through an MCP-compatible client.

#### How much does TikTok Sound Scraper cost?

You are charged only when the Actor saves a public video row. Current tier rates are listed in the Pricing section and on the Actor Pricing tab.

#### Why are some fields empty?

TikTok does not expose every field for every public video or sound. The Actor leaves unavailable fields empty instead of guessing.

#### Can I scrape by music ID only?

Yes. Add numeric IDs to `musicIds`; the Actor builds a TikTok sound URL and captures the public response for that ID.

### Support

Open an issue from the Actor page if a run fails or output looks wrong. Include the run ID or run URL, input JSON, expected output, actual output, and one reproducible public URL (for example, a public TikTok sound URL).

# Actor input Schema

## `soundUrls` (type: `array`):

One or more public TikTok /music/ sound URLs.

## `musicIds` (type: `array`):

Optional numeric TikTok music IDs to scrape when you do not have the full URL.

## `maxItems` (type: `integer`):

Maximum total number of video rows to save.

## `maxItemsPerSound` (type: `integer`):

Maximum video rows to save for each sound URL or music ID.

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

Optional Apify Proxy settings. The actor tries direct HTTP first unless proxy use is enabled.

## Actor input object example

```json
{
  "soundUrls": [
    {
      "url": "https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035"
    }
  ],
  "musicIds": [],
  "maxItems": 10,
  "maxItemsPerSound": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "soundUrls": [
        {
            "url": "https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fetch_cat/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 = { "soundUrls": [{ "url": "https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035" }] }

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

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

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

```

## CLI example

```bash
echo '{
  "soundUrls": [
    {
      "url": "https://www.tiktok.com/music/a-negroni-sbagliato-w-prosecco-l-hbo-max-7149523537730997035"
    }
  ]
}' |
apify call fetch_cat/tiktok-sound-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fetch_cat/tiktok-sound-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sorTO4zwzDJxudKfb/builds/bQM93eoC5SX93NLS8/openapi.json
