TikTok Public Music Page Scraper avatar

TikTok Public Music Page Scraper

Pricing

from $2.99 / 1,000 music

Go to Apify Store
TikTok Public Music Page Scraper

TikTok Public Music Page Scraper

Extract public TikTok music-page metadata, page text, images, links, and visible post URLs from public music URLs or numeric sound IDs.

Pricing

from $2.99 / 1,000 music

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

25 days ago

Last modified

Categories

Features

Limited permissions

Share

TikTok Public Music Page Scraper reads bounded public TikTok music or sound pages from supplied music URLs or numeric sound IDs. It returns source-backed sound identity and metadata, plus public post URLs visible in the page representation. It does not fetch every post that uses a sound and is not an authenticated TikTok API.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Add public music-page URLs to musicUrls, numeric sound IDs to musicIds, or both. If both are empty, the Actor uses its bundled sample sound URL.
  3. Keep maxItems small for the first run. Enable includeDiagnostics only if you want minimal rows for blocked or unusable pages.
  4. Start the Actor, open the dataset, and export rows as JSON, CSV, or Excel. Open Run summary (OUTPUT_SUMMARY) to see targets processed, transports, and attempts.

Input

All fields are optional; the defaults below are ready to use. Unsupported fields and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
musicUrlsstring arrayOptionalNot suppliedPublic HTTPS TikTok music-page URLs containing /music/, up to ten entries.
musicIdsstring arrayOptionalNot suppliedNumeric TikTok music or sound IDs with 10 to 30 digits, up to ten entries.
maxItemsintegerOptional10Maximum unique music-page targets requested, from 1 to 10.
includeDiagnosticsbooleanOptionalfalseEmit minimal {url,error,errorCode,scrapedAt} rows for blocked or unusable music pages.
requestTimeoutSecsintegerOptional15Bounded timeout for each public request, from 10 to 120 seconds.
maxRequestRetriesintegerOptional1Bounded retry count for public page requests, from 0 to 2.
requestDelayMsintegerOptional250Polite delay before each page after the first, from 0 to 5,000 ms.
proxyConfigurationobjectOptionalNot suppliedOptional Apify Proxy or custom HTTP(S) proxy. Proxy use does not bypass access controls.
fixturePathstringOptionalNot suppliedQA-only relative path below test/fixtures, up to 240 characters. Fixture mode is explicit and never used as a live fallback.

Full default input, excluding the optional proxy object:

{
"maxItems": 10,
"includeDiagnostics": false,
"requestTimeoutSecs": 15,
"maxRequestRetries": 1,
"requestDelayMs": 250
}

If both musicUrls and musicIds are empty, the Actor falls back to one bundled public target, https://www.tiktok.com/music/original-sound-7595604258835401494. That fallback is a convenience demo, not a claim that the sound is trending.

Output

The dataset contains one row per source-backed music or sound page, or one minimal diagnostic row when includeDiagnostics is enabled and the page is blocked or unusable. In the saved 2026-10-25 local run, the music embed page loaded but the video-detail route returned a CAPTCHA, no normal record met the contract, and includeDiagnostics was false, so no rows were written. The saved dataset is an empty array:

[]

The fields below describe the row shape when a public music page is usable; none was observed in that run. Optional values are omitted when the page does not expose them.

FieldTypeAvailabilityMeaning
musicIdstringWhen publishedNumeric TikTok music or sound identifier.
musicUrlstringWhen publishedRequested public music URL.
musicTitlestringWhen publishedPublic sound or music title.
artiststringWhen publishedPublic sound creator label.
authorUrlstringWhen publishedPublic sound creator profile URL.
descriptionstringWhen publishedPublic music-page description.
durationSecondsintegerWhen publishedPublic sound duration in seconds.
coverUrlstringWhen publishedPublic sound cover image URL.
postUrlsstring arrayWhen publishedPublic TikTok post URLs visible in the bounded page representation; the Actor does not fetch these posts.
postCountintegerWhen publishedCount of visible post URLs.
postsAvailablebooleanWhen publishedWhether visible public post URLs were found.
sourcestringWhen publishedProvenance source label, tiktok.com.
sourceUrlstringWhen publishedPublic page URL that produced the record.
scrapedAtstringWhen publishedUTC record timestamp.
urlstringIn a diagnostic rowRequested URL in a minimal diagnostic row.
errorstringIn a diagnostic rowBounded diagnostic message.
errorCodestringIn a diagnostic rowStable diagnostic code, such as ACCESS_BLOCK.

A diagnostic row contains only url, error, errorCode, and scrapedAt. It is written only when includeDiagnostics is true; the saved run kept the default false, which is why the dataset is empty.

Run summary

Run summary is stored separately from the dataset in the run's key-value store under OUTPUT_SUMMARY. It records how many sound targets were requested and processed, which transports were attempted, and whether any diagnostic was recorded.

FieldMeaning
statusRun outcome: success, partial, blocked, empty, or failed.
sourceSource label recorded for the run, tiktok.com.
requestedTargetCountUnique music-page targets after combining and normalizing URLs and IDs, or one bundled target when both lists are empty.
processedTargetCountTargets actually processed after the maxItems cap.
requestedMaxItemsTarget limit requested in the input.
normalCountMusic-page records saved.
diagnosticCountDiagnostic dataset rows saved; zero unless includeDiagnostics is enabled.
postCrawlWhether post pages were crawled; always false for this Actor.
fixtureModeWhether a bundled QA fixture was parsed instead of the live route.
readerFallbackWhether a reader fallback was used.
transportsDistinct transports used during the run.
attemptsArray of route attempts with operation, status, size, access signal, and outcome.
completedAtTime the summary was written, in ISO UTC.
StatusMeaning
successMusic-page records were saved with no diagnostics.
partialSome records were saved, but at least one target was blocked or unusable. Saved rows remain available.
blockedNo records were saved because TikTok returned an access challenge or denial.
emptyThe page loaded without an access challenge but exposed no usable music-page state.
failedA request or parse failure occurred before any usable record was saved.

Example OUTPUT_SUMMARY from the saved 2026-10-25 run:

{
"status": "blocked",
"source": "tiktok.com",
"requestedTargetCount": 3,
"processedTargetCount": 3,
"requestedMaxItems": 3,
"normalCount": 0,
"diagnosticCount": 0,
"postCrawl": false,
"fixtureMode": false,
"readerFallback": false,
"transports": [
"proxy"
],
"attempts": [
{
"route": "music_embed_state",
"transport": "proxy",
"statusCode": 200,
"responseBytes": 278845,
"contentType": "text/html; charset=utf-8",
"outcome": "ok"
},
{
"route": "video_detail_state",
"transport": "proxy",
"statusCode": 200,
"responseBytes": 396781,
"contentType": "text/html; charset=utf-8",
"accessSignal": "captcha",
"outcome": "blocked",
"error": "HTTP 200 (captcha)"
},
{
"route": "music_embed_state",
"transport": "proxy",
"statusCode": 200,
"responseBytes": 284664,
"contentType": "text/html; charset=utf-8",
"outcome": "ok"
},
{
"route": "video_detail_state",
"transport": "proxy",
"statusCode": 200,
"responseBytes": 390400,
"contentType": "text/html; charset=utf-8",
"accessSignal": "captcha",
"outcome": "blocked",
"error": "HTTP 200 (captcha)"
},
{
"route": "music_embed_state",
"transport": "proxy",
"statusCode": 200,
"responseBytes": 275714,
"contentType": "text/html; charset=utf-8",
"outcome": "ok"
},
{
"route": "video_detail_state",
"transport": "proxy",
"statusCode": 200,
"responseBytes": 401042,
"contentType": "text/html; charset=utf-8",
"accessSignal": "captcha",
"outcome": "blocked",
"error": "HTTP 200 (captcha)"
}
],
"completedAt": "2026-10-25T20:44:45.186Z"
}

Coverage and limitations

The Actor reads public music-page representations, not a complete catalogue of every video that uses a sound. postUrls contains only the public post URLs visible in the response, and postCount counts those URLs; the Actor does not open the posts or crawl their authors. A page may expose the sound title and cover but not a usable post list, in which case the record can still be saved with postsAvailable: false when the sound identity and page state are source-backed.

CAPTCHA, login, challenge, generic-shell, timeout, or "Something went wrong" responses are reported explicitly and can prevent a record. When includeDiagnostics is enabled, one minimal row records the URL, error, and code. fixturePath is for offline QA only. A proxy applies only to the public request and cannot make a blocked page usable.

Usage and support

Cost depends on Apify compute, the number of targets, response time, dataset size, and any proxy traffic. Start with one sound URL or ID and a small maxItems, inspect the page rows and OUTPUT_SUMMARY, then scale. See the Actor's Pricing tab for current account rates.

Use the Actor Issues page to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with, endorsed by, or sponsored by TikTok. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.