Spotify Typed Multi-Entity Search Results avatar

Spotify Typed Multi-Entity Search Results

Pricing

from $2.99 / 1,000 search results

Go to Apify Store
Spotify Typed Multi-Entity Search Results

Spotify Typed Multi-Entity Search Results

Search rendered public Spotify search pages for typed artist, track, album, playlist, show, and episode cards with independent per-type limits, stable IDs, and reconciled counts.

Pricing

from $2.99 / 1,000 search results

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Search one public Spotify search page and collect visible artist, track, album, playlist, show, and episode cards in a typed dataset. Each row carries an explicit entity type, stable 22-character entity ID, per-type position, search query, market context, and the public search URL used for the result.

Get started

  1. Open the Actor Store page and select Try for free, or open the Input tab.
  2. Enter a non-empty query and choose a type, or keep type: "all" for all six supported entity types.
  3. Set maxItems for the number of rows per type and keep the scroll and timeout limits small for the first run.
  4. Start the Actor and open the dataset. Export the rows as JSON, CSV, or Excel. Open Run summary (OUTPUT_SUMMARY) to check the outcome and counts.

Input

query is required. All other fields are optional. Unsupported field names and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
querystringRequiredNot suppliedNon-empty Spotify search text. 1–200 characters.
typestring enumOptional"all"Return one type or all six: artist, track, album, playlist, show, episode, or all.
marketstringOptional"US"Two-letter context retained in each row. Public-page search does not apply market filtering.
maxItemsintegerOptional10Maximum rows emitted independently for every requested entity type. 1–1000 per type.
maxScrollPassesintegerOptional3Bounded rendered-page scroll passes used to discover more result cards. 1–20.
timeoutSecsintegerOptional60Timeout for public page navigation and visible content, in seconds. 10–180.
maxResponseBytesintegerOptional8000000Maximum rendered HTML size accepted for the search page. 200000–15000000.
requestDelayMsintegerOptional500Delay between bounded scroll passes, in milliseconds. 0–5000.
maxRetriesintegerOptional1Maximum retries for transient public-page failures. 0–2.

Full default input:

{
"type": "all",
"market": "US",
"maxItems": 10,
"maxScrollPasses": 3,
"timeoutSecs": 60,
"maxResponseBytes": 8000000,
"requestDelayMs": 500,
"maxRetries": 1
}

The default input omits the required query field; supply a search phrase before running. The Actor reads anonymous public search pages. It does not use the Spotify Web API, credentials, login sessions, Web Player tokens, audio downloads, CAPTCHA solving, or access-control bypasses.

Output

The dataset contains one searchResult row per unique visible card. maxItems is applied separately to each requested type, and position restarts at 1 for each type. Optional information is omitted when the source does not publish it, and no diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordIdstringAlwaysStable type-scoped record ID.
recordTypestringAlwaysRow discriminator, always searchResult.
entityTypestring enumAlwaysartist, track, album, playlist, show, or episode.
entityIdstringAlways22-character Spotify entity ID.
namestringAlwaysVisible public result name.
urlstringAlwaysCanonical public Spotify entity URL.
positionintegerAlwaysOne-based position within the requested entity type.
searchQuerystringAlwaysNormalized query used for the public search page.
marketstringAlwaysRequested two-letter market context.
marketAppliedbooleanAlwaysAlways false; public-page search does not apply market filtering.
imageUrlstringWhen publishedVisible Spotify CDN artwork URL.
descriptionstringWhen publishedVisible card text.
artistNamesstringWhen publishedVisible artist names for track or album cards.
artistIdsstring arrayWhen publishedVisible artist IDs.
albumNamestringWhen publishedVisible album context.
albumIdstringWhen publishedVisible album context ID.
releaseDatestringWhen publishedVisible release year when present.
durationFormattedstringWhen publishedVisible duration in minutes:seconds form.
explicitbooleanWhen publishedVisible explicit marker.
ownerNamestringWhen publishedVisible playlist owner.
totalItemsintegerWhen publishedVisible playlist, show, or episode item count.
sourceUrlstringAlwaysPublic search page used for the row.
scrapedAtstringAlwaysTime the row was saved, in ISO UTC.

Full JSON output

The example below is an unchanged album row saved by the 2026-10-25 run. Fields such as durationFormatted and totalItems appear only for card types that expose them.

{
"recordId": "spotify_search_album_4Lkkfpt8ZkDmw4viHHi0IM",
"recordType": "searchResult",
"entityType": "album",
"entityId": "4Lkkfpt8ZkDmw4viHHi0IM",
"name": "PITCOIN",
"url": "https://open.spotify.com/album/4Lkkfpt8ZkDmw4viHHi0IM",
"position": 1,
"searchQuery": "Pitbull",
"market": "US",
"marketApplied": false,
"imageUrl": "https://i.scdn.co/image/ab67616d00001e02fb5868a9fc3d54f8f0b95b0a",
"description": "PITCOIN 2026 • Pitbull",
"artistNames": "Pitbull",
"artistIds": [
"0TnOYISbd1XYRBk9myaseg"
],
"albumName": "PITCOIN",
"albumId": "4Lkkfpt8ZkDmw4viHHi0IM",
"sourceUrl": "https://open.spotify.com/search/Pitbull",
"scrapedAt": "2026-10-25T21:06:13.735Z"
}

Run summary

Run summary is stored in the run's key-value store under OUTPUT_SUMMARY. The same object is mirrored to OUTPUT for compatibility.

FieldMeaning
recordTypeAlways runSummary.
statusActor process outcome: SUCCEEDED or FAILED.
querySearch query used.
requestedTypeRequested type value.
requestedEntityTypesEntity types requested.
allModeEntityTypesEntity types covered by type: "all".
outputTypesCompleteWhether every requested type reached its declared limit.
marketRequested market context.
marketAppliedWhether market filtering was applied; always false.
maxItemsPerTypeEffective per-type row limit.
maxScrollPassesConfigured scroll bound.
declaredMaxItemsByTypePer-type row limit declared for the run.
recordsByTypeRows saved for each entity type.
recordTypesEmittedEntity types that produced rows.
resultRecordCountResult rows produced.
uniqueResultCountUnique results after deduplication.
deduplicatedCountDuplicate cards removed.
recordsStoredRows saved to the dataset.
errorRecordCountError records; diagnostics are kept out of the dataset.
searchUrlPublic search URL used.
searchPagesProcessedSearch pages processed.
searchCandidateCountCards observed before deduplication and limits.
rowsObservedAcrossScrollPassesRows seen across scroll passes.
searchScrollPassesScroll passes performed.
paginationModePagination method used.
deduplicationKeyKey used to deduplicate results.
authenticationModeExtraction mode, anonymous_public_page in the saved run.
credentialFieldsIgnoredWhether supplied compatibility credentials were ignored.
startedAtRun start time, in ISO UTC.
completedAtTime the summary was written, in ISO UTC.
durationMsRun duration in milliseconds.
runStatusCanonical run status; matches status.
dataStatusCOMPLETE, PARTIAL, NO_RESULTS, or FAILED.
failureCountOperational and dataset-write failures.
outputWriteFailureCountSummary or optional key-value writes that failed.
StatusData statusMeaning
SUCCEEDEDCOMPLETEEvery requested type was collected to its declared limit without an extraction problem.
SUCCEEDEDPARTIALRows were saved, but at least one requested type was short or a later problem occurred.
SUCCEEDEDNO_RESULTSThe search completed cleanly with no visible matching cards.
FAILEDFAILEDA fatal error occurred before any usable row was saved.

Example OUTPUT_SUMMARY from the saved run:

{
"recordType": "runSummary",
"status": "SUCCEEDED",
"query": "Pitbull",
"requestedType": "all",
"requestedEntityTypes": [
"artist",
"track",
"album",
"playlist",
"show",
"episode"
],
"allModeEntityTypes": [
"artist",
"track",
"album",
"playlist",
"show",
"episode"
],
"outputTypesComplete": true,
"market": "US",
"marketApplied": false,
"maxItemsPerType": 3,
"maxScrollPasses": 2,
"declaredMaxItemsByType": {
"artist": 3,
"track": 3,
"album": 3,
"playlist": 3,
"show": 3,
"episode": 3
},
"recordsByType": {
"artist": 3,
"track": 3,
"album": 3,
"playlist": 3,
"show": 3,
"episode": 3
},
"recordTypesEmitted": [
"artist",
"track",
"album",
"playlist",
"show",
"episode"
],
"resultRecordCount": 18,
"uniqueResultCount": 18,
"deduplicatedCount": 0,
"recordsStored": 18,
"errorRecordCount": 0,
"searchUrl": "https://open.spotify.com/search/Pitbull",
"searchPagesProcessed": 1,
"searchCandidateCount": 18,
"rowsObservedAcrossScrollPasses": 77,
"searchScrollPasses": 0,
"paginationMode": "bounded_rendered_scroll_passes",
"deduplicationKey": "entityType:entityId",
"authenticationMode": "anonymous_public_page",
"credentialFieldsIgnored": false,
"startedAt": "2026-10-25T21:06:08.602Z",
"completedAt": "2026-10-25T21:06:14.208Z",
"durationMs": 5606,
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"failureCount": 0,
"outputWriteFailureCount": 0
}

Coverage and limitations

The Actor loads one public search route and reads the rendered cards that Spotify exposes. maxItems is a per-type limit, not a global total; type: "all" can therefore save up to six times that limit. position is relative to its own type. Results are deduplicated by entityType:entityId, and outputTypesComplete is the reliable signal that every requested type reached its declared limit.

The page exposes only the cards Spotify renders and scroll loading makes visible. The Actor does not paginate beyond the configured scroll passes, open every entity page, or recover hidden results. A type can be short or empty without meaning the catalog has no matches. market is retained as context only. The Actor stops or records a diagnostic when Spotify redirects away from the search route, presents an access challenge, exceeds the byte limit, or returns an HTTP failure. Optional card fields are omitted when absent and are never inferred.

Usage and support

A run is anchored on one search page, so type: "all" can be more efficient than separate runs for each type. Cost varies with browser startup, query latency, page size, scroll passes, and the number of saved rows. Start with maxItems around 10 and a small scroll budget. 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, sponsored by, or endorsed by Spotify. Use it only for public data and in accordance with Spotify's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.