OpenAny
Get API keyAPI Key
APIDataScrapers

spotify logo
Spotify Track Details API

Get Spotify Track Details via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by ScrapeCreators, pass parameters such as id, and retrieve structured data including spotify track identifier, track title, reported track play count, track popularity score, and track duration in milliseconds to inspect track popularity and plays, and check explicit ratings and playability.

Selected price
$0.00188 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Spotify Track Details API

Prepare your request, then continue with your agent.

Selected price

$0.00188 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Spotify Track Details API

Spotify Track Details API

Send a Spotify track id or song url as a GET query parameter. The response preserves native Spotify fields including id, name, playcount, popularity, duration.totalMilliseconds, trackNumber, contentRating.label, playability, albumOfTrack, firstArtist[] and sharingInfo.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs GET query: provide id (Spotify track ID) or url (Spotify song URL).
Selected implementation scrapecreators · Spotify — Track
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Inspect track popularity and plays: Compare playcount, popularity and release date from albumOfTrack.date.isoString.
  • Check explicit ratings and playability: Read contentRating.label and playability.playable before featuring tracks in a catalog.
  • Pull parent album and copyright data: Extract albumOfTrack cover art, label and copyright lines in one track lookup.

Returned Data

Field Meaning
id Spotify track identifier
name Track title
playcount Reported track play count
popularity Track popularity score
duration.totalMilliseconds Track duration in milliseconds
trackNumber Track position on the album
contentRating.label Content rating label such as explicit or none
playability.playable Track playability indicator
albumOfTrack.name Parent album title
sharingInfo.shareUrl Spotify share URL

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/scrapecreators/v1/spotify/track \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode id=1ITJflybJsfarsUtiBvkfK

Request and Response Examples

The request is a calling template, while reference output illustrates the response structure and can refer to different records. Check returned identities against your query.

Published Spotify Track Details API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Spotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead.
Spotify song URL. If you'd prefer to use the id instead, you can use the id parameter instead.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
Spotify — Track · GET · View API reference$0.00188 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · scrapecreatorsUSD / call
Unit price
$0.00188

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0.188

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/spotify/track
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
idURL query parametersquerystringNo

Spotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead.

urlURL query parametersquerystringNo

Spotify song URL. If you'd prefer to use the id instead, you can use the id parameter instead.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • __typenamestring
  • albumOfTrackobject
    • copyrightobject[]
      • textstring
      • typestring
    • courtesyLinestring
    • coverArtobject
      • extractedColorsobject
        • colorRawobject
          • hexstring
      • sourcesobject[]
        • heightinteger
        • urlstring
        • widthinteger
    • dateobject
      • isoStringstring
      • precisionstring
      • yearinteger
    • idstring
    • namestring
    • playabilityobject
      • playableboolean
    • sharingInfoobject
      • shareIdstring
      • shareUrlstring
    • tracksobject[]
      • trackobject
        • trackNumberinteger
        • uristring
    • typestring
    • uristring
  • associationsV3object
    • audioAssociationsunknown[]
    • videoAssociationsobject
      • totalCountinteger
  • contentRatingobject
    • labelstring
  • credits_chargedinteger
  • credits_remaininginteger
  • durationobject
    • totalMillisecondsinteger
  • firstArtistobject[]
    • discographyobject
      • albumsobject[]
        • coverArtobject
          • extractedColorsobject
            • colorRawobject
              • hexstring
          • sourcesobject[]
            • heightinteger
            • urlstring
            • widthinteger
        • dateobject
          • isoStringstring
          • precisionstring
          • yearinteger
        • namestring
        • playabilityobject
          • playableboolean
        • sharingInfoobject
          • shareIdstring
          • shareUrlstring
        • tracksobject[]
          • trackobject
            • trackNumberinteger
            • uristring
        • typestring
        • uristring
      • popularReleasesAlbumsobject[]
        • coverArtobject
          • extractedColorsobject
            • colorRawobject
              • hexstring
          • sourcesobject[]
            • heightinteger
            • urlstring
            • widthinteger
        • dateobject
          • isoStringstring
          • precisionstring
          • yearinteger
        • namestring
        • playabilityobject
          • playableboolean
        • sharingInfoobject
          • shareIdstring
          • shareUrlstring
        • tracksobject[]
          • trackobject
            • trackNumberinteger
            • uristring
        • typestring
        • uristring
      • singlesobject[]
        • coverArtobject
          • extractedColorsobject
            • colorRawobject
              • hexstring
          • sourcesobject[]
            • heightinteger
            • urlstring
            • widthinteger
        • dateobject
          • isoStringstring
          • precisionstring
          • yearinteger
        • namestring
        • playabilityobject
          • playableboolean
        • sharingInfoobject
          • shareIdstring
          • shareUrlstring
        • tracksobject[]
          • trackobject
            • trackNumberinteger
            • uristring
        • typestring
        • uristring
      • topTracksobject[]
        • trackobject
          • albumOfTrackobject
            • coverArtobject
              • extractedColorsobject
                • colorRawobject
                  • hexstring
              • sourcesobject[]
                • heightinteger
                • urlstring
                • widthinteger
            • namestring
            • uristring
          • artistsobject[]
            • profileobject
              • namestring
            • uristring
          • associationsV3object
            • audioAssociationsunknown[]
            • videoAssociationsobject
              • totalCountinteger
          • contentRatingobject
            • labelstring
          • durationobject
            • totalMillisecondsinteger
          • idstring
          • namestring
          • playabilityobject
            • playableboolean
          • playcountinteger
          • previewsobject
            • audioPreviewsobject[]
              • urlstring
          • uristring
    • idstring
    • profileobject
      • namestring
    • relatedContentobject
      • relatedArtistsobject[]
        • idstring
        • profileobject
          • namestring
        • uristring
        • visualsobject
          • avatarImageobject
            • sourcesobject[]
              • heightinteger
              • urlstring
              • widthinteger
    • uristring
    • visualsobject
      • avatarImageobject
        • sourcesobject[]
          • heightinteger
          • urlstring
          • widthinteger
  • idstring
  • mediaTypestring
  • namestring
  • otherArtistsobject[]
    • discographyobject
      • popularReleasesAlbumsobject[]
        • coverArtobject
          • extractedColorsobject
            • colorRawobject
              • hexstring
          • sourcesobject[]
            • heightinteger
            • urlstring
            • widthinteger
        • dateobject
          • isoStringstring
          • precisionstring
          • yearinteger
        • namestring
        • playabilityobject
          • playableboolean
        • sharingInfoobject
          • shareIdstring
          • shareUrlstring
        • tracksobject[]
          • trackobject
            • trackNumberinteger
            • uristring
        • typestring
        • uristring
    • idstring
    • profileobject
      • namestring
    • uristring
    • visualsobject
      • avatarImageobject
        • sourcesobject[]
          • heightinteger
          • urlstring
          • widthinteger
  • playabilityobject
    • playableboolean
    • reasonstring
  • playcountinteger
  • popularityinteger
  • savedboolean
  • sharingInfoobject
    • shareIdstring
    • shareUrlstring
  • successboolean
  • trackNumberinteger
  • uristring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 2

    Review these request fields before running. Keep the published provider and request method unchanged.

    id
    Spotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead.
    url
    Spotify song URL. If you'd prefer to use the id instead, you can use the id parameter instead.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/scrapecreators/v1/spotify/track?id=1ITJflybJsfarsUtiBvkfK' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "__typename": "Track",
      "albumOfTrack": {
        "copyright": [
          {
            "text": "© 2026 Atlantic Records Group LLC",
            "type": "C"
          }
        ],
        "courtesyLine": "",
        "coverArt": {
          "extractedColors": {
            "colorRaw": {
              "hex": "#502020"
            }
          },
          "sources": [
            {
              "height": 300,
              "url": "https://i.scdn.co/image/ab67616d00001e02d4ffe3d4cddee37b9fd6ffcd",
              "width": 300
            }
          ]
        },
        "date": {
          "isoString": "2026-04-24T00:00:00Z",
          "precision": "DAY",
          "year": 2026
        },
        "id": "2xkYTmqjear3lSGydIn7wh",
        "name": "Kehlani",
        "playability": {
          "playable": true
        },
        "sharingInfo": {
          "shareId": "tgjmwiVTRmaaQGK0sKdcJg",
          "shareUrl": "https://open.spotify.com/album/2xkYTmqjear3lSGydIn7wh?si=tgjmwiVTRmaaQGK0sKdcJg"
        },
        "tracks": [
          {
            "track": {
              "trackNumber": 1,
              "uri": "spotify:track:4PDLyPnlDeu7PRzAUyyUO3"
            }
          }
        ],
        "type": "ALBUM",
        "uri": "spotify:album:2xkYTmqjear3lSGydIn7wh"
      },
      "associationsV3": {
        "audioAssociations": [],
        "videoAssociations": {
          "totalCount": 0
        }
      },
      "contentRating": {
        "label": "EXPLICIT"
      },
      "credits_charged": 1,
      "credits_remaining": 49997935404,
      "duration": {
        "totalMilliseconds": 186112
      },
      "firstArtist": [
        {
          "discography": {
            "albums": [
              {
                "coverArt": {
                  "extractedColors": {
                    "colorRaw": {
                      "hex": "#502020"
                    }
                  },
                  "sources": [
                    {
                      "height": 300,
                      "url": "https://i.scdn.co/image/ab67616d00001e02d4ffe3d4cddee37b9fd6ffcd",
                      "width": 300
                    },
                    {
                      "height": 64,
                      "url": "https://i.scdn.co/image/ab67616d00004851d4ffe3d4cddee37b9fd6ffcd",
                      "width": 64
                    },
                    {
                      "height": 640,
                      "url": "https://i.scdn.co/image/ab67616d0000b273d4ffe3d4cddee37b9fd6ffcd",
                      "width": 640
                    }
                  ]
                },
                "date": {
                  "isoString": "2026-04-24T00:00:00Z",
                  "precision": "DAY",
                  "year": 2026
                },
                "name": "Kehlani",
                "playability": {
                  "playable": true
                },
                "sharingInfo": {
                  "shareId": "o2YeInVoTnSojn2WeDO3JQ",
                  "shareUrl": "https://open.spotify.com/album/2xkYTmqjear3lSGydIn7wh?si=o2YeInVoTnSojn2WeDO3JQ"
                },
                "tracks": [
                  {
                    "track": {
                      "trackNumber": 1,
                      "uri": "spotify:track:4PDLyPnlDeu7PRzAUyyUO3"
                    }
                  }
                ],
                "type": "ALBUM",
                "uri": "spotify:album:2xkYTmqjear3lSGydIn7wh"
              }
            ],
            "popularReleasesAlbums": [
              {
                "coverArt": {
                  "extractedColors": {
                    "colorRaw": {
                      "hex": "#502020"
                    }
                  },
                  "sources": [
                    {
                      "height": 300,
                      "url": "https://i.scdn.co/image/ab67616d00001e02d4ffe3d4cddee37b9fd6ffcd",
                      "width": 300
                    },
                    {
                      "height": 64,
                      "url": "https://i.scdn.co/image/ab67616d00004851d4ffe3d4cddee37b9fd6ffcd",
                      "width": 64
                    },
                    {
                      "height": 640,
                      "url": "https://i.scdn.co/image/ab67616d0000b273d4ffe3d4cddee37b9fd6ffcd",
                      "width": 640
                    }
                  ]
                },
                "date": {
                  "isoString": "2026-04-24T00:00:00Z",
                  "precision": "DAY",
                  "year": 2026
                },
                "name": "Kehlani",
                "playability": {
                  "playable": true
                },
                "sharingInfo": {
                  "shareId": "kDxxO1hmRp2Bpu66R81Ujw",
                  "shareUrl": "https://open.spotify.com/album/2xkYTmqjear3lSGydIn7wh?si=kDxxO1hmRp2Bpu66R81Ujw"
                },
                "tracks": [
                  {
                    "track": {
                      "trackNumber": 1,
                      "uri": "spotify:track:4PDLyPnlDeu7PRzAUyyUO3"
                    }
                  }
                ],
                "type": "ALBUM",
                "uri": "spotify:album:2xkYTmqjear3lSGydIn7wh"
              }
            ],
            "singles": [
              {
                "coverArt": {
                  "extractedColors": {
                    "colorRaw": {
                      "hex": "#502020"
                    }
                  },
                  "sources": [
                    {
                      "height": 300,
                      "url": "https://i.scdn.co/image/ab67616d00001e02b12f0dbd960ab2e252b64a95",
                      "width": 300
                    },
                    {
                      "height": 64,
                      "url": "https://i.scdn.co/image/ab67616d00004851b12f0dbd960ab2e252b64a95",
                      "width": 64
                    },
                    {
                      "height": 640,
                      "url": "https://i.scdn.co/image/ab67616d0000b273b12f0dbd960ab2e252b64a95",
                      "width": 640
                    }
                  ]
                },
                "date": {
                  "isoString": "2026-04-23T00:00:00Z",
                  "precision": "DAY",
                  "year": 2026
                },
                "name": "Sweet Nuthins (feat. Leon Thomas)",
                "playability": {
                  "playable": true
                },
                "sharingInfo": {
                  "shareId": "YbH9FRW_RCKl62VAEMgVhA",
                  "shareUrl": "https://open.spotify.com/album/4OIEqxUAhJ3fxEVqf5L9GB?si=YbH9FRW_RCKl62VAEMgVhA"
                },
                "tracks": [
                  {
                    "track": {
                      "trackNumber": 1,
                      "uri": "spotify:track:7qa1DytPRohFzfOarz6orJ"
                    }
                  }
                ],
                "type": "SINGLE",
                "uri": "spotify:album:4OIEqxUAhJ3fxEVqf5L9GB"
              }
            ],
            "topTracks": [
              {
                "track": {
                  "albumOfTrack": {
                    "coverArt": {
                      "extractedColors": {
                        "colorRaw": {
                          "hex": "#502020"
                        }
                      },
                      "sources": [
                        {
                          "height": 300,
                          "url": "https://i.scdn.co/image/ab67616d00001e02d9233d03f5434d9dd46c9fd6",
                          "width": 300
                        },
                        {
                          "height": 64,
                          "url": "https://i.scdn.co/image/ab67616d00004851d9233d03f5434d9dd46c9fd6",
                          "width": 64
                        },
                        {
                          "height": 640,
                          "url": "https://i.scdn.co/image/ab67616d0000b273d9233d03f5434d9dd46c9fd6",
                          "width": 640
                        }
                      ]
                    },
                    "name": "Kehlani",
                    "uri": "spotify:album:5KS0QmxwUmSPsolg9VaSAU"
                  },
                  "artists": [
                    {
                      "profile": {
                        "name": "Kehlani"
                      },
                      "uri": "spotify:artist:0cGUm45nv7Z6M6qdXYQGTX"
                    }
                  ],
                  "associationsV3": {
                    "audioAssociations": [],
                    "videoAssociations": {
                      "totalCount": 1
                    }
                  },
                  "contentRating": {
                    "label": "NONE"
                  },
                  "duration": {
                    "totalMilliseconds": 237928
                  },
                  "id": "6sTlzpJaFGkFQ4BNccmbW9",
                  "name": "Folded",
                  "playability": {
                    "playable": true
                  },
                  "playcount": 469410555,
                  "previews": {
                    "audioPreviews": [
                      {
                        "url": "https://p.scdn.co/mp3-preview/ece91419129fc9d92ae8f7729a92693b7802d7ca"
                      }
                    ]
                  },
                  "uri": "spotify:track:6sTlzpJaFGkFQ4BNccmbW9"
                }
              }
            ]
          },
          "id": "0cGUm45nv7Z6M6qdXYQGTX",
          "profile": {
            "name": "Kehlani"
          },
          "relatedContent": {
            "relatedArtists": [
              {
                "id": "7HkdQ0gt53LP4zmHsL0nap",
                "profile": {
                  "name": "Ella Mai"
                },
                "uri": "spotify:artist:7HkdQ0gt53LP4zmHsL0nap",
                "visuals": {
                  "avatarImage": {
                    "sources": [
                      {
                        "height": 640,
                        "url": "https://i.scdn.co/image/ab6761610000e5eb5d6ed813fc2c93765152ff7e",
                        "width": 640
                      },
                      {
                        "height": 160,
                        "url": "https://i.scdn.co/image/ab6761610000f1785d6ed813fc2c93765152ff7e",
                        "width": 160
                      },
                      {
                        "height": 320,
                        "url": "https://i.scdn.co/image/ab676161000051745d6ed813fc2c93765152ff7e",
                        "width": 320
                      }
                    ]
                  }
                }
              }
            ]
          },
          "uri": "spotify:artist:0cGUm45nv7Z6M6qdXYQGTX",
          "visuals": {
            "avatarImage": {
              "sources": [
                {
                  "height": 640,
                  "url": "https://i.scdn.co/image/ab6761610000e5ebcf865d7d399a41e1bd036149",
                  "width": 640
                }
              ]
            }
          }
        }
      ],
      "id": "1ITJflybJsfarsUtiBvkfK",
      "mediaType": "AUDIO",
      "name": "Shoulda Never (feat. USHER)",
      "otherArtists": [
        {
          "discography": {
            "popularReleasesAlbums": [
              {
                "coverArt": {
                  "extractedColors": {
                    "colorRaw": {
                      "hex": "#404030"
                    }
                  },
                  "sources": [
                    {
                      "height": 300,
                      "url": "https://i.scdn.co/image/ab67616d00001e02365b3fb800c19f7ff72602da",
                      "width": 300
                    },
                    {
                      "height": 64,
                      "url": "https://i.scdn.co/image/ab67616d00004851365b3fb800c19f7ff72602da",
                      "width": 64
                    },
                    {
                      "height": 640,
                      "url": "https://i.scdn.co/image/ab67616d0000b273365b3fb800c19f7ff72602da",
                      "width": 640
                    }
                  ]
                },
                "date": {
                  "isoString": "2004-03-23T00:00:00Z",
                  "precision": "DAY",
                  "year": 2004
                },
                "name": "Confessions (Expanded Edition)",
                "playability": {
                  "playable": true
                },
                "sharingInfo": {
                  "shareId": "pCyjyjRLTMCCoMKOe1QAHg",
                  "shareUrl": "https://open.spotify.com/album/1RM6MGv6bcl6NrAG8PGoZk?si=pCyjyjRLTMCCoMKOe1QAHg"
                },
                "tracks": [
                  {
                    "track": {
                      "trackNumber": 1,
                      "uri": "spotify:track:1tV1G9juUCSNEDdVhCaWKh"
                    }
                  }
                ],
                "type": "ALBUM",
                "uri": "spotify:album:1RM6MGv6bcl6NrAG8PGoZk"
              }
            ]
          },
          "id": "23zg3TcAtWQy7J6upgbUnj",
          "profile": {
            "name": "USHER"
          },
          "uri": "spotify:artist:23zg3TcAtWQy7J6upgbUnj",
          "visuals": {
            "avatarImage": {
              "sources": [
                {
                  "height": 640,
                  "url": "https://i.scdn.co/image/ab6761610000e5ebb13684907cd609d10d41f0b8",
                  "width": 640
                }
              ]
            }
          }
        }
      ],
      "playability": {
        "playable": true,
        "reason": "PLAYABLE"
      },
      "playcount": 7190090,
      "popularity": 75,
      "saved": false,
      "sharingInfo": {
        "shareId": "uSMzDZBBRDOHdFcn87thNw",
        "shareUrl": "https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK?si=uSMzDZBBRDOHdFcn87thNw"
      },
      "success": true,
      "trackNumber": 8,
      "uri": "spotify:track:1ITJflybJsfarsUtiBvkfK"
    }

Common questions

Do I need both id and url to look up a track?

No. Provide either a Spotify track id (such as 1ITJflybJsfarsUtiBvkfK) or a Spotify track url.

Does this endpoint return audio streams or lyrics?

No. It returns track metadata, album context, play counts, duration and sharing links.

What unit is track duration returned in?

duration.totalMilliseconds reports track length in milliseconds.

How does this differ from the POST Spotify Track API?

This GET implementation returns native Spotify structures including albumOfTrack.copyright[], contentRating.label and firstArtist[] instead of the normalized output.data wrapper.

Are copyright lines in albumOfTrack a reuse license?

No. They report Spotify catalog attribution strings and do not grant audio or artwork reuse rights.

Do upstream credits_charged fields affect OpenAny pricing?

No. OpenAny bills the fixed per-call price shown in the pricing area.

Use Spotify Track Details API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.