Spotify Data

v0.1.1
cc.checkleaked/spotify-data Checked 8 hours ago Published 1 month ago

Spotify play counts, monthly listeners, charts, artist stats, albums, playlists and ISRC lookup.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_tracks Get tracks

Track details for up to 50 tracks in one call: name, artists, album, release date, duration, explicit flag, popularity, ISRC and (by default) lifetime play count. include_insights adds genres, moods, activities, BPM, credits, lyrics flag and languages. A play count of 0 means fewer than 1,000 plays.

ParameterTypeDescription
tracks *arraySpotify track ids, spotify:track:<id> URIs or open.spotify.com/track/<id> URLs (1-50).
include_insightsbooleanAdd genres, moods, BPM, credits and languages (slower).
include_play_countsbooleanAdd each track's lifetime play count.

get_track_play_count Track play counts

Lifetime Spotify play counts (streams) for up to 50 tracks in one call, with track name, artists and release date. The fastest way to compare streams. A play count of 0 means fewer than 1,000 plays.

ParameterTypeDescription
tracks *arraySpotify track ids, spotify:track:<id> URIs or open.spotify.com/track/<id> URLs (1-50).

get_track_insights Track genres, moods and BPM

Genres, moods and activities (with Spotify's 0-1 weights), tempo in BPM, credits (writers, producers), lyrics flag and vocal languages for up to 50 tracks.

ParameterTypeDescription
tracks *arraySpotify track ids, spotify:track:<id> URIs or open.spotify.com/track/<id> URLs (1-50).

get_artists_stats Artist monthly listeners and stats

Monthly listeners, followers, world rank, popularity, genres and top 5 cities (with listener counts) for up to 50 artists in one call.

ParameterTypeDescription
artists *arraySpotify artist ids, spotify:artist:<id> URIs or open.spotify.com/artist/<id> URLs (1-50).

get_artist_overview Artist overview

One artist's profile: monthly listeners, followers, world rank, top cities, top tracks with play counts, latest release, discography counts, related artists, biography and social links.

ParameterTypeDescription
artist *stringSpotify artist id, spotify:artist:<id> URI or open.spotify.com/artist/<id> URL.
top_tracksintegerHow many top tracks to return (1-10).

get_artist_insights Artist genres, moods and BPM

An artist's sound profile from their top tracks: genres, moods and activities with 0-1 weights, and tempo (average, min, max BPM). Up to 20 artists per call.

ParameterTypeDescription
artists *arraySpotify artist ids, spotify:artist:<id> URIs or open.spotify.com/artist/<id> URLs (1-20).

get_album Get album

An album with its track list and (by default) every track's lifetime play count, plus the album total, release date, label, UPC and popularity.

ParameterTypeDescription
album *stringSpotify album id, spotify:album:<id> URI or open.spotify.com/album/<id> URL.
include_play_countsbooleanAdd each track's lifetime play count and the album total.

get_playlist Get playlist

A playlist's name, owner, followers and description, plus `limit` tracks (max 100) from `offset` with lifetime play counts. Use next_offset from the answer to page through long playlists (later pages skip the metadata and cost one request).

ParameterTypeDescription
playlist *stringSpotify playlist id, spotify:playlist:<id> URI or open.spotify.com/playlist/<id> URL.
include_play_countsbooleanAdd each track's lifetime play count.
limitintegerTracks to return (1-100).
offsetintegerIndex of the first track (0 = start).

get_chart Spotify charts

Spotify Charts by country: top_tracks (Top 200), viral_tracks (Viral 50, daily only), top_artists or top_albums. Each entry has rank, previous and peak rank, days (or weeks) on the chart, movement and, for top_tracks, the streams in that period. Defaults to the latest published daily chart.

ParameterTypeDescription
chartstringWhich chart.
countrystring'global' or a 2-letter country code, e.g. 'us', 'br', 'mx'.
dateChart date YYYY-MM-DD; omit for the latest published chart.
include_play_countsbooleantop_tracks / viral_tracks: add each track's lifetime play count (slower).
limitintegerEntries to return (1-200).
periodstringDaily or weekly chart (viral_tracks is daily only).

isrc_lookup Find tracks by ISRC

Find the Spotify track(s) for an ISRC (International Standard Recording Code), e.g. USUG11904206. Returns ids, names, artists, album and release date.

ParameterTypeDescription
isrc *string12-character ISRC; spaces and dashes are ignored.