TikTok Public Music Page Scraper
Pricing
from $2.99 / 1,000 music
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
25 days ago
Last modified
Categories
Features
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
- Open the Actor Store page and select Try for free or open the Input tab.
- Add public music-page URLs to
musicUrls, numeric sound IDs tomusicIds, or both. If both are empty, the Actor uses its bundled sample sound URL. - Keep
maxItemssmall for the first run. EnableincludeDiagnosticsonly if you want minimal rows for blocked or unusable pages. - 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.
| Field | Type | Required? | Default | Meaning |
|---|---|---|---|---|
musicUrls | string array | Optional | Not supplied | Public HTTPS TikTok music-page URLs containing /music/, up to ten entries. |
musicIds | string array | Optional | Not supplied | Numeric TikTok music or sound IDs with 10 to 30 digits, up to ten entries. |
maxItems | integer | Optional | 10 | Maximum unique music-page targets requested, from 1 to 10. |
includeDiagnostics | boolean | Optional | false | Emit minimal {url,error,errorCode,scrapedAt} rows for blocked or unusable music pages. |
requestTimeoutSecs | integer | Optional | 15 | Bounded timeout for each public request, from 10 to 120 seconds. |
maxRequestRetries | integer | Optional | 1 | Bounded retry count for public page requests, from 0 to 2. |
requestDelayMs | integer | Optional | 250 | Polite delay before each page after the first, from 0 to 5,000 ms. |
proxyConfiguration | object | Optional | Not supplied | Optional Apify Proxy or custom HTTP(S) proxy. Proxy use does not bypass access controls. |
fixturePath | string | Optional | Not supplied | QA-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.
| Field | Type | Availability | Meaning |
|---|---|---|---|
musicId | string | When published | Numeric TikTok music or sound identifier. |
musicUrl | string | When published | Requested public music URL. |
musicTitle | string | When published | Public sound or music title. |
artist | string | When published | Public sound creator label. |
authorUrl | string | When published | Public sound creator profile URL. |
description | string | When published | Public music-page description. |
durationSeconds | integer | When published | Public sound duration in seconds. |
coverUrl | string | When published | Public sound cover image URL. |
postUrls | string array | When published | Public TikTok post URLs visible in the bounded page representation; the Actor does not fetch these posts. |
postCount | integer | When published | Count of visible post URLs. |
postsAvailable | boolean | When published | Whether visible public post URLs were found. |
source | string | When published | Provenance source label, tiktok.com. |
sourceUrl | string | When published | Public page URL that produced the record. |
scrapedAt | string | When published | UTC record timestamp. |
url | string | In a diagnostic row | Requested URL in a minimal diagnostic row. |
error | string | In a diagnostic row | Bounded diagnostic message. |
errorCode | string | In a diagnostic row | Stable 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.
| Field | Meaning |
|---|---|
status | Run outcome: success, partial, blocked, empty, or failed. |
source | Source label recorded for the run, tiktok.com. |
requestedTargetCount | Unique music-page targets after combining and normalizing URLs and IDs, or one bundled target when both lists are empty. |
processedTargetCount | Targets actually processed after the maxItems cap. |
requestedMaxItems | Target limit requested in the input. |
normalCount | Music-page records saved. |
diagnosticCount | Diagnostic dataset rows saved; zero unless includeDiagnostics is enabled. |
postCrawl | Whether post pages were crawled; always false for this Actor. |
fixtureMode | Whether a bundled QA fixture was parsed instead of the live route. |
readerFallback | Whether a reader fallback was used. |
transports | Distinct transports used during the run. |
attempts | Array of route attempts with operation, status, size, access signal, and outcome. |
completedAt | Time the summary was written, in ISO UTC. |
| Status | Meaning |
|---|---|
success | Music-page records were saved with no diagnostics. |
partial | Some records were saved, but at least one target was blocked or unusable. Saved rows remain available. |
blocked | No records were saved because TikTok returned an access challenge or denial. |
empty | The page loaded without an access challenge but exposed no usable music-page state. |
failed | A 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.