Spotify Data
v0.1.1Spotify 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.
search Search Spotify
Search the Spotify catalog by name to find ids for the other tools. `type` picks what to search: tracks, artists, albums or playlists. Returns up to `limit` hits (max 20) with id, name, key fields and open.spotify.com URL. For track searches, include_play_counts adds each hit's lifetime play count.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search text, e.g. 'Bad Bunny' or 'blinding lights the weeknd'. |
include_play_counts | boolean | Track searches only: add lifetime play counts (slightly slower). |
limit | integer | Number of results (1-20). |
type | string | What to search for. |
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.
| Parameter | Type | Description |
|---|---|---|
tracks * | array | Spotify track ids, spotify:track:<id> URIs or open.spotify.com/track/<id> URLs (1-50). |
include_insights | boolean | Add genres, moods, BPM, credits and languages (slower). |
include_play_counts | boolean | Add 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.
| Parameter | Type | Description |
|---|---|---|
tracks * | array | Spotify 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.
| Parameter | Type | Description |
|---|---|---|
tracks * | array | Spotify 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.
| Parameter | Type | Description |
|---|---|---|
artists * | array | Spotify 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.
| Parameter | Type | Description |
|---|---|---|
artist * | string | Spotify artist id, spotify:artist:<id> URI or open.spotify.com/artist/<id> URL. |
top_tracks | integer | How 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.
| Parameter | Type | Description |
|---|---|---|
artists * | array | Spotify 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.
| Parameter | Type | Description |
|---|---|---|
album * | string | Spotify album id, spotify:album:<id> URI or open.spotify.com/album/<id> URL. |
include_play_counts | boolean | Add 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).
| Parameter | Type | Description |
|---|---|---|
playlist * | string | Spotify playlist id, spotify:playlist:<id> URI or open.spotify.com/playlist/<id> URL. |
include_play_counts | boolean | Add each track's lifetime play count. |
limit | integer | Tracks to return (1-100). |
offset | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
chart | string | Which chart. |
country | string | 'global' or a 2-letter country code, e.g. 'us', 'br', 'mx'. |
date | Chart date YYYY-MM-DD; omit for the latest published chart. | |
include_play_counts | boolean | top_tracks / viral_tracks: add each track's lifetime play count (slower). |
limit | integer | Entries to return (1-200). |
period | string | Daily 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.
| Parameter | Type | Description |
|---|---|---|
isrc * | string | 12-character ISRC; spaces and dashes are ignored. |