PulseEmetrics

Spotify

7 endpoints. All requests need an x-api-key header.

GET/v1/spotify/album

Album

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

NameTypeDescription
idstringSpotify album id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 0pgrg7phBbnwGJ2HBEl9EG
urlstringSpotify 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
freshbooleanSet 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())
GET/v1/spotify/artist

Artist

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

NameTypeDescription
idstringSpotify artist id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 0cGUm45nv7Z6M6qdXYQGTX
urlstringSpotify 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
freshbooleanSet 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())
GET/v1/spotify/playlist

Playlist

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

NameTypeDescription
idstringSpotify playlist id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 37i9dQZF1DX4UtSsGT1Sbe
urlstringSpotify 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
cursorstringCursor returned by the previous response. Omit it for the first page. Example: 50
freshbooleanSet 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())
GET/v1/spotify/podcast

Podcast

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

NameTypeDescription
idstringSpotify podcast id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 3mliji9352UAk3XnWElnDV
urlstringSpotify 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
freshbooleanSet 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())
GET/v1/spotify/podcast/episodes

Podcast 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

NameTypeDescription
idstringSpotify podcast id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 4rOoJ6Egrf8K2IrywzwOMk
urlstringSpotify 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
cursornumberCursor returned by the previous response. Omit for the first page. Example: 50
freshbooleanSet 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())
GET/v1/spotify/search

Search

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

NameTypeDescription
queryrequiredstringSearch query Example: my first million
freshbooleanSet 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())
GET/v1/spotify/track

Track

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

NameTypeDescription
idstringSpotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 1ITJflybJsfarsUtiBvkfK
urlstringSpotify 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
freshbooleanSet 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())