Spotify-API

Spotify-Wiedergaben-API

Rufe Stream-Zahlen und Statistiken für die URL eines Spotify-Titels, -Albums oder -Künstlers ab.

2,40 USD/1k Anfr., Zahlung pro Anfrage, kein Abo.

Spotify - Web Player
open.spotify.com/track/3fVm8qS0vW4rY1tE9cLmJa
PremiumSupportDownloadInstall AppSign upLog in
Your Library

Create your first playlist

It's easy, we'll help you

Create playlist

Let's find some podcasts to follow

We'll keep you updated on new episodes

Browse podcasts
LegalSafety & Privacy CenterPrivacy PolicyCookiesAbout AdsAccessibility
English

Song

Recommended

Based on this song

Coastline

Marlowe Finch

42,918,2033:47

Amber Light

Marlowe Finch

31,204,5583:23

Slow Static

Marlowe Finch

12,045,9013:09
Was die API zurückgegeben hatitems[0]
{
"id": "0cRj4pQqXVpB2pTwR3pN1n",
"name": "Coastline",
"type": "track",
"url": "https://open.spotify.com/track/0cRj4pQqXVpB2pTwR3pN1n",
"playCount": 42918203,
"durationMs": 227000,
"albumName": "Coastline",
"artistName": "Marlowe Finch",
... 4 weitere Felder
}
Verfügbarkeit
100,00%
30d · 24 Aufrufe
Anfragen
24
30 T · wöchentlich, letzte 12 Wochen
Antwort
5,2s
Median · 30d

Preise

Preise der Spotify-Wiedergaben-API

Du zahlst
24,00 USD
2,40 USD/1k Anfr., nur für das, was du nutzt. Kein Monatstarif.
Deine ersten 41 Anfragen sind mit dem Startguthaben von 0,10 USD kostenlos.

Ausprobieren

Spotify Wiedergaben mit einer Anfrage abrufen

Öffnen in
Beispielantwort
Kostenlose Läufe liefern nur die ersten 3 Ergebnisse. Lade einen Schlüssel auf, um die vollständige Antwort zu bekommen.

Dieses Beispiel zeigt 15 von 16 Feldern. Alle Felder ansehen

{
  "found": true,
  "data": {
    "items": [
      {
        "id": "0cRj4pQqXVpB2pTwR3pN1n",
        "name": "Coastline",
        "type": "track",
        "url": "https://open.spotify.com/track/0cRj4pQqXVpB2pTwR3pN1n",
        "playCount": 42918203,
        "durationMs": 227000,
        "albumName": "Coastline",
        "artistName": "Marlowe Finch",
        "image": "https://i.scdn.co/image/ab67616d0000b273b2c3d4e5f60718293a4b5c6",
        "releaseDate": "2022-08-19",
        "trackNumber": 1,
        "previewUrl": "https://p.scdn.co/mp3-preview/0cRj4pQqXVpB2pTwR3pN1n"
      },
      {
        "id": "9dTk5qR0vW4rY1tE9cLmJZ",
        "name": "Amber Light",
        "type": "track",
        "url": "https://open.spotify.com/track/9dTk5qR0vW4rY1tE9cLmJZ",
        "playCount": 31204558,
        "durationMs": 203000,
        "albumName": "Paper Weather",
        "artistName": "Marlowe Finch",
        "image": "https://i.scdn.co/image/ab67616d0000b273c3d4e5f60718293a4b5c6d7",
        "releaseDate": "2023-02-03",
        "trackNumber": 4,
        "previewUrl": "https://p.scdn.co/mp3-preview/9dTk5qR0vW4rY1tE9cLmJZ"
      },
      {
        "id": "2eUl6rS1wX5sZ2uF0dMnKA",
        "name": "Slow Static",
        "type": "track",
        "url": "https://open.spotify.com/track/2eUl6rS1wX5sZ2uF0dMnKA",
        "playCount": 12045901,
        "durationMs": 189000,
        "albumName": "Slow Static - Single",
        "artistName": "Marlowe Finch",
        "image": "https://i.scdn.co/image/ab67616d0000b273d4e5f60718293a4b5c6d7e8",
        "releaseDate": "2024-11-08",
        "trackNumber": 1,
        "previewUrl": "https://p.scdn.co/mp3-preview/2eUl6rS1wX5sZ2uF0dMnKA"
      }
    ]
  }
}

Vollständige Parameter- und Antwortreferenz: jedes Feld, jeder Typ und jedes Beispiel für diesen Endpoint.

Referenz

Eine Anfrage, eine Antwortstruktur.

Jedes Feld, das du sendest, und jedes Feld, das du zurückbekommst, jeweils mit einem echten Beispiel.

Zuletzt geprüft 2026-11-21 · Verfügbarkeit und Latenz gemessen über 30d

Request-Body

JSON, per POST an diesen Endpoint gesendet.

  • urlstring

    https://open.spotify.com/track/3fVm8qS0vW4rY1tE9cLmJa

    URL eines Spotify-Titels, -Albums oder -Künstlers, für die Stream-Zahlen abgerufen werden (z. B. https://open.spotify.com/track/3n3Ppam7vgaVa1iaRUc9Lp).

Du sendest. Ein kleiner JSON-Body. Die gezeigten Werte sind Beispiele, die du durch deine eigenen ersetzt.

Antwort

JSON, ein Beispielwert pro Feld.

each itemdata.items[]

Play-count records for the requested Spotify entity (one per track). Populated whenever the provider has data for the entity.

  • albumNamestring

    Coastline

    Name of the album the track belongs to. Empty when the upstream omits it.

  • artistNamestring

    Marlowe Finch

    Name of the primary artist. Empty when the upstream omits it.

  • durationMsinteger

    227000

    Track duration in milliseconds.

  • idstring

    0cRj4pQqXVpB2pTwR3pN1n

    The Spotify entity ID. Populated whenever the provider has data for the entity.

  • imagestring

    https://i.scdn.co/image/ab67616d0000b273b2c3d4e5f60718293a4b5c6

    URL of the cover art image.

  • namestring

    Coastline

    The track (or entity) name. Populated whenever the provider has data for the entity.

  • playCountinteger

    42918203

    Total number of streams/plays for the track. Populated whenever the provider has data for the entity.

  • previewUrlstring

    https://p.scdn.co/mp3-preview/0cRj4pQqXVpB2pTwR3pN1n

    URL of the 30-second audio preview.

  • releaseDatestring

    2022-08-19

    Release date as an ISO 8601 string.

  • trackNumberinteger

    1

    Position of the track within its album.

  • typestring

    track

    The Spotify entity type (e.g. "track").

  • urlstring

    https://open.spotify.com/track/0cRj4pQqXVpB2pTwR3pN1n

    Canonical open.spotify.com URL for the entity, with tracking query params stripped. Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

    Whether the track/album/artist was found and returned play-count records.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Du bekommst zurück. Benannte, typisierte Felder in derselben Struktur, egal welche Quelle antwortet.

FAQ

Über die Spotify-Wiedergaben-API

Die AnyAPI-Spotify-Wiedergaben-API liefert Spotify-Daten als normalisiertes JSON aus einem POST-Aufruf an /v1/run/spotify.play_count. Rufe Stream-Zahlen und Statistiken für die URL eines Spotify-Titels, -Albums oder -Künstlers ab. AnyAPI liefert ein normalisiertes Schema, egal welche Quelle antwortet. Sie kostet ab 2,40 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. In den letzten 30 Tagen waren 100,0% der Spotify Wiedergaben-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 5,2 Sekunden über 24 gemessene Aufrufe.

Sie kostet ab 2,40 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. Du lädst ein USD-Guthabenkonto auf, und jeder Aufruf bucht davon ab. Bei manchen fehlgeschlagenen, vom Guthabenkonto bezahlten Anfragen fallen Bearbeitungsgebühren an, die wir zum Selbstkostenpreis ohne Aufschlag weitergeben. Die Fehlerantwort zeigt den berechneten Betrag.

Rufe Stream-Zahlen und Statistiken für die URL eines Spotify-Titels, -Albums oder -Künstlers ab. Die Antwort ist normalisiertes JSON mit demselben Envelope, den jeder AnyAPI-Endpoint liefert, sodass das Parsen eines zweiten Endpoints nur eine geänderte URL bedeutet.

In den letzten 30 Tagen waren 100,0% der Spotify Wiedergaben-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 5,2 Sekunden über 24 gemessene Aufrufe. Das sind AnyAPIs eigene Messungen des Traffics durch das Gateway, laufend neu berechnet, kein veröffentlichtes Service-Level-Ziel.

Ja. Ein neues AnyAPI-Konto startet mit 0,10 USD Gratis-Guthaben, ohne Karte. Das deckt 41 Spotify-Wiedergaben-Aufrufe zu je 0,0024 USD.

Sende eine POST-Anfrage an https://api.getanyapi.com/v1/run/spotify.play_count mit deinem AnyAPI-Schlüssel in einem Header „Authorization: Bearer“ und der Eingabe als JSON-Body. Derselbe Schlüssel und dasselbe Guthabenkonto funktionieren bei jedem AnyAPI-Endpoint.

Nein. Du lädst US-Dollar auf ein Prepaid-AnyAPI-Guthaben, und jede Anfrage bucht davon ab. Es gibt keinen Monatstarif und kein Minimum, und dasselbe Guthaben bezahlt jeden AnyAPI-Endpoint.

Ja. Installiere @getanyapi/sdk von npm für TypeScript oder getanyapi von pip für Python. Beide rufen jeden AnyAPI-Endpoint mit demselben Schlüssel auf, und jeder HTTP-Client funktioniert ebenfalls.

Ja. Ein Agent kann sich mit dem AnyAPI-MCP-Server unter https://api.getanyapi.com/mcp verbinden oder mit einem unauthentifizierten POST an https://api.getanyapi.com/agent/signup einen eigenen kostenlosen Test-Schlüssel erstellen und diesen Endpoint über HTTP aufrufen.