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
Spotify Track Details API
Prepare your request, then continue with your agent.
Selected price
$0.00188 / call
- Provider
- API
- Pricing
On this page
Overview
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
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
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
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
scrapecreatorsCurrent Spotify — Track · GET · View API reference | $0.00188 / call | 0 | —successP50— |
- 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.
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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
id | URL query parametersquery | string | No | Spotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead. |
url | URL query parametersquery | string | No | 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
__typenamestringalbumOfTrackobjectcopyrightobject[]textstringtypestring
courtesyLinestringcoverArtobjectextractedColorsobjectcolorRawobjecthexstring
sourcesobject[]heightintegerurlstringwidthinteger
dateobjectisoStringstringprecisionstringyearinteger
idstringnamestringplayabilityobjectplayableboolean
sharingInfoobjectshareIdstringshareUrlstring
tracksobject[]trackobjecttrackNumberintegeruristring
typestringuristring
associationsV3objectaudioAssociationsunknown[]videoAssociationsobjecttotalCountinteger
contentRatingobjectlabelstring
credits_chargedintegercredits_remainingintegerdurationobjecttotalMillisecondsinteger
firstArtistobject[]discographyobjectalbumsobject[]coverArtobjectextractedColorsobjectcolorRawobjecthexstring
sourcesobject[]heightintegerurlstringwidthinteger
dateobjectisoStringstringprecisionstringyearinteger
namestringplayabilityobjectplayableboolean
sharingInfoobjectshareIdstringshareUrlstring
tracksobject[]trackobjecttrackNumberintegeruristring
typestringuristring
popularReleasesAlbumsobject[]coverArtobjectextractedColorsobjectcolorRawobjecthexstring
sourcesobject[]heightintegerurlstringwidthinteger
dateobjectisoStringstringprecisionstringyearinteger
namestringplayabilityobjectplayableboolean
sharingInfoobjectshareIdstringshareUrlstring
tracksobject[]trackobjecttrackNumberintegeruristring
typestringuristring
singlesobject[]coverArtobjectextractedColorsobjectcolorRawobjecthexstring
sourcesobject[]heightintegerurlstringwidthinteger
dateobjectisoStringstringprecisionstringyearinteger
namestringplayabilityobjectplayableboolean
sharingInfoobjectshareIdstringshareUrlstring
tracksobject[]trackobjecttrackNumberintegeruristring
typestringuristring
topTracksobject[]trackobjectalbumOfTrackobjectcoverArtobjectextractedColorsobjectcolorRawobjecthexstring
sourcesobject[]heightintegerurlstringwidthinteger
namestringuristring
artistsobject[]profileobjectnamestring
uristring
associationsV3objectaudioAssociationsunknown[]videoAssociationsobjecttotalCountinteger
contentRatingobjectlabelstring
durationobjecttotalMillisecondsinteger
idstringnamestringplayabilityobjectplayableboolean
playcountintegerpreviewsobjectaudioPreviewsobject[]urlstring
uristring
idstringprofileobjectnamestring
relatedContentobjectrelatedArtistsobject[]idstringprofileobjectnamestring
uristringvisualsobjectavatarImageobjectsourcesobject[]heightintegerurlstringwidthinteger
uristringvisualsobjectavatarImageobjectsourcesobject[]heightintegerurlstringwidthinteger
idstringmediaTypestringnamestringotherArtistsobject[]discographyobjectpopularReleasesAlbumsobject[]coverArtobjectextractedColorsobjectcolorRawobjecthexstring
sourcesobject[]heightintegerurlstringwidthinteger
dateobjectisoStringstringprecisionstringyearinteger
namestringplayabilityobjectplayableboolean
sharingInfoobjectshareIdstringshareUrlstring
tracksobject[]trackobjecttrackNumberintegeruristring
typestringuristring
idstringprofileobjectnamestring
uristringvisualsobjectavatarImageobjectsourcesobject[]heightintegerurlstringwidthinteger
playabilityobjectplayablebooleanreasonstring
playcountintegerpopularityintegersavedbooleansharingInfoobjectshareIdstringshareUrlstring
successbooleantrackNumberintegeruristring
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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'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" }