# Spotify API — UnifAPI

> Artists, albums, tracks, listeners. Look up Spotify artists with monthly listeners, followers and top cities, plus albums and tracks with play counts, by Spotify id.

- Category: Music
- API base URL: https://api.unifapi.com
- Auth: `Authorization: Bearer <UnifAPI API key>` (OAuth recommended for MCP clients)
- MCP server: https://mcp.unifapi.com
- Developer docs: https://docs.unifapi.com/api/spotify
- OpenAPI spec: https://unifapi.com/openapi.json
- HTML page: https://unifapi.com/apis/spotify
- Full catalog: https://unifapi.com/apis.md

## Agent workflows

- Compare artists by monthly listeners, followers, world rank and top cities for A&R and booking research.
- Read an album's tracks with play counts to see which songs carry a release.
- Map related artists and discography summaries to find similar acts for playlists and campaigns.

## Endpoints (3)

Every endpoint returns the UnifAPI JSON envelope (`request_id`, `data`, `pagination` on lists, `billing`) and bills max(records × credits per record, minimum) in credits.

### Get a Spotify album

`GET /spotify/albums/{id}`

Returns a Spotify album by id: title, artists, release date, label, cover art and tracks. Returns `not_found` when the album does not exist.

- Price: 1 credit per record, minimum 3 credits ($0.003) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/spotify/albums/id/get
- Docs: https://docs.unifapi.com/api/spotify/albums/id/get

### Get a Spotify artist

`GET /spotify/artists/{id}`

Returns a Spotify artist by id: name, genres, followers, monthly listeners, world rank, related artists and discography. Returns `not_found` when the artist does not exist.

- Price: 1 credit per record, minimum 3 credits ($0.003) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/spotify/artists/id/get
- Docs: https://docs.unifapi.com/api/spotify/artists/id/get

### Get a Spotify track

`GET /spotify/tracks/{id}`

Returns a Spotify track by id: title, duration, play count, explicit flag, album and artists. Returns `not_found` when the track does not exist.

- Price: 1 credit per record, minimum 3 credits ($0.003) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/spotify/tracks/id/get
- Docs: https://docs.unifapi.com/api/spotify/tracks/id/get

## Related APIs

- [Apple Music API](https://unifapi.com/apis/apple-music/index.md) — Catalog search, artists, albums, songs
- [SoundCloud API](https://unifapi.com/apis/soundcloud/index.md) — Artists, tracks, plays
- [TikTok API](https://unifapi.com/apis/tiktok/index.md) — Videos, creators, comments, hashtags, music
- [YouTube API](https://unifapi.com/apis/youtube/index.md) — Channels, videos, comments, captions, playlists, hashtags, search, trending
- [Instagram API](https://unifapi.com/apis/instagram/index.md) — Profiles, posts, reels, stories, comments, audio, search
