# TikTok Song Finder & Identifier by Link: ISRC (`firsthand/tiktok-song-finder`) Actor

TikTok song finder: paste TikTok video links and get the song in each one: title, artist, ISRC, album and Apple Music link. Original sounds are recognized by Shazam; tracks TikTok already names come straight from the post. You pay only for songs found; links with no song are free.

- **URL**: https://apify.com/firsthand/tiktok-song-finder.md
- **Developed by:** [Firsthand](https://apify.com/firsthand) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.70 / 1,000 song founds

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/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 Song Finder & Identifier by Link: ISRC

Paste TikTok video links and get the song playing in each one: title, artist, ISRC, album, label, release year and an Apple Music link. One row per link.

Most TikTok videos use an "original sound": TikTok shows no song name, even when a real track is playing. For those, the Actor takes a 12-second piece of the sound and identifies it with Shazam. When TikTok already names the track, the Actor takes the name straight from the post. No TikTok login, no cookies, and you do not need to get the audio file first: other song recognition Actors on Apify want a direct audio or video file, this one takes the TikTok link.

### What you get

One row per link:

- `status`: `found` (song identified, billed), `found_uncertain`, `not_identified`, `no_music`, `no_audio`, `post_unavailable`, `invalid_input`, `duplicate` (another link to a post already in this run: song repeated, not charged again), `error`, `not_processed` (all free)
- `songFound`, `songSource`: `tiktok` (TikTok names the track) or `shazam` (original sound identified by Shazam)
- `songTitle`, `songArtist`, `album`
- `isrc`, `label`, `releaseYear`, `genre`, `shazamKey`, `shazamUrl`, `appleMusicUrl`, `previewUrl`, `coverArt` (Shazam matches)
- `matchOffsetSec`: where in the song the TikTok sound plays
- `matchSkew`, `matchTimeSkew`, `matchFrequencySkew`: how far the match is shifted in time or pitch
- `tiktokMusicTitle`, `tiktokMusicAuthor`, `tiktokMusicAlbum`, `tiktokMusicOriginal`, `tiktokMusicDurationSec`, `tiktokMusicId`, `tiktokMusicUrl`, `tiktokAppleMusicId`: the sound as TikTok shows it
- `postUrl`, `postId`, `postAuthor`, `postCreateTime`, `input`, `scrapedAt`
- `reason`: why there is no song, in plain words

A run summary (`SUMMARY` in the key-value store) counts rows by status and source.

### How to find a song from a TikTok link

1. Paste links into **TikTok post links**, one per line. Accepted:
   - `https://www.tiktok.com/@user/video/7700823522561543454`
   - short share links: `https://vm.tiktok.com/...`, `https://vt.tiktok.com/...`, `https://www.tiktok.com/t/...`
   - a bare post ID: `7700823522561543454`
2. Optionally set **Max songs found** to cap the bill, and **Country** for song details and Apple Music links (default US).
3. Run the Actor and download the dataset as CSV, Excel or JSON. The **Songs** view shows the main columns.

Rows appear in the dataset as soon as each link is done, so you can read results while the run is still going. Links from other sites (Instagram, YouTube, direct audio files) and exact repeats of the same link get no row: they are skipped with a warning in the log. If you Resurrect a run, links that ended as `error` or `not_processed` are tried again and get a second row; rows with a final status are kept and never charged twice.

### Song from TikTok original sounds: what song is this TikTok?

In a test on 80 public TikTok videos (the top 8 posts of 10 popular hashtags such as #fyp, #dance, #food and #gaming, November 2026):

| Result | Links |
|---|---|
| TikTok names the track | 22 |
| Original sound identified by Shazam | 25 |
| Original sound, Shazam match shifted (`found_uncertain`, free) | 8 |
| Original sound, no song found (speech, the creator's own music, no match) | 23 |
| Post unavailable or without audio | 2 |

So 47 of 80 links (59%) came back with a song; for original sounds alone, 25 of 56 (45%). Your share depends on the videos: in this test it ranged from 1 of 8 (#food) to 6 of 8 (#dance) by hashtag. A run of 80 links took 2-3 minutes; one link took 10-17 seconds on average, most of it waiting for Shazam.

**Uncertain matches.** When Shazam's match is shifted in time or pitch by more than 0.1%, the row is `found_uncertain` and is not charged. TikTok sounds are often sped up, so many of these are the right song at a different speed (in our test: Swedish House Mafia, Earth, Wind & Fire, Tori Kelly); one was a podcast matched to a giveaway video. Check `songTitle` and `matchSkew` yourself before using them.

**Not identified.** Shazam knows released recordings. Speech, voice-overs, a creator's own music and live sound usually have no match. By default the Actor listens to 12 seconds from the middle of the sound; **Listen at two more points** adds two more tries near the start and the end. It is slower and rarely finds more.

### TikTok song finder API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("firsthand/tiktok-song-finder").call(run_input={
    "postUrls": ["https://www.tiktok.com/@angelicaamarina/video/7700823522561543454"],
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["status"], row.get("songTitle"), row.get("songArtist"), row.get("isrc"))
```

Field names accepted from other Actors: `postUrls`, `videoUrls`, `startUrls`, `urls`, `url`, `maxResults` or `maxItems`, `country`.

### Example output

```json
{
  "postUrl": "https://www.tiktok.com/@isabellamjohn/video/7701061343494884622",
  "status": "found",
  "songFound": true,
  "songSource": "shazam",
  "songTitle": "Housewife",
  "songArtist": "Tate McRae",
  "isrc": "USRC12601916",
  "album": "Housewife - Single",
  "label": "RCA Records Label",
  "releaseYear": "2026",
  "genre": "Pop",
  "appleMusicUrl": "https://music.apple.com/us/album/housewife/6822497770?i=6822497774",
  "matchOffsetSec": 44.5,
  "matchSkew": 8.1e-05,
  "tiktokMusicTitle": "original sound",
  "tiktokMusicAuthor": "pixyconcepts",
  "tiktokMusicOriginal": true,
  "tiktokMusicDurationSec": 27.4,
  "reason": null
}
```

### Pricing

You pay per song found, from either source: **$0.002 per song** on the Free plan, plus $0.0003 per run start. Rows without a song (`found_uncertain`, `not_identified`, `no_music`, `post_unavailable`, errors) are free. 1,000 links where 590 songs are found cost about $1.18; 1,000 original sounds with 450 songs found cost about $0.90.

### Good to know

- Only public posts. Deleted, private and region-restricted posts get a free `post_unavailable` row with TikTok's status code. The Actor reads TikTok from the US, so a post TikTok hides in the US (status code 10231) is `post_unavailable` even if it plays in your country.
- This Actor is not affiliated with, sponsored or endorsed by TikTok, Shazam or Apple. Their names are used only to describe where the data comes from.
- Song details come from Shazam's public recognition service, which is not an official API; it can change without notice. If recognition fails, the row is `error` and free, never "no song".
- ISRC, label and Apple Music links come only with Shazam matches. For tracks TikTok names itself, you get TikTok's title, author and album as TikTok shows them, and `tiktokAppleMusicId` when TikTok links the sound to Apple Music. TikTok's "author" is sometimes the user who uploaded the clip rather than the artist (2 of 22 such rows in our test, for example a re-edit of "The Sound Of Silence"); when `tiktokAppleMusicId` is empty (7 of 22), check the artist yourself.
- The Actor reads public data only and does not store audio. You are responsible for how you use the results.

# Actor input Schema

## `postUrls` (type: `array`):

Links to TikTok videos (also short vm.tiktok.com links and post IDs). One row per link. Links from other sites are skipped with a warning.

## `extraWindows` (type: `boolean`):

By default Shazam listens to 12 seconds from the middle of the sound. With this on, an original sound with no match gets two more tries (near the start and near the end). Slower; in our test it rarely found more songs.

## `maxResults` (type: `integer`):

Stop after this many found songs. Empty means no limit.

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

Two-letter country code for Shazam song details and Apple Music links, e.g. US, GB. Empty means US.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.tiktok.com/@angelicaamarina/video/7700823522561543454",
    "https://www.tiktok.com/@foodwithliz/video/7644257366317223182"
  ]
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "postUrls": [
        "https://www.tiktok.com/@angelicaamarina/video/7700823522561543454",
        "https://www.tiktok.com/@foodwithliz/video/7644257366317223182"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("firsthand/tiktok-song-finder").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 = { "postUrls": [
        "https://www.tiktok.com/@angelicaamarina/video/7700823522561543454",
        "https://www.tiktok.com/@foodwithliz/video/7644257366317223182",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("firsthand/tiktok-song-finder").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 '{
  "postUrls": [
    "https://www.tiktok.com/@angelicaamarina/video/7700823522561543454",
    "https://www.tiktok.com/@foodwithliz/video/7644257366317223182"
  ]
}' |
apify call firsthand/tiktok-song-finder --silent --output-dataset

```

## MCP server setup

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

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/UOwUbnRmIeDeONuJP/builds/KYNFbavtkjdOgxMPe/openapi.json
