Spotify
7 endpoints. All requests need an x-api-key header.
/v1/spotify/albumAlbum
Retrieves detailed information about a Spotify album by its id or URL, including album metadata, artists, release date, cover art, copyright info, tracks, and sharing details.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Spotify album id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 0pgrg7phBbnwGJ2HBEl9EG |
url | string | Spotify album URL. If you'd prefer to use the id instead, you can use the id parameter instead. Example: https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/spotify/album?id=0pgrg7phBbnwGJ2HBEl9EG&url=https%3A%2F%2Fopen.spotify.com%2Falbum%2F0pgrg7phBbnwGJ2HBEl9EG" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/spotify/album?id=0pgrg7phBbnwGJ2HBEl9EG&url=https%3A%2F%2Fopen.spotify.com%2Falbum%2F0pgrg7phBbnwGJ2HBEl9EG", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/spotify/album",
params={"id": "0pgrg7phBbnwGJ2HBEl9EG", "url": "https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/spotify/artistArtist
Retrieves detailed information about a Spotify artist by their handle, including name, followers count, genres, and related artists. Accepts a handle as input and returns artist metadata such as id, name, followers, genres, and related artists.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Spotify artist id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 0cGUm45nv7Z6M6qdXYQGTX |
url | string | Spotify artist URL. If you'd prefer to use the id instead, you can use the id parameter instead. Example: https://open.spotify.com/artist/0cGUm45nv7Z6M6qdXYQGTX |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/spotify/artist?id=0cGUm45nv7Z6M6qdXYQGTX&url=https%3A%2F%2Fopen.spotify.com%2Fartist%2F0cGUm45nv7Z6M6qdXYQGTX" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/spotify/artist?id=0cGUm45nv7Z6M6qdXYQGTX&url=https%3A%2F%2Fopen.spotify.com%2Fartist%2F0cGUm45nv7Z6M6qdXYQGTX", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/spotify/artist",
params={"id": "0cGUm45nv7Z6M6qdXYQGTX", "url": "https://open.spotify.com/artist/0cGUm45nv7Z6M6qdXYQGTX"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/spotify/playlistPlaylist
Retrieves public Spotify playlist metadata and up to 50 tracks by playlist id or URL. For playlists with more tracks, pass the returned cursor into the next request until cursor is null.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Spotify playlist id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 37i9dQZF1DX4UtSsGT1Sbe |
url | string | Spotify playlist URL. If you'd prefer to use the id instead, you can use the id parameter instead. Example: https://open.spotify.com/playlist/37i9dQZF1DX4UtSsGT1Sbe |
cursor | string | Cursor returned by the previous response. Omit it for the first page. Example: 50 |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/spotify/playlist" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/spotify/playlist", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/spotify/playlist",
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/spotify/podcastPodcast
Retrieves detailed information about a Spotify podcast by its id or URL. Spotify calls podcasts shows internally, so Spotify podcast URLs use /show/.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Spotify podcast id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 3mliji9352UAk3XnWElnDV |
url | string | Spotify podcast URL. If you'd prefer to use the id instead, you can use the id parameter instead. Example: https://open.spotify.com/show/3mliji9352UAk3XnWElnDV |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/spotify/podcast?id=3mliji9352UAk3XnWElnDV&url=https%3A%2F%2Fopen.spotify.com%2Fshow%2F3mliji9352UAk3XnWElnDV" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/spotify/podcast?id=3mliji9352UAk3XnWElnDV&url=https%3A%2F%2Fopen.spotify.com%2Fshow%2F3mliji9352UAk3XnWElnDV", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/spotify/podcast",
params={"id": "3mliji9352UAk3XnWElnDV", "url": "https://open.spotify.com/show/3mliji9352UAk3XnWElnDV"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/spotify/podcast/episodesPodcast Episodes
Returns episodes for a Spotify podcast. Pass the cursor returned by a response to get the next page.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Spotify podcast id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 4rOoJ6Egrf8K2IrywzwOMk |
url | string | Spotify podcast URL. If you'd prefer to use the id instead, you can use the id parameter instead. Example: https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk |
cursor | number | Cursor returned by the previous response. Omit for the first page. Example: 50 |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/spotify/podcast/episodes" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/spotify/podcast/episodes", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/spotify/podcast/episodes",
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/spotify/searchSearch
Search Spotify for tracks, artists, albums, episodes, podcasts, and audiobooks. Use type=podcasts when you need podcast ids for the podcast endpoints.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
queryrequired | string | Search query Example: my first million |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/spotify/search?query=my%20first%20million" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/spotify/search?query=my%20first%20million", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/spotify/search",
params={"query": "my first million"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/spotify/trackTrack
Retrieves detailed information about a Spotify track by its id or URL, including track metadata, artists, album info, duration, playability, and sharing details.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Spotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 1ITJflybJsfarsUtiBvkfK |
url | string | Spotify song URL. If you'd prefer to use the id instead, you can use the id parameter instead. Example: https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/spotify/track?id=1ITJflybJsfarsUtiBvkfK&url=https%3A%2F%2Fopen.spotify.com%2Ftrack%2F1ITJflybJsfarsUtiBvkfK" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/spotify/track?id=1ITJflybJsfarsUtiBvkfK&url=https%3A%2F%2Fopen.spotify.com%2Ftrack%2F1ITJflybJsfarsUtiBvkfK", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/spotify/track",
params={"id": "1ITJflybJsfarsUtiBvkfK", "url": "https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())