Spotify Balanced Multi-Type Search Scraper avatar

Spotify Balanced Multi-Type Search Scraper

Pricing

from $2.99 / 1,000 trending searches

Go to Apify Store
Spotify Balanced Multi-Type Search Scraper

Spotify Balanced Multi-Type Search Scraper

Interleave official Spotify artist, track, album, and playlist search results without claiming a trend metric.

Pricing

from $2.99 / 1,000 trending searches

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

Interleave visible artist, track, album, and playlist cards from one public Spotify search into a balanced round-robin dataset. Every row carries a balancedRank, an explicit rankBasis, and a clear statement that the ordering is search presentation order rather than a proprietary trend or popularity score.

Get started

  1. Open the Actor Store page and select Try for free, or open the Input tab.
  2. Enter a non-empty query.
  3. Set maxItems to the total number of balanced rows you want. Keep the browser 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.
marketstringOptional"US"Two-letter market label recorded in output. The public page is read anonymously.
maxItemsintegerOptional40Total balanced cap across the four supported result types. 1–40.
clientIdstringOptionalNot suppliedAccepted for backward compatibility but ignored. Public anonymous-page extraction is always used. Up to 200 characters.
clientSecretstringOptionalNot suppliedAccepted for backward compatibility but ignored. Public anonymous-page extraction is always used. Stored as a secret.
timeoutSecsintegerOptional30Per-request timeout, in seconds. 5–60.
maxResponseBytesintegerOptional2000000Maximum bytes accepted per response. 100000–5000000.
requestDelayMsintegerOptional500Delay before public-page navigation, in milliseconds. 0–30000.
maxRequestRetriesintegerOptional1Maximum retries for a failed public-page request. 0–3.
proxyConfigurationobjectOptional{"useApifyProxy":false}Optional Apify Proxy configuration for public pages.

Full default input:

{
"market": "US",
"maxItems": 40,
"timeoutSecs": 30,
"maxResponseBytes": 2000000,
"requestDelayMs": 500,
"maxRequestRetries": 1,
"proxyConfiguration": {
"useApifyProxy": false
}
}

The default input omits the required query field; supply a search phrase before running. clientId and clientSecret do not enable the official Web API and are not used for extraction. The Actor reads anonymous public search pages without login, token capture, audio download, or access-control bypass.

Output

The dataset contains one balancedSearchResult row per saved card, interleaved across the result types Spotify exposes. Optional card fields are omitted when absent, and no diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordIdstringAlwaysStable Actor record key.
recordTypestringAlwaysRow discriminator, always balancedSearchResult.
entityTypestring enumAlwaysResult type: artist, track, album, or playlist.
entityIdstringAlways22-character public Spotify entity ID.
namestringAlwaysVisible public result name.
urlstringAlwaysCanonical public Spotify entity URL.
imageUrlstringWhen publishedVisible Spotify-hosted artwork URL.
artistNamesstringWhen publishedVisible artist names joined as a comma-separated string.
albumNamestringWhen publishedVisible album name.
albumIdstringWhen publishedPublic Spotify album ID when the card exposes an album link.
releaseDatestringWhen publishedVisible release year, year-month, or full date.
durationFormattedstringWhen publishedVisible track duration in minutes:seconds form.
querystringAlwaysNormalized public Spotify search query.
marketstringAlwaysNormalized requested market label.
balancedRankintegerAlwaysOne-based rank after round-robin interleaving across result types.
rankBasisstringAlwaysOrdering basis, always publicSearchOrderRoundRobin; not a trend score.
sourceUrlstringAlwaysRendered public Spotify search URL 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. The balancedRank is the interleaved order, not an album chart position.

{
"entityType": "album",
"entityId": "4Lkkfpt8ZkDmw4viHHi0IM",
"name": "PITCOIN",
"url": "https://open.spotify.com/album/4Lkkfpt8ZkDmw4viHHi0IM",
"imageUrl": "https://i.scdn.co/image/ab67616d00001e02fb5868a9fc3d54f8f0b95b0a",
"artistNames": "Pitbull",
"albumName": "PITCOIN",
"albumId": "4Lkkfpt8ZkDmw4viHHi0IM",
"recordId": "spotify_trending_search_album_4Lkkfpt8ZkDmw4viHHi0IM",
"recordType": "balancedSearchResult",
"query": "Pitbull",
"market": "US",
"balancedRank": 3,
"rankBasis": "publicSearchOrderRoundRobin",
"sourceUrl": "https://open.spotify.com/search/Pitbull",
"scrapedAt": "2026-10-25T20:47:49.692Z"
}

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.
runStatusCanonical run status; matches status.
dataStatusCOMPLETE, PARTIAL, NO_RESULTS, or FAILED.
querySearch query used.
marketRequested market label.
maxItemsTotal balanced row cap.
perTypeLimitPer-type allocation used for the round-robin pass.
resultRecordCountResult rows produced.
recordsStoredRows saved to the dataset.
errorRecordCountError records; diagnostics are kept out of the dataset.
failureCountOperational and dataset-write failures.
isTrendMetricAlways false; the ordering is not a trend metric.
rankBasisOrdering basis, publicSearchOrderRoundRobin in the saved run.
authenticationModeExtraction mode, anonymous_public_page in the saved run.
credentialFieldsIgnoredWhether supplied compatibility credential fields were ignored.
startedAtRun start time, in ISO UTC.
completedAtTime the summary was written, in ISO UTC.
durationMsRun duration in milliseconds.
outputWriteFailureCountSummary or optional key-value writes that failed.
StatusData statusMeaning
SUCCEEDEDCOMPLETEBalanced rows were saved without an extraction problem.
SUCCEEDEDPARTIALRows were saved, but a later problem prevented a complete run. Saved rows remain available.
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",
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"query": "Pitbull",
"market": "US",
"maxItems": 4,
"perTypeLimit": 1,
"resultRecordCount": 4,
"recordsStored": 4,
"errorRecordCount": 0,
"failureCount": 0,
"isTrendMetric": false,
"rankBasis": "publicSearchOrderRoundRobin",
"authenticationMode": "anonymous_public_page",
"credentialFieldsIgnored": false,
"startedAt": "2026-10-25T20:47:37.508Z",
"completedAt": "2026-10-25T20:47:50.450Z",
"durationMs": 12942,
"outputWriteFailureCount": 0
}

Coverage and limitations

The Actor loads one public search page and interleaves the artist, track, album, and playlist cards that Spotify renders. maxItems is a total cap across those four types, not a per-type cap; the run summary records the resulting perTypeLimit. balancedRank is only the order produced by the round-robin pass and must not be presented as a trend, popularity, or chart metric.

The public page exposes a finite set of cards. The Actor does not paginate beyond the configured page actions, open every entity page, or infer missing results. A type can have fewer cards than its allocation. market is recorded as a label; the extraction path is the anonymous public page. Credential fields are accepted only for input compatibility and are ignored. Optional artwork, artist, album, release-date, and duration fields are omitted when the card does not expose them. Access challenges, redirects, and page changes cannot be recovered.

Usage and support

A run uses one search page, so cost is driven mainly by browser startup, page size, navigation delay, and the number of retained rows. Start with a small maxItems value and inspect the balanced order before scaling. 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.