Spotify Track Metadata and Audio-Feature Availability Scraper avatar

Spotify Track Metadata and Audio-Feature Availability Scraper

Pricing

from $2.99 / 1,000 track metadata & audio features

Go to Apify Store
Spotify Track Metadata and Audio-Feature Availability Scraper

Spotify Track Metadata and Audio-Feature Availability Scraper

Collect public Spotify track metadata and return official audio-feature vectors when supplied credentials have eligible Spotify API access.

Pricing

from $2.99 / 1,000 track metadata & audio features

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Extract public Spotify track metadata and determine whether public audio-preview or audio-feature data is exposed on the page. The Actor returns track identity, artists, album context, release year, duration, and visible play count, then reports audio-feature availability explicitly: tempo, key, danceability, energy, valence, and similar vectors are not invented when Spotify's public page does not expose them.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Add one to 25 public track URLs or 22-character track IDs to trackUrls.
  3. Keep includeAudioFeatures enabled to record the public availability outcome in every row.
  4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open Run summary (OUTPUT_SUMMARY) to check the outcome and counts.

Input

trackUrls is required. Unsupported field names and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
trackUrlsstring arrayRequiredNot suppliedOne to 25 public open.spotify.com/track/... URLs or 22-character Spotify track IDs.
includeAudioFeaturesbooleanOptionaltrueReport the public audio-feature availability outcome. This does not compute features and never enables audio decoding.
requestDelayMsintegerOptional1000Polite delay before each browser navigation, 0–30000 ms.
timeoutSecsintegerOptional45Timeout for each public page, 10–90 seconds.
maxResponseBytesintegerOptional3000000Hard initial response-body limit, 100000–5000000 bytes.
proxyConfigurationobjectOptional{"useApifyProxy":false}Optional Apify Proxy settings; direct browsing is the default.

Full default input (supply trackUrls before running):

{
"includeAudioFeatures": true,
"requestDelayMs": 1000,
"timeoutSecs": 45,
"maxResponseBytes": 3000000,
"proxyConfiguration": {
"useApifyProxy": false
}
}

The Actor reads anonymous, public Spotify track pages. It does not log in, call the official Web API or audio-features endpoint, capture Web Player tokens, download audio, decode audio, or solve access challenges.

Output

The dataset contains one row per saved track. Optional values are omitted rather than inferred, and no diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordIdstringAlwaysStable key in the form spotify_track_<trackId>.
recordTypestringAlwaysRow discriminator; always track.
scrapedAtstringAlwaysTime the row was saved, in ISO UTC.
trackIdstringAlways22-character public Spotify track ID.
namestringAlwaysTrack title rendered on the public page.
spotifyUrlstringAlwaysCanonical https://open.spotify.com/track/<id> URL.
artistsobject arrayWhen artist links are visibleLinked artists with artistId, name, and spotifyUrl.
artistNamesstringWhen artist names are visibleComma-separated artist names.
albumstringWhen the track header exposes itAlbum title.
albumIdstringWhen an album link is visiblePublic album ID.
albumUrlstringWhen an album link is visiblePublic album URL.
imageUrlstringWhen og:image is exposedArtwork URL. It was not present in the saved run.
releaseYearintegerWhen renderedRelease year, at least 0.
durationMsintegerWhen renderedDuration in milliseconds, at least 0.
durationFormattedstringWhen renderedDuration as displayed by Spotify.
playCountintegerWhen renderedPublic play count, at least 0.
audioFeaturesAvailablebooleanAlwaysAlways false for anonymous public pages; it is never inferred from audio.
audioFeaturesStatusstringAlwaysunavailable_public_page, not_requested, or preview_available_features_not_computed.
audioFeaturesNotestringAlwaysExplanation of the public-data boundary recorded for the row.
publicPreviewAvailablebooleanAlwaysWhether a public preview reference was visible.
publicPreviewUrlstringWhen preview tags are exposedPublic preview URL. It was not present in the saved run.
publicPreviewMimeTypestringWhen preview tags are exposedPreview MIME type. It was not present in the saved run.
publicPreviewDurationSecondsintegerWhen preview tags are exposedPreview duration in seconds, at least 0.
publicPreviewSourcestringWhen preview tags are exposedMetadata source for the preview reference.
previewMetricsStatusstringAlwaysmetadata_only_not_decoded when preview metadata exists; otherwise no_public_preview_metadata.
sourceUrlstringAlwaysExact public page URL that produced the row. Observed field not declared in dataset_schema.json.

The saved run observed no public preview tags, so publicPreviewUrl, publicPreviewMimeType, publicPreviewDurationSeconds, publicPreviewSource, and imageUrl are absent from its row. They remain declared schema fields and are emitted only when the page exposes them.

Full JSON output

The example below is a real saved row from the 2026-10-25 verification run.

{
"recordId": "spotify_track_3C0nOe05EIt1390bVABLyN",
"recordType": "track",
"scrapedAt": "2026-10-25T20:58:41.591Z",
"trackId": "3C0nOe05EIt1390bVABLyN",
"name": "On The Floor",
"spotifyUrl": "https://open.spotify.com/track/3C0nOe05EIt1390bVABLyN",
"artists": [
{
"artistId": "2DlGxzQSjYe5N6G9nkYghR",
"name": "Jennifer Lopez",
"spotifyUrl": "https://open.spotify.com/artist/2DlGxzQSjYe5N6G9nkYghR"
}
],
"artistNames": "Jennifer Lopez",
"album": "Love?",
"albumId": "3sysiYphqNRQw7VKLCg1yE",
"albumUrl": "https://open.spotify.com/album/3sysiYphqNRQw7VKLCg1yE",
"releaseYear": 2011,
"durationMs": 284000,
"durationFormatted": "4:44",
"playCount": 1313346286,
"audioFeaturesAvailable": false,
"audioFeaturesStatus": "unavailable_public_page",
"audioFeaturesNote": "Spotify public track pages exposed no public preview metadata; audio-feature vectors such as tempo, key, danceability, energy, or valence are unavailable.",
"publicPreviewAvailable": false,
"previewMetricsStatus": "no_public_preview_metadata",
"sourceUrl": "https://open.spotify.com/track/3C0nOe05EIt1390bVABLyN"
}

Run summary

Run summary is stored in the run's key-value store under OUTPUT_SUMMARY; the same object is also written to OUTPUT. It records the outcome and the audio-feature and preview counts.

FieldMeaning
recordTypeAlways runSummary.
statusActor outcome: SUCCEEDED or FAILED.
requestedTrackCountTrack inputs requested.
trackRecordCountTrack records produced.
errorRecordCountTrack pages that failed extraction.
recordsStoredTrack rows saved to the dataset.
audioFeaturesAvailableCountRows with publicly available audio features; always 0 for this public-page workflow.
audioFeaturesUnavailableCountRows reporting no public audio-feature data.
publicPreviewObservedCountRows with a public preview reference.
previewMetricsComputedCountPreview metrics computed; always 0 because previews are metadata-only.
includeAudioFeaturesAudio-feature reporting setting used for the run.
authenticationModeAlways anonymous_public_page.
sourceTransportTransport description recorded for the run.
startedAtRun start time, in ISO UTC.
completedAtTime the summary was written, in ISO UTC.
durationMsRun duration in milliseconds.
runStatusCanonical run status; matches status.
dataStatusCompleteness of saved rows: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
failureCountOperational failures and failed dataset writes.
outputWriteFailureCountSummary or optional key-value writes that failed.
StatusData statusMeaning
SUCCEEDEDCOMPLETEEvery requested track produced a row without an extraction problem.
SUCCEEDEDPARTIALAt least one row was saved, but another track or output write failed. Saved rows remain available.
SUCCEEDEDNO_RESULTSThe run completed cleanly and produced no track rows.
FAILEDFAILEDThe run failed before any usable track row was saved.

Example OUTPUT_SUMMARY from the saved run (also written to OUTPUT):

{
"recordType": "runSummary",
"status": "SUCCEEDED",
"requestedTrackCount": 1,
"trackRecordCount": 1,
"errorRecordCount": 0,
"recordsStored": 1,
"audioFeaturesAvailableCount": 0,
"audioFeaturesUnavailableCount": 1,
"publicPreviewObservedCount": 0,
"previewMetricsComputedCount": 0,
"includeAudioFeatures": true,
"authenticationMode": "anonymous_public_page",
"sourceTransport": "anonymous Chromium public page",
"startedAt": "2026-10-25T20:58:28.832Z",
"completedAt": "2026-10-25T20:58:42.105Z",
"durationMs": 13273,
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"failureCount": 0,
"outputWriteFailureCount": 0
}

Coverage and limitations

The Actor reads public track-page metadata only. Spotify's anonymous public pages do not expose its audio-feature vector, so audioFeaturesAvailable is always false and no tempo, key, danceability, energy, valence, loudness, or similar value is calculated or guessed. includeAudioFeatures controls whether this availability outcome is reported; it does not call the official audio-features API.

Preview fields are limited to references visible in public page metadata such as og:audio and music:duration. When such metadata is absent, the preview fields are omitted and previewMetricsStatus reports no_public_preview_metadata; the Actor never downloads or decodes audio. Duration, play count, release year, album context, and artwork are page-dependent. Failed track pages are counted in the summary and logged, never written as data rows.

Usage and support

Apify compute and storage costs vary with browser time and the number of track pages. Start with a few tracks, inspect the dataset and run summary, then scale gradually. 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 OUTPUT_SUMMARY; do not include tokens, cookies, or private data. This Actor is an independent community tool and is not affiliated with, endorsed by, or sponsored by Spotify. Use it only for public data and in accordance with Spotify's terms, robots guidance, and applicable law.