# Spotify Track Colors

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

- **Documentation:** [https://scrappa.co/docs/spotify-api/spotify_track_colors](https://scrappa.co/docs/spotify-api/spotify_track_colors)
- **API group:** Spotify API
- **Endpoint:** `GET https://scrappa.co/api/spotify/track/colors`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `image_uri` | string | Yes | <p>Spotify image id or full spotify:image: URI.</p> |

## Example response

```json
{
    "colors": {
        "raw": "#882818",
        "dark": "#882818",
        "light": "#D73F26"
    },
    "image_uri": "ab67616d00001e0219a88dd5c7118e87d7b1619e",
    "search_parameters": {
        "engine": "spotify_track_colors",
        "image_uri": "ab67616d00001e0219a88dd5c7118e87d7b1619e"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 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. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
