# TikTok Sounds & Music Scraper — Trending Audio by Keyword (`seemuapps/tiktok-sounds-scraper`) Actor

Find trending TikTok sounds and songs by keyword, list every video using a sound, and pull full sound metadata — usage count, artist, cover, play URL.

- **URL**: https://apify.com/seemuapps/tiktok-sounds-scraper.md
- **Developed by:** [Seemu Scraping](https://apify.com/seemuapps) (community)
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 sound founds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TikTok Sounds & Music Scraper — Trending Audio by Keyword

Discover which sounds and songs are trending on TikTok for any topic, list every video that uses a sound, and pull full metadata for any TikTok sound — no login, no cookies, no TikTok account required.

### What you get

Three modes in one actor:

- **Sounds by keyword** — search TikTok for any keyword and get the distinct sounds/songs used by the matching videos: sound ID, title, artist, album, duration, original-sound flag, commercial-music flag, total usage count (how many TikToks use it), cover art, audio play URL, sound page URL, plus how often it appeared in the search sample and the top-performing video using it.
- **Videos using a sound** — paste a TikTok sound URL or ID and get the videos that use it, one row per video: video URL, description, post date, play / like / comment / share / save counts, author username, name, ID and verified status, duration, cover image, and the sound it uses. Paginated so you can keep going across runs.
- **Sound details** — full metadata for one or more sounds: title, artist(s) with TikTok handles and verified status, album, duration, total videos using the sound, original vs. licensed music, commercial-rights flags, owner account, cover art, play URL, and creation date.
- Export to JSON, CSV, Excel, or Google Sheets directly from the Apify console

### Use cases

- **Trend spotting** — find the audio that's blowing up around a niche (fitness, lofi, skincare, comedy) before it peaks
- **Content strategy** — pick sounds with proven reach for your next TikTok, Reel, or Short
- **Music marketing & A\&R** — track how many videos use a track and who is using it
- **Influencer and competitor research** — see which creators are riding a sound and how their videos perform
- **Sound-level analytics** — build datasets of videos per sound for engagement benchmarking

### How to use

1. Pick a **Mode**:
   - **Sounds by keyword** → enter one or more **Keywords** (e.g. `lofi beats`, `gym motivation`). Optionally set **Sort by**, **Date posted**, and a two-letter **Region** code.
   - **Videos using a sound** or **Sound details** → enter one or more **Sound URLs or IDs** (`https://www.tiktok.com/music/luther-7439295283975702544` or just `7439295283975702544`).
2. Set **Max items** (default 50; `0` = no limit).
3. Run the actor — results appear in the **Dataset** tab.
4. **Videos using a sound** only: to fetch more videos for the same sound, open the run's **Key-value store** tab → copy the `NEXT_PAGE_ID` value → paste it into **Page ID** on your next run. If `NEXT_PAGE_ID` is `null`, you've fetched everything. (Page ID applies when a single sound is given.)

### Output format

#### Sounds by keyword — one row per distinct sound

```json
{
  "soundId": "7638674157345639190",
  "title": "original sound - lofiquietstorm",
  "author": "lofiquietstorm",
  "album": null,
  "durationSec": 2014,
  "isOriginalSound": true,
  "isCommercialMusic": true,
  "usageCount": 50,
  "coverUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/ae6f8ae1c38c550b2f7338e5f406c5de~tplv-tiktokx-cropcenter-q:1080:1080:q70.jpeg?…",
  "playUrl": "https://v16m.tiktokcdn-us.com/0ca721880e20fd8bc9880933d6f8cf8c/6aaf5533/video/tos/no1a/tos-no1a-v-2370-no/oQ9YAI6gTpeQUEVeTdoB8AbmLwlGoDL9IjxLfP/?…&mime_type=audio_mpeg…",
  "soundUrl": "https://www.tiktok.com/music/original-sound-lofiquietstorm-7638674157345639190",
  "keyword": "lofi beats",
  "sampleVideoCount": 1,
  "sampleTotalPlays": 45238,
  "sampleTopVideoUrl": "https://www.tiktok.com/@lofiquietstorm/video/7638673465222073622",
  "sampleTopVideoPlays": 45238,
  "scrapedAt": "2026-09-13T02:05:14.109Z"
}
```

`usageCount` is TikTok's total number of videos using the sound. The `sample*` fields describe the videos that matched your keyword in this run: how many used the sound, their combined plays, and the best-performing one.

#### Videos using a sound — one row per video

```json
{
  "videoId": "7502954579814845726",
  "url": "https://www.tiktok.com/@sza/video/7502954579814845726",
  "description": "THANK YOU KENDRICK FOR COMING TO YESTERDAY'S @NotBeauty POP UP !!!! 🪲⛺️🫶🏾 @American Dream ",
  "createdAt": "2025-05-10T22:56:11.000Z",
  "playCount": 2920771,
  "likeCount": 226425,
  "commentCount": 1585,
  "shareCount": 4533,
  "saveCount": 13415,
  "authorId": "7486547994222740523",
  "authorUsername": "sza",
  "authorName": "SZA",
  "authorVerified": true,
  "durationSec": 23,
  "coverUrl": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oMAj6PIBJAreJfqxIxMTsLAQGeA5LIAjQEAQ7g~tplv-tiktokx-cropcenter-q:300:400:q70.jpeg?…",
  "soundId": "7439295283975702544",
  "soundTitle": "luther",
  "soundAuthor": "Kendrick Lamar & SZA",
  "scrapedAt": "2026-09-13T02:05:44.784Z"
}
```

#### Sound details — one row per sound

```json
{
  "soundId": "7439295283975702544",
  "title": "luther",
  "author": "Kendrick Lamar & SZA",
  "album": "GNX",
  "durationSec": 59,
  "usageCount": 1424501,
  "isOriginalSound": false,
  "isCommercialMusic": true,
  "hasCommerceRight": false,
  "isProfessionalContent": true,
  "ownerUsername": null,
  "ownerName": null,
  "artists": [
    { "name": "SZA", "username": "sza", "userId": "7486547994222740523", "isVerified": true }
  ],
  "coverUrl": "https://p16-sg.tiktokcdn.com/aweme/720x720/tos-alisg-v-2774/ooCBAEtE4DqIfBLAjADiRIneQATZEYFgAh8tm8.jpeg",
  "playUrl": "https://sf16-music.tiktokcdn-eu.com/obj/tos-alisg-ve-2774/o8f9CfEFDdCEDUAq6gDqgOY4gQNfJHzxhF2ayE",
  "soundUrl": "https://www.tiktok.com/music/luther-7439295283975702544",
  "createdAt": "2024-11-22T23:15:12.000Z",
  "scrapedAt": "2026-09-13T02:05:56.626Z"
}
```

For original sounds (user-uploaded audio), `ownerUsername` / `ownerName` identify the creator and `artists` is empty; for licensed songs, `artists` lists the linked artist accounts.

### Pricing

You pay per row returned: one **sound result** per sound row (Sounds by keyword and Sound details modes) and one **video result** per video row (Videos using a sound mode). Failed lookups and empty pages are free.

### FAQ

**How many sounds does one keyword return?** Each search page holds ~30 videos, and the actor scans up to 10 pages per keyword, so typically 50–250 distinct sounds per keyword depending on how varied the audio is. Add more keywords to widen the net.

**Why is `sampleVideoCount` usually 1?** TikTok search returns a broad mix of videos, so most sounds appear once in the sample. Use `usageCount` for the platform-wide popularity of a sound; the `sample*` fields tell you how it performed within your keyword's results.

**Can I paste a sound link copied from the TikTok app?** Yes — any `tiktok.com/music/<name>-<id>` link works, with or without query parameters, as does the bare numeric ID.

**Do cover and play URLs expire?** TikTok signs its CDN URLs, so download what you need soon after the run. Sound page URLs (`soundUrl`) and video URLs (`url`) are permanent.

# Actor input Schema

## `mode` (type: `string`):

What to scrape. 'Sounds by keyword' finds the distinct sounds/songs used by videos matching your keywords. 'Videos using a sound' lists the videos that use a given sound. 'Sound details' returns full metadata for each sound.

## `keywords` (type: `array`):

Search terms to discover sounds for, one per line (e.g. 'lofi beats', 'gym motivation'). Used in 'Sounds by keyword' mode.

## `sounds` (type: `array`):

TikTok sound/music page URLs (https://www.tiktok.com/music/<name>-<id>) or bare numeric sound IDs, one per line. Used in 'Videos using a sound' and 'Sound details' modes.

## `sortBy` (type: `string`):

How keyword search results are ordered before sounds are aggregated. Only used in 'Sounds by keyword' mode.

## `datePosted` (type: `string`):

Only consider videos posted within this window when discovering sounds. Only used in 'Sounds by keyword' mode.

## `region` (type: `string`):

Two-letter country code (e.g. US, GB, DE) to localise keyword search results. Leave empty for the default region. Only used in 'Sounds by keyword' mode.

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

Maximum number of rows to return per run (distinct sounds in 'Sounds by keyword' mode, videos in 'Videos using a sound' mode). Set 0 for no limit.

## `pageId` (type: `string`):

Paste NEXT\_PAGE\_ID from the previous run's Key-value store to fetch the next page of videos. Only used in 'Videos using a sound' mode with a single sound.

## Actor input object example

```json
{
  "mode": "sounds",
  "keywords": [
    "lofi beats"
  ],
  "sounds": [
    "https://www.tiktok.com/music/luther-7439295283975702544"
  ],
  "sortBy": "relevance",
  "datePosted": "all-time",
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

Sounds modes: soundId, title, author, album, durationSec, usageCount, isOriginalSound, coverUrl, playUrl, soundUrl, and more. Videos mode: videoId, url, description, createdAt, play/like/comment/share/save counts, author, soundId, soundTitle.

## `nextPageId` (type: `string`):

NEXT\_PAGE\_ID record in the default key-value store (Videos using a sound mode only). Paste into Page ID on the next run to resume; null when the list is exhausted.

# 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 = {
    "keywords": [
        "lofi beats"
    ],
    "sounds": [
        "https://www.tiktok.com/music/luther-7439295283975702544"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/tiktok-sounds-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 = {
    "keywords": ["lofi beats"],
    "sounds": ["https://www.tiktok.com/music/luther-7439295283975702544"],
}

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/tiktok-sounds-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 '{
  "keywords": [
    "lofi beats"
  ],
  "sounds": [
    "https://www.tiktok.com/music/luther-7439295283975702544"
  ]
}' |
apify call seemuapps/tiktok-sounds-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,seemuapps/tiktok-sounds-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/v1m8fjmBEhNdSzNLx/builds/yltU9HYJsdqa5hI5R/openapi.json
