Skip to content
Scrappa Get API key
Spotify API 1 credit/request

Spotify Track Colors

GET https://scrappa.co/api/spotify/track/colors

Extract the dominant raw, dark and light colours Spotify derives from cover art.

Spotify Track Colors 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/spotify/track/colors
Auth header
x-api-key
Cost
1 credit/request
image_uri = example
Response preview
200 OK
{
    "colors": {
        "raw": "#882818",
        "dark": "#882818",
        "light": "#D73F26"
    },
    "image_uri": "ab67616d00001e0219a88dd5c7118e87d7b1619e",
    "search_parameters": {
        "engine": "spotify_track_colors",
        "image_uri": "ab67616d00001e0219a88dd5c7118e87d7b1619e"
    }
}

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

image_uri string Required

Spotify image id or full spotify:image: URI.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

colors image_uri search_parameters
JSON Response
200 OK
{
    "colors": {
        "raw": "#882818",
        "dark": "#882818",
        "light": "#D73F26"
    },
    "image_uri": "ab67616d00001e0219a88dd5c7118e87d7b1619e",
    "search_parameters": {
        "engine": "spotify_track_colors",
        "image_uri": "ab67616d00001e0219a88dd5c7118e87d7b1619e"
    }
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

404

Not Found

No Spotify data exists for the requested id or chart key. Failed requests are never charged.

422

Validation Error

A required parameter is missing or invalid. See the errors object for the offending field.

503

Upstream Unavailable

Spotify could not be reached or returned an unusable response. This is a failed request and is never charged; it is safe to retry.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.