Spotify Genre Playlist Search and Discovery Scraper avatar

Spotify Genre Playlist Search and Discovery Scraper

Pricing

from $2.99 / 1,000 genres

Go to Apify Store
Spotify Genre Playlist Search and Discovery Scraper

Spotify Genre Playlist Search and Discovery Scraper

Search Spotify rendered public playlist results for genre terms and return bounded source-backed playlist cards with optional public detail enrichment; market is recorded context only.

Pricing

from $2.99 / 1,000 genres

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 days ago

Last modified

Categories

Features

Limited permissions

Share

Search Spotify's public web player for playlist results matching up to six genre terms. The Actor preserves the producing search URL and rendered position, removes duplicate playlist IDs across terms, and can open a bounded number of public playlist detail pages for owner, save-count, song-count, and duration fields.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Set genres or keep the six default terms; set market only as output context.
  3. Keep maxItems small and leave includeDetails on if you need owner and count metadata.
  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

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

FieldTypeRequired?DefaultMeaning
genresstring arrayOptional["pop","mood","hip-hop","latin","classical","ambient"]One to six public Spotify playlist-search terms, searched in order. Duplicate playlist IDs are removed globally.
marketstringOptionalUSTwo-letter context retained in each result. The public search route is not market-filtered by this Actor, so marketApplied is always false.
maxItemsintegerOptional10Global maximum rows across all genre terms and scroll passes, 1–50.
maxPagesintegerOptional1Maximum bounded scroll passes per genre search, 1–3. This is not a URL page number.
includeDetailsbooleanOptionaltrueVisit public playlist detail pages for up to maxDetailItems selected records.
maxDetailItemsintegerOptional2Global maximum detail pages, 0–10. A detail failure preserves the search record.
requestDelayMsintegerOptional250Minimum delay after scrolling and between retry attempts, 0–5000 ms.
timeoutSecsintegerOptional45Bounded timeout for each public navigation and main-content wait, 10–90 seconds.
maxRetriesintegerOptional1Finite retries for transient public-page failures, 0–2. Access challenges, redirects, size failures, and explicit 4xx responses are not retried.
maxResponseBytesintegerOptional2000000Maximum rendered HTML size inspected per page, 100000–5000000 bytes.

Full default input:

{
"genres": [
"pop",
"mood",
"hip-hop",
"latin",
"classical",
"ambient"
],
"market": "US",
"maxItems": 10,
"maxPages": 1,
"includeDetails": true,
"maxDetailItems": 2,
"requestDelayMs": 250,
"timeoutSecs": 45,
"maxRetries": 1,
"maxResponseBytes": 2000000
}

The Actor reads anonymous, public Spotify search and playlist pages. It does not log in, call the official Web API, capture Web Player tokens, download audio, or bypass access challenges.

Output

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

FieldTypeAvailabilityMeaning
recordIdstringAlwaysStable key derived from the normalized genre query and playlist ID.
recordTypestringAlwaysRow discriminator; always genrePlaylistSearchResult.
genreQuerystringAlwaysUser-supplied genre term that produced the search URL.
genreQueryNormalizedstringAlwaysLowercase form used in record identity and deduplication.
requestedMarketstringAlwaysMarket context supplied by the user; it is not applied to Spotify's public search route.
marketAppliedbooleanAlwaysAlways false for this public search workflow.
searchUrlstringAlwaysRendered public Spotify search URL that produced the result.
searchPageintegerAlwaysScroll pass that produced the result, at least 1.
positionintegerAlwaysOne-based position in the observed rendered search list, at least 1.
playlistIdstringAlways22-character public Spotify playlist ID.
namestringAlwaysPlaylist name visible in the search card.
ownerNamestringWhen the card or detail page shows itPublic playlist owner name.
ownerIdstringWhen the detail page exposes itPublic Spotify user identifier.
ownerUrlstringWhen the detail page exposes itPublic Spotify user URL.
spotifyUrlstringAlwaysCanonical https://open.spotify.com/playlist/<id> URL.
imageUrlstringWhen the search card shows artworkPublic playlist artwork URL.
declaredSaveCountintegerWhen a detail page exposes a save countDeclared save count, at least 0.
declaredItemCountintegerWhen a detail page exposes an item countDeclared song or item count, at least 0.
trackCountintegerWhen a detail page exposes an item countAlias of the publicly declared song count; not inferred from a partial track list.
durationHoursnumberWhen the detail page shows an hour valuePlaylist duration in hours, at least 0.
durationTextstringWhen the detail page shows durationSource text for the displayed duration.
isPublicPlaylistbooleanWhen the detail page labels itWhether the playlist is explicitly labeled public.
detailRequestedbooleanAlwaysWhether this result used one of the bounded detail-page slots.
detailEnrichedbooleanAlwaysWhether public detail-page fields were successfully read.
detailStatusstringAlwaysnot_requested, available, or failed.
detailErrorCodestringWhen detail enrichment failsStable bounded error code.
detailErrorMessagestringWhen detail enrichment failsBounded non-secret error message.
scrapedAtstringAlwaysTime the normalized result was emitted, in ISO UTC.

Full JSON output

The example below is a real saved row from the 2026-10-25 verification run. Detail fields appear only on rows that received one of the bounded detail-page slots.

{
"recordId": "spotify_genre_pop_1lvD3XTXCHx0VjXNbl49XF",
"recordType": "genrePlaylistSearchResult",
"genreQuery": "pop",
"genreQueryNormalized": "pop",
"requestedMarket": "US",
"marketApplied": false,
"searchUrl": "https://open.spotify.com/search/pop/playlists",
"searchPage": 1,
"position": 1,
"playlistId": "1lvD3XTXCHx0VjXNbl49XF",
"name": "POP LATINO : 90s, 2000s & 2010s Hits",
"ownerName": "Filtr Éxitos",
"ownerId": "mejoresplaylistsspotify",
"ownerUrl": "https://open.spotify.com/user/mejoresplaylistsspotify",
"spotifyUrl": "https://open.spotify.com/playlist/1lvD3XTXCHx0VjXNbl49XF",
"imageUrl": "https://image-cdn-fa.spotifycdn.com/image/ab67706c0000da849d3e6e99c5fc7f006c66232c",
"declaredSaveCount": 575141,
"declaredItemCount": 195,
"trackCount": 195,
"durationHours": 11,
"durationText": "11 hr",
"isPublicPlaylist": true,
"detailRequested": true,
"detailEnriched": true,
"detailStatus": "available",
"scrapedAt": "2026-10-25T21:03:35.369Z"
}

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 query, search, detail, and deduplication counts.

FieldMeaning
recordTypeAlways runSummary.
statusActor outcome: SUCCEEDED or FAILED.
requestedGenresGenre terms requested for the run.
requestedGenreCountNumber of requested genre terms.
genresSearchedGenre terms actually searched.
requestedMarketMarket context supplied by the user.
marketAppliedAlways false for this public search route.
maxItemsGlobal row limit used for the run.
maxPagesPerGenreScroll-pass limit used per genre.
includeDetailsWhether detail enrichment was requested.
maxDetailItemsDetail-page budget used for the run.
searchPagesProcessedSearch scroll passes processed.
searchCandidateCountPlaylist candidates observed before deduplication.
duplicateCountDuplicate playlist results removed.
detailRequestedCountDetail pages requested.
detailSuccessCountDetail pages enriched successfully.
detailFailureCountDetail pages that failed.
playlistRecordCountPlaylist records produced.
recordsStoredPlaylist rows saved to the dataset.
diagnosticCountOperational issues recorded for the run.
extractionModeFixed value rendered_public_spotify_search.
paginationModeFixed value bounded_scroll_passes_per_genre.
publicPagePolicyPublic-page boundary 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
SUCCEEDEDCOMPLETEEligible playlists were saved without an extraction problem.
SUCCEEDEDPARTIALAt least one row was saved, but a later search, detail page, or output write failed. Saved rows remain available.
SUCCEEDEDNO_RESULTSThe searches completed cleanly and returned no matching playlists.
FAILEDFAILEDThe run failed before any usable playlist row was saved.

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

{
"recordType": "runSummary",
"status": "SUCCEEDED",
"requestedGenres": [
"pop"
],
"requestedGenreCount": 1,
"genresSearched": 1,
"requestedMarket": "US",
"marketApplied": false,
"maxItems": 5,
"maxPagesPerGenre": 1,
"includeDetails": true,
"maxDetailItems": 2,
"searchPagesProcessed": 1,
"searchCandidateCount": 29,
"duplicateCount": 0,
"detailRequestedCount": 2,
"detailSuccessCount": 2,
"detailFailureCount": 0,
"playlistRecordCount": 5,
"recordsStored": 5,
"diagnosticCount": 0,
"extractionMode": "rendered_public_spotify_search",
"paginationMode": "bounded_scroll_passes_per_genre",
"publicPagePolicy": "anonymous rendered public Spotify pages only; no login, official Web API, token capture, audio download, or access-control bypass.",
"startedAt": "2026-10-25T21:03:28.422Z",
"completedAt": "2026-10-25T21:03:38.171Z",
"durationMs": 9749,
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"failureCount": 0,
"outputWriteFailureCount": 0
}

Coverage and limitations

Search uses Spotify's public /search/<genre>/playlists route, not an API endpoint. maxPages counts bounded scroll passes, not URL pages, and maxItems is global across all genre terms; later terms can therefore add fewer rows or none. Duplicate playlist IDs are removed across terms, keeping the first observed result.

Detail enrichment is optional and strictly budgeted by maxDetailItems. Owner IDs, save counts, song counts, durations, and public-status labels are available only when a detail page exposes them; a failed detail page leaves the usable search row in place with detailStatus: "failed". The Actor never reads playlist track lists.

market is recorded as requestedMarket but not applied: every row reports marketApplied: false, and rendered results can vary by locale, time, and Spotify's search ranking. Access challenges or empty pages are logged and counted, never converted into dataset rows.

Usage and support

Apify compute and storage costs vary with browser time, the number of genre terms and scroll passes, and how many detail pages are opened. Set includeDetails to false or maxDetailItems to 0 for a search-only run; start with one or two genres and a small maxItems, 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.