# Spotify data APIs for AI agents > morigraph has 7 Spotify data APIs that Claude, ChatGPT, Cursor, Codex or your own code can call, including search, album, artist and play count. You need no Spotify developer account or API key, only one morigraph connection. Calls cost from 0.024 credits, about $2.40 for 1,000 calls, paid from one balance. ## How to call it Every data API is run by one tool, `data_api`, with the API's id and its arguments. The example is Spotify Search. In your assistant (MCP). Connect once, then ask in plain words: ```sh claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp Use morigraph's Spotify Search data API with {"query":"my first million"} and summarise what comes back. ``` From a terminal or script (CLI): ```sh npx @morigraph/cli@latest login morigraph call data_api --json-args '{"api":"spotify.search","input":{"query":"my first million"}}' ``` From your own code (HTTP API): ```sh curl https://api.morigraph.com/v1/tools/data_api \ -H "Authorization: Bearer $MORIGRAPH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"api":"spotify.search","input":{"query":"my first million"}}' ``` ## Spotify Search `spotify.search` · 0.024 credits a call (about $2.40 for 1,000) Search Spotify for matching tracks, albums, artists, podcasts, and playlists by keyword. | Argument | Type | Required | What it is | |---|---|---|---| | `query` | string | yes | Search term (e.g. "my first million"). | Returns: `albumName`, `albums`, `artistName`, `artists`, `id`, `image`, `name`, `podcasts`, `publisher`, `tracks`, `type`, `uri`, `verified`, `year` ``` data_api({"api":"spotify.search","input":{"query":"my first million"}}) ``` ## Spotify Album `spotify.album` · 0.024 credits a call (about $2.40 for 1,000) Fetch a Spotify album's tracklist, play counts, label, and release details by album URL or ID. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | no | Spotify album ID (alternative to url). | | `url` | string | no | Spotify album URL (e.g. https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG). | Returns: `artistName`, `durationMs`, `id`, `image`, `label`, `name`, `playcount`, `popularity`, `releaseDate`, `trackNumber`, `tracks`, `type`, `uri`, `url` ``` data_api({"api":"spotify.album","input":{"url":"https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG"}}) ``` ## Spotify Artist `spotify.artist` · 0.024 credits a call (about $2.40 for 1,000) Fetch a Spotify artist's discography (albums, singles, top tracks) and metadata by artist URL or ID. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | no | Spotify artist ID (alternative to url). | | `url` | string | no | Spotify artist URL (e.g. https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa). | Returns: `albums`, `artistName`, `bio`, `durationMs`, `followers`, `id`, `image`, `label`, `name`, `playcount`, `popularity`, `topTracks`, `trackCount`, `type`, `uri`, `url`, `verified`, `year` ``` data_api({"api":"spotify.artist","input":{"url":"https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa"}}) ``` ## Spotify Play Count `spotify.play_count` · 0.048 credits a call (about $4.80 for 1,000) Fetch stream counts and stats for a Spotify track, album, or artist URL. | Argument | Type | Required | What it is | |---|---|---|---| | `url` | string | yes | Spotify track, album, or artist URL to fetch stream counts for (e.g. https://open.spotify.com/track/3n3Ppam7vgaVa1iaRUc9Lp). | Returns: `albumName`, `artistName`, `durationMs`, `id`, `image`, `name`, `playCount`, `previewUrl`, `releaseDate`, `trackNumber`, `type`, `url` ``` data_api({"api":"spotify.play_count","input":{"url":"https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT"}}) ``` ## Spotify Podcast `spotify.podcast` · 0.024 credits a call (about $2.40 for 1,000) Fetch a Spotify podcast show's name, publisher, description, rating, and topics by show URL or ID. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | no | Spotify podcast show ID (alternative to url). | | `url` | string | no | Spotify podcast show URL (e.g. https://open.spotify.com/show/3mliji9352UAk3XnWElnDV). | Returns: `averageRating`, `description`, `id`, `image`, `name`, `publisher`, `totalRatings`, `uri`, `url` ``` data_api({"api":"spotify.podcast","input":{"url":"https://open.spotify.com/show/3mliji9352UAk3XnWElnDV"}}) ``` ## Spotify Podcast Episodes `spotify.podcast_episodes` · 0.024 credits a call (about $2.40 for 1,000) List a Spotify podcast show's episodes with titles, durations, descriptions, and release dates by show URL or ID. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response for subsequent pages. | | `id` | string | no | Spotify podcast show ID (alternative to url). | | `url` | string | no | Spotify podcast show URL (e.g. https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk). | Returns: `description`, `durationMs`, `episodes`, `id`, `name`, `nextCursor`, `releaseDate`, `totalCount`, `uri` ``` data_api({"api":"spotify.podcast_episodes","input":{"url":"https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk"}}) ``` ## Spotify Track `spotify.track` · 0.024 credits a call (about $2.40 for 1,000) Fetch a Spotify track's play count, popularity, duration, and album details by track URL or ID. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | no | Spotify track ID (alternative to url). | | `url` | string | no | Spotify track URL (e.g. https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT). | Returns: `albumName`, `artistName`, `durationMs`, `id`, `image`, `name`, `playcount`, `popularity`, `releaseDate`, `shareUrl`, `trackNumber`, `uri` ``` data_api({"api":"spotify.track","input":{"url":"https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT"}}) ``` ## Do I need a Spotify API key or developer account? No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call any of the 7 APIs on this page. ## What does Spotify data cost through morigraph? Between 0.024 and 0.048 credits a call depending on the API, where a credit is about 10 cents. That is from about $2.40 for 1,000 calls. You pay per call from one balance, with no separate subscription. ## Can Claude, ChatGPT or Cursor get Spotify data? Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call. ## Which Spotify data APIs are available? Spotify Search, Spotify Album, Spotify Artist, Spotify Play Count, Spotify Podcast, Spotify Podcast Episodes and Spotify Track. --- Canonical page: https://morigraph.com/tools/data/spotify/ Prices read from the catalogue on 2026-11-27. These APIs return public data; how you may use it depends on the platform's terms and applicable law. All data APIs: https://morigraph.com/tools/data.md · Connect: https://morigraph.com/connect.md · Site overview: https://morigraph.com/llms.txt