# Spotify API

Search Spotify tracks, artists, albums, playlists and podcasts to retrieve public metadata, listeners and streaming metrics.

Use a Spotify URL or ID for the matching media type. Track, artist, album and playlist identifiers are not interchangeable.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "spotify", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/spotify-api](https://everyinfra.com/en/spotify-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### profile — Details
Look up an album or single on Spotify from its full link. Get the release type, date, record label, credited artists, cover and track list. This older entry point reads releases, not user profiles. It plays no audio.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the target open.spotify.com link, spotify:type:ID URI, or raw entity ID corresponding to the chosen action (artist, track, album, or playlist). Input types must match the endpoint action and cannot be interchanged. Legacy profile endpoints accept full Spotify links to return album and single streaming metadata rather than user profile account details.
- Returns fields: id, url, name, type, release_date, label, artists, image_url, track_count, tracks, platform
- Capability page: [https://everyinfra.com/en/spotify-api/profile](https://everyinfra.com/en/spotify-api/profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/spotify-api/profile.md)

### search — Search
Search Spotify for tracks, artists, albums or playlists by keyword. Get each match's name, type, artists and link, plus counts that fit the kind of result. Set the kind with `content_type`. Results can differ across regions and do not show popularity over time.
- Sync delivery · Price: $1.39 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): Specifies the search query for the search action, with target entities constrained by content_type. On the podcast action, this parameter searches overall podcast shows by default rather than looking up specific episode details.
  - `content_type` (optional): Filters target catalog types. For search, allowed values are tracks, artists, albums, or playlists. The podcast action takes its own values: podcasts_shows (default) for shows or podcast_episodes_individual_episodes for single episodes. Values from one action cannot be used in the other. One of: albums, artists, playlists, tracks.
- Returns fields: id, url, type, name, text, artists, album_name, owner_name, publisher, image_url, duration_ms, play_count, follower_count, monthly_listener_count, track_count, episode_count, release_date, is_explicit, preview_url, rank, platform
- Capability page: [https://everyinfra.com/en/spotify-api/search](https://everyinfra.com/en/spotify-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/spotify-api/search.md)

### artist — Artist details
Read a Spotify artist's bio, monthly listeners, followers and world rank, with top tracks, top cities and related artists. Pass an artist link, a spotify:artist: URI or the bare ID. The numbers are a point-in-time snapshot, not revenue or a history.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the target open.spotify.com link, spotify:type:ID URI, or raw entity ID corresponding to the chosen action (artist, track, album, or playlist). Input types must match the endpoint action and cannot be interchanged. Legacy profile endpoints accept full Spotify links to return album and single streaming metadata rather than user profile account details.
- Returns fields: id, url, name, bio, monthly_listener_count, follower_count, world_rank, genres, image_url, header_image_url, album_count, single_count, compilation_count, top_cities, top_tracks, related_artists, platform
- Capability page: [https://everyinfra.com/en/spotify-api/artist](https://everyinfra.com/en/spotify-api/artist?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/spotify-api/artist.md)

### track — Track
Get one Spotify track's artists, album, length, play count, track and disc number, release date, label and content rating. `duration_ms` is in milliseconds, and the response carries no audio file and does not confirm territorial rights.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the target open.spotify.com link, spotify:type:ID URI, or raw entity ID corresponding to the chosen action (artist, track, album, or playlist). Input types must match the endpoint action and cannot be interchanged. Legacy profile endpoints accept full Spotify links to return album and single streaming metadata rather than user profile account details.
- Returns fields: id, url, name, artists, album_name, duration_ms, play_count, track_number, disc_number, is_explicit, release_date, preview_url, image_url, added_at, platform, album_id, album_type, label, content_rating
- Capability page: [https://everyinfra.com/en/spotify-api/track](https://everyinfra.com/en/spotify-api/track?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/spotify-api/track.md)

### album — Album
Fetch a Spotify album's type, artists, release date, label, copyright line, cover art and full track list from its link, URI or ID. Nothing is played back, and regional editions of the same record are not guaranteed to match.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the target open.spotify.com link, spotify:type:ID URI, or raw entity ID corresponding to the chosen action (artist, track, album, or playlist). Input types must match the endpoint action and cannot be interchanged. Legacy profile endpoints accept full Spotify links to return album and single streaming metadata rather than user profile account details.
- Returns fields: id, url, name, album_type, artists, release_date, label, copyright, track_count, image_url, tracks, platform
- Capability page: [https://everyinfra.com/en/spotify-api/album](https://everyinfra.com/en/spotify-api/album?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/spotify-api/album.md)

### playlist — Playlist
Open a Spotify playlist to see its owner, description, saves, followers, track count and the tracks it holds. The playlist is left unchanged, individual followers are not named, and tracks are not guaranteed to still be available.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the target open.spotify.com link, spotify:type:ID URI, or raw entity ID corresponding to the chosen action (artist, track, album, or playlist). Input types must match the endpoint action and cannot be interchanged. Legacy profile endpoints accept full Spotify links to return album and single streaming metadata rather than user profile account details.
- Returns fields: id, url, name, text, owner_name, save_count, follower_count, track_count, image_url, tracks, platform
- Capability page: [https://everyinfra.com/en/spotify-api/playlist](https://everyinfra.com/en/spotify-api/playlist?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/spotify-api/playlist.md)

### podcast — Podcast
Find Spotify podcast shows or single episodes by keyword. Get publisher, episode count, duration and release date where they apply. For episodes, set `content_type` to `podcast_episodes_individual_episodes`. Each row's type tells shows and episodes apart. No audio is downloaded.
- Sync delivery · Price: $1.39 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): Specifies the search query for the search action, with target entities constrained by content_type. On the podcast action, this parameter searches overall podcast shows by default rather than looking up specific episode details.
  - `content_type` (optional): Filters target catalog types. For search, allowed values are tracks, artists, albums, or playlists. The podcast action takes its own values: podcasts_shows (default) for shows or podcast_episodes_individual_episodes for single episodes. Values from one action cannot be used in the other. One of: podcast_episodes_individual_episodes, podcasts_shows.
- Returns fields: id, url, type, name, text, artists, album_name, owner_name, publisher, image_url, duration_ms, play_count, follower_count, monthly_listener_count, track_count, episode_count, release_date, is_explicit, preview_url, rank, platform
- Capability page: [https://everyinfra.com/en/spotify-api/podcast](https://everyinfra.com/en/spotify-api/podcast?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/spotify-api/podcast.md)

## Spotify API questions

### What can I retrieve with the Spotify API?

Set `platform` to `spotify`. The current catalog lists details, search, artist details, track, album, and more. These action names identify different Spotify objects or views; they are not interchangeable search modes.

### Does Spotify have an official API?

Yes. Spotify's Web API provides catalog metadata and data for users who authorize your app. New apps start in Development Mode (a Premium owner, up to five users and a reduced set of endpoints), and extended access is granted only to registered organizations with a launched service and at least 250,000 monthly active users.

Official sources (checked 2026-10-16): [Spotify Web API: quota modes](https://developer.spotify.com/documentation/web-api/concepts/quota-modes) · [Spotify: update on developer access and platform security](https://developer.spotify.com/blog/2026-02-06-update-on-developer-access-and-platform-security)

### Do I need a Spotify developer account or API key?

No. Requests go through EveryInfra with an EveryInfra API key: sign up, create a key in the console and send it as `Authorization: Bearer <API_KEY>`. You do not register a Spotify developer app, apply for Spotify API access or sign in with a Spotify account, and the actions return public Spotify data only.

### How much does the Spotify API cost per 1,000 requests?

each action's price is listed in the table on this page and in the public catalog. There is no subscription: you top up a USD balance and pay per call, and failed calls and empty results are not charged.

### Which input starts the Spotify `profile` request?

Specifies the target open.spotify.com link, spotify:type:ID URI, or raw entity ID corresponding to the chosen action (artist, track, album, or playlist). Input types must match the endpoint action and cannot be interchanged. Legacy profile endpoints accept full Spotify links to return album and single streaming metadata rather than user profile account details. Send it as `url` inside `params`.

### Which fields can Spotify `profile` return?

Its declared schema includes `name`, `type`, `release_date`, and `label`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every Spotify action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=spotify
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
