# Spotify API on SandBase

> Spotify data API endpoints available through one SandBase API key.

Source: https://www.sandbase.ai/apis/spotify

- Endpoints: 7
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [Spotify Album](https://www.sandbase.ai/apis/spotify/album.md): From $0.0012 per call
  Fetch a Spotify album's tracklist, play counts, label, and release details by album URL or ID.
- [Spotify Artist](https://www.sandbase.ai/apis/spotify/artist.md): From $0.0012 per call
  Fetch a Spotify artist's discography (albums, singles, top tracks) and metadata by artist URL or ID.
- [Spotify Play Count](https://www.sandbase.ai/apis/spotify/play-count.md): From $0.0022 per call
  Fetch stream counts and stats for a Spotify track, album, or artist URL.
- [Spotify Podcast](https://www.sandbase.ai/apis/spotify/podcast.md): From $0.0012 per call
  Fetch a Spotify podcast show's name, publisher, description, rating, and topics by show URL or ID.
- [Spotify Podcast Episodes](https://www.sandbase.ai/apis/spotify/podcast-episodes.md): From $0.0012 per call
  List a Spotify podcast show's episodes with titles, durations, descriptions, and release dates by show URL or ID.
- [Spotify Search](https://www.sandbase.ai/apis/spotify/search.md): From $0.0012 per call
  Search Spotify for matching tracks, albums, artists, podcasts, and playlists by keyword.
- [Spotify Track](https://www.sandbase.ai/apis/spotify/track.md): From $0.0012 per call
  Fetch a Spotify track's play count, popularity, duration, and album details by track URL or ID.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
