Spotify Music Catalog, Stats & Playlist Extractor avatar

Spotify Music Catalog, Stats & Playlist Extractor

Pricing

from $0.49 / 1,000 results

Go to Apify Store
Spotify Music Catalog, Stats & Playlist Extractor

Spotify Music Catalog, Stats & Playlist Extractor

Export public Spotify catalog data without a login or developer key: artist audience stats, album and track play counts, full playlists and keyword search. Paste mixed Spotify URLs or URIs, or search the catalog, then export nested entity rows or one flat row per track.

Pricing

from $0.49 / 1,000 results

Rating

0.0

(0)

Developer

Xyrelith Data

Xyrelith Data

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Export public Spotify music data without a Spotify account, cookies or developer API key. This actor reads the same anonymous catalog the Spotify web player uses and returns clean records for artists, albums, tracks and playlists — including monthly listeners, exact play counts, top cities and full track lists.

Two ways to run it

Search the catalog. Enter a keyword, choose tracks, artists, albums, playlists or a balanced mix of all four, and set how many rows you want. Search results are enriched into full records, not shallow search cards.

Scrape Spotify links or URIs. Paste any mix of artist, album, track and playlist links in one list. Examples:

  • https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02
  • spotify:album:2fenSS68JI1h4Fo296JfGr
  • https://open.spotify.com/intl-de/track/11dFghVXANMlKmJXsNCbNl
  • spotify:playlist:37i9dQZF1DXcBWIGoYBM5M

An artist link can optionally expand into every album, single/EP, compilation, appears-on release and related artist as separate dataset rows.

Output layouts

  • One row per entity keeps an artist, album, track or playlist in one record and nests its track list. Use this for JSON integrations and browsing.
  • One row per track emits album tracks, playlist tracks and artist top tracks as flat records with parentType, parentId, playlistPosition or rowPosition and addedAt where relevant. Use this for CSV/Excel play-count tables.

Inputs

InputTypeDefaultWhat it does
modeselect"search"Search the catalog or scrape pasted links.
searchQuerytext"Taylor Swift"Keyword used in search mode.
searchTypeselect"track"Track, artist, album, playlist or a balanced all-types mix.
spotifyUrlsstring list[]Mixed Spotify URLs or URIs for link mode.
maxItemsinteger100Hard cap on dataset rows for the whole run.
maxItemsPerInputinteger100Row cap for each pasted link (link mode only).
maxTracksPerPlaylistinteger500Playlist track cap, paged 100 at a time.
outputLayoutselect"entity"Nested entity rows or flat track rows.
includeTrackPlayCountsbooleantrueInclude exact per-track play counts and totals.
includeArtistTopCitiesbooleantrueInclude the artist's top listener cities.
expandArtistAlbumsbooleanfalseEmit every album for an artist link.
expandArtistSinglesbooleanfalseEmit every single and EP for an artist link.
expandArtistCompilationsbooleanfalseEmit every compilation for an artist link.
expandArtistAppearsOnbooleanfalseEmit every release the artist appears on.
expandArtistRelatedbooleanfalseEmit full records for related artists.

mode is the only required input. Every other field has a working default.

Fields per record

RecordFields
ArtistartistId, name, url, uri, verified, followers, monthlyListeners, worldRank, topCities, topTracks, biography, externalLinks, avatarUrl, headerImageUrl, galleryImageUrls, albumCount, singleCount, compilationCount, popularReleaseCount, latestRelease, relatedArtists, relatedArtistTotal, appearsOnCount, artistPlaylists, discoveredOnPlaylists, featuringPlaylists
AlbumalbumId, name, type, releaseDate, label, copyrights, artists, coverUrl, totalTracks, tracks, discs, totalPlayCount, totalDurationMs, moreAlbumsByArtist, releases, isPlayable, isPreRelease, sharingUrl
TracktrackId, name, artists, albumId, albumName, albumType, releaseDate, durationMs, explicit, playCount, trackNumber, discNumber, mediaType, contentRating, isPlayable, coverUrl, copyrights
PlaylistplaylistId, name, description, ownerName, ownerUsername, ownerUrl, ownerAvatarUrl, followers, totalTracks, coverUrl, format, isEditorial, tracks, totalPlayCount, totalDurationMs, sharingUrl

Every dataset row also carries recordType, sourceUrl and scrapedAt. Nested track objects include trackId, name, url, artists, album*, releaseDate, durationMs, explicit, trackNumber, discNumber, playCount, mediaType, contentRating and isPlayable when Spotify publishes them. Search rows add searchQuery, searchType and searchRank.

Examples

Search tracks:

{
"mode": "search",
"searchQuery": "Taylor Swift",
"searchType": "track",
"maxItems": 20
}

Scrape a mixed list and expand an artist:

{
"mode": "byUrls",
"spotifyUrls": [
"spotify:artist:06HL4z0CvFAxyc27GXpf02",
"spotify:playlist:37i9dQZF1DX4UtSsGT1Sbe"
],
"expandArtistAlbums": true,
"expandArtistSingles": true,
"maxTracksPerPlaylist": 1000,
"outputLayout": "entity",
"maxItems": 200
}

Flat playlist table:

{
"mode": "byUrls",
"spotifyUrls": ["spotify:playlist:37i9dQZF1DXcBWIGoYBM5M"],
"outputLayout": "track",
"maxTracksPerPlaylist": 500
}

How it works

The actor obtains a short-lived anonymous session from Spotify's public embed page, falling back to the public token endpoint. It then calls Spotify's own persisted GraphQL operations for search, artist overview, album tracks, single tracks and playlist pages. Persisted-query hashes are refreshed from the current web-player bundle at startup, with bundled fallbacks for the operations the bundle loads lazily. No user login, cookie, proxy setup or developer app is needed.

Notes and honest limits

  • Spotify search returns at most about 1,000 results per entity type. Narrow the keyword, or run several searches, to reach deeper catalogs.
  • Spotify exposes at most 50 appears-on releases on an artist profile. The artist record still reports the full appearsOnCount from Spotify's catalog count.
  • The catalog follows the runner's network location. There is no input that changes Spotify's market: extra market/locale variables and headers were tested and do not alter results. The actor reports Spotify's own isPlayable flag for each track and album.
  • Playlists are paged 100 tracks at a time and can be read far beyond 1,000 tracks. Raise maxTracksPerPlaylist for very long playlists; totalTracks always reports the full length even when the emitted track list is capped.
  • Some artists genuinely lack a public biography, header image, top-city data or external links. Those fields are omitted for that record rather than filled with placeholders.
  • Audio features, lyrics, private listener demographics and email addresses are not part of the anonymous public payload and are not included.

Data source

Public Spotify web-player catalog responses. The actor is read-only, does not log in, and never writes to Spotify.