---
title: "How to get Spotify data"
description: "Get a Spotify artist’s monthly listeners, top cities and top tracks with play counts, plus albums, playlists and podcasts, as JSON. What the Web API leaves out, code and prices."
canonical_url: https://groundsocial.dev/guides/how-to-get-spotify-data
---
# How to get Spotify data

> Get a Spotify artist’s monthly listeners, top cities and top tracks with play counts, plus albums, playlists and podcasts, as JSON. What the Web API leaves out, code and prices.

_Checked 2026-11-27._

Spotify’s Web API returns followers and a 0–100 popularity score, never monthly listeners or play counts, and since February 2026 a Development Mode app needs a Premium owner. A data API reads the public artist page: one GET returns monthly listeners, world rank, top cities and top tracks with play counts, 1 credit.

> **Checked 27 November 2026** Every request on this page was run against the live API on that date, and the sample response is from that run. Official-API facts link to the platform’s own pages.

## The official Spotify API

Spotify’s Web API is free, but it has narrowed:

- It has never returned monthly listeners, play counts or top cities: only `followers.total` and `popularity`.
- From 11 February 2026 (9 March for existing apps), Development Mode needs a Spotify Premium account, allows up to five authorised users per client id, and one Development Mode client id per developer.
- Spotify postponed the related endpoint changes for existing integrations on 9 March 2026 and said it would share revised timelines.

Sources: [Spotify, “Update on developer access and platform security”, 6 Feb 2026](https://developer.spotify.com/blog/2026-02-06-update-on-developer-access-and-platform-security).

## Quick start

1. **Get a key.** [Sign up](https://groundsocial.dev/app/sign-in?new=1) with an email code: 100 free credits, no card. An agent can sign itself up with `POST https://api.groundsocial.dev/v1/agent/signup`.
2. **Set it in your shell.** `export GROUNDSOCIAL_API_KEY=gs_live_…`
3. **Make the call.** An artist with monthly listeners: `GET /v1/spotify/artists/0TnOYISbd1XYRBk9myaseg`, 1 credit.

cURL:

```bash
curl "https://api.groundsocial.dev/v1/spotify/artists/0TnOYISbd1XYRBk9myaseg" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/spotify/artists/0TnOYISbd1XYRBk9myaseg', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/spotify/artists/0TnOYISbd1XYRBk9myaseg",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

## Sample response

Trimmed from the real response on 27 November 2026: lists cut to their first items and long strings shortened. Every field is described in the [tutorial](https://groundsocial.dev/tutorials/spotify/artist-get/python).

```json
{
  "artist": {
    "id": "0TnOYISbd1XYRBk9myaseg",
    "name": "Pitbull",
    "type": "artist",
    "followers": {
      "total": 13676325
    },
    "monthly_listeners": 73196629,
    "world_rank": 23,
    "verified": true,
    "biography": "Armando Christian Pérez, globally known as Pitbull, invites disruption on a global scale a…"
  },
  "top_tracks": [
    {
      "id": "4QNpBfC0zvjKqPJcyqBy9W",
      "name": "Give Me Everything (feat. Nayer)",
      "type": "track",
      "duration_ms": 252306,
      "explicit": false,
      "disc_number": 1,
      "is_playable": true,
      "playcount": 2373793268
    }
  ]
}
```

## What else you can get from Spotify

| What you get | Endpoint | Credits |
| --- | --- | --- |
| [An artist with monthly listeners](https://groundsocial.dev/tutorials/spotify/artist-get/python) | `GET /v1/spotify/artists/0TnOYISbd1XYRBk9myaseg` | 1 |
| [A track with play count](https://groundsocial.dev/tutorials/spotify/track-get/python) | `GET /v1/spotify/tracks/11dFghVXANMlKmJXsNCbNl` | 1 |
| [An album with track play counts](https://groundsocial.dev/tutorials/spotify/album-get/python) | `GET /v1/spotify/albums/4aawyAB9vmqN3uQ7FjRGTy` | 1 |
| [A playlist](https://groundsocial.dev/tutorials/spotify/playlist-get/python) | `GET /v1/spotify/playlists/37i9dQZF1DXcBWIGoYBM5M` | 1 |
| [A podcast](https://groundsocial.dev/tutorials/spotify/podcast-get/python) | `GET /v1/spotify/shows/4rOoJ6Egrf8K2IrywzwOMk` | 1 |
| [Search](https://groundsocial.dev/tutorials/spotify/search-all/python) | `GET /v1/spotify/search` | 1 |

Each row links to its tutorial. Every Spotify endpoint and price: [Spotify API](https://groundsocial.dev/spotify-api).

## Tips

- Pass an artist id, a `spotify:artist:` URI or an open.spotify.com link.
- Monthly listeners move daily: store `monthly_listeners` with the date to track an artist.

## Use it from Claude or Cursor (MCP)

Every endpoint is also an MCP tool on the remote server `https://api.groundsocial.dev/mcp`. The `?platforms=spotify` below loads only the Spotify tools. The client signs in with OAuth, or send your key as a Bearer token. Tools used in this guide: `spotify_artist_get`, `spotify_track_get`, `spotify_album_get`, `spotify_playlist_get`, `spotify_podcast_get`, `spotify_search_all`.

Claude Code:

```bash
claude mcp add --transport http groundsocial "https://api.groundsocial.dev/mcp?platforms=spotify"
```

Cursor:

```json
{
  "mcpServers": {
    "groundsocial": {
      "url": "https://api.groundsocial.dev/mcp?platforms=spotify"
    }
  }
}
```

Claude.ai:

```text
Customize → Connectors → + Add → Add custom connector
URL: https://api.groundsocial.dev/mcp?platforms=spotify
```

> **Then ask** “Compare the monthly listeners and top cities of three Spotify artists I name.”

Setup for ChatGPT, VS Code, Windsurf, n8n and others: [MCP client setup](https://groundsocial.dev/mcp).

## Pricing

Pay per call from prepaid credits; no subscription. 100 free credits cover the examples on this page. Costs below are at the [credit packs](https://groundsocial.dev/pricing)’ highest and lowest rates.

| Job | Credits | Cost |
| --- | --- | --- |
| 1,000 artists | 1,000 | $1.00 → $0.40 |
| 200 artists tracked daily for 30 days | 6,000 | $6.00 → $2.40 |

## FAQ

### Do I need a Spotify developer app or Premium?

No. Calls read what Spotify’s public pages show; you only need a Groundsocial key.

### Are failed calls charged?

No. A target that does not exist answers `404 target_not_found`, an upstream failure answers `503`, and neither costs anything. Credits never expire.

### Is Groundsocial official?

No. Groundsocial is an independent API that reads what the platform shows a logged-out visitor. Spotify is a trademark of Spotify AB. We are not affiliated with or endorsed by Spotify.

## Go deeper

- [Spotify tutorials: 7 endpoints in six languages](https://groundsocial.dev/tutorials/spotify)

## Related guides

- [How to get YouTube data](https://groundsocial.dev/guides/how-to-get-youtube-data)
- [How to get TikTok data](https://groundsocial.dev/guides/how-to-get-tiktok-data)

Spotify is a trademark of Spotify AB. We are not affiliated with or endorsed by Spotify.

_Canonical HTML: https://groundsocial.dev/guides/how-to-get-spotify-data_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial: Social data in one API call](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Playground](https://groundsocial.dev/playground.md)
- [Use cases](https://groundsocial.dev/use-cases.md)
- [Brand monitoring API](https://groundsocial.dev/use-cases/brand-monitoring-api.md)
- [Social listening API](https://groundsocial.dev/use-cases/social-listening-api.md)
- [Comment scraping API](https://groundsocial.dev/use-cases/comment-scraping-api.md)
- [Influencer discovery API](https://groundsocial.dev/use-cases/influencer-discovery-api.md)
- [Video transcript API](https://groundsocial.dev/use-cases/video-transcript-api.md)
- [Ad library API](https://groundsocial.dev/use-cases/ad-library-api.md)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api.md)
- [Trend detection API](https://groundsocial.dev/use-cases/trend-detection-api.md)
- [Social lead generation API](https://groundsocial.dev/use-cases/lead-generation-api.md)
- [Market research API](https://groundsocial.dev/use-cases/market-research-api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Guides","item":"https://groundsocial.dev/guides"},{"@type":"ListItem","position":3,"name":"How to get Spotify data","item":"https://groundsocial.dev/guides/how-to-get-spotify-data"}]}
```
