# TikTok Trending Sounds Scraper (`alien_force/tiktok-trending-sounds-tracker`) Actor

🚀 Track TikTok's Trending Sounds! 🎶
Scrape trending TikTok sounds with comprehensive data, including rank, title, author, trends over time, duration, country code, and related items. Perfect for creators, marketers, and analysts to stay ahead of trends. Start now and ride the viral wave!

- **URL**: https://apify.com/alien_force/tiktok-trending-sounds-tracker.md
- **Developed by:** [Alien Force](https://apify.com/alien_force) (community)
- **Categories:** Social media, Automation
- **Stats:** 319 total users, 6 monthly users, 100.0% runs succeeded, 12 bookmarks
- **User rating**: 1.07 out of 5 stars

## Pricing

from $8.00 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Trending Sounds Tracker 🎶

Dive into the world of TikTok's viral sounds with the **TikTok Trending Sounds Tracker**! Perfect for content creators, marketers, and trend enthusiasts, this actor scrapes comprehensive data on the hottest trending sounds.

### 🌟 Key Features

- **Rank**: Stay ahead by tracking each sound's current rank.
- **Title & Author**: Discover the sound title and its creator.
- **Trends Over Time**: Visualize sound trends with historical data.
- **Duration & Promoted**: See how long a sound lasts and if it's promoted.
- **Country Insights**: Filter sounds by country using the `country_code`.
- **Related Items**: Explore similar trending content for inspiration.
- **Direct Links**: Get one-click access to sound pages, songs, and clips.

🎯 Whether you're tracking global trends, planning your next viral video, or conducting market research, this actor is your ultimate tool for leveraging TikTok's sound landscape.

***

### 👩‍💻 Built For

- **Content creators** 🚀
- **Social media managers** 📈
- **Marketing professionals** 💼
- **Trend analysts** 🌍

Why wait? Start scraping the sounds of TikTok today and ride the trend wave! 🌊

***

### 📝 Example Input

```json
{
    "country": "United States",
    "limit": 20,
    "period": 7
}
```

### 📊 Example Output

```json
[
    {
        "rank": 1,
        "title": "Come Inside Of My Heart",
        "slug": "Come-Inside-Of-My-Heart",
        "author": "IV Of Spades",
        "link": "https://www.tiktok.com/music/x-5000000001448892022",
        "clip_id": "5000000001448892022",
        "song_id": "6722146495644043265",
        "cover_url": "https://p16-sg.tiktokcdn.com/aweme/720x720/tos-alisg-v-2774/53c8ab0b941b44329568d9e09d6daa50.jpeg",
        "country_code": "US",
        "duration": 30,
        "promoted": false,
        "related_items": [
            {
                "item_id": 7425521630215966000,
                "cover_url": "https://p16-sign-sg.tiktokcdn.com/tos-alisg-p-0037/c14cf995de1f4f2b85181ca8af339cac_1728889016~tplv-noop.image?x-expires=1734581404&x-signature=DC1oFOlSvna6Ka%2Bm%2FYomhTzWrUs%3D"
            },
            {
                "item_id": 7429755188967198000,
                "cover_url": "https://p16-vod-sign-useast2a.tiktokcdn-eu.com/tos-useast2a-p-0037-euttp/2f32a89263784212a810ae88a832829e_1729874713~tplv-noop.image?x-expires=1734581353&x-signature=0l0kkkusDGY4rBb7hBnPZ4ald0U%3D"
            }
        ],
        "trends": [
            {
                "time": 1725062400,
                "value": 0
            },
            {
                "time": 1725667200,
                "value": 0
            },
            {
                "time": 1726272000,
                "value": 0
            },
            {
                "time": 1726876800,
                "value": 0
            }
        ],
        "rank_progress": 4, // positive value, negative value or 0
	    "rank_progress_type": "RISING" // RISING, STABLE, DECLINING, NEW_ENTRY
    }
]
```

### Related Actors

If you're interested in similar actors, check out:

- [Tiktok Trending Creators Scraper](https://apify.com/alien_force/tiktok-trending-creators-tracker)
- [Tiktok Trending Videos Scraper](https://apify.com/alien_force/tiktok-trending-videos-tracker)

# Actor input Schema

## `country` (type: `string`):

Select your country

## `limit` (type: `integer`):

Limit the number of items to scrape.

## `period` (type: `string`):

Trending sounds within this period.

## Actor input object example

```json
{
  "country": "United States",
  "limit": 20,
  "period": "7"
}
```

# 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 = {
    "country": "United States",
    "limit": 20,
    "period": "7"
};

// Run the Actor and wait for it to finish
const run = await client.actor("alien_force/tiktok-trending-sounds-tracker").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 = {
    "country": "United States",
    "limit": 20,
    "period": "7",
}

# Run the Actor and wait for it to finish
run = client.actor("alien_force/tiktok-trending-sounds-tracker").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 '{
  "country": "United States",
  "limit": 20,
  "period": "7"
}' |
apify call alien_force/tiktok-trending-sounds-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alien_force/tiktok-trending-sounds-tracker"
        }
    }
}
```

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/nl4fl4kNRXL6evCD8/builds/hHlBA8zqZo21D5f3U/openapi.json
