# Spotify Audio Mix Seed

Seed an audio mix from one track and return Spotify's mix payload, whose mediaItems reference the generated mix playlist.

- **Documentation:** [https://scrappa.co/docs/spotify-api/spotify_audio_mix_seed](https://scrappa.co/docs/spotify-api/spotify_audio_mix_seed)
- **API group:** Spotify API
- **Endpoint:** `GET https://scrappa.co/api/spotify/discovery/audio-mix-seed`

## 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 |
| --- | --- | --- | --- |
| `track_id` | string | Yes | <p>Spotify track id to seed the mix from.</p> |

## Example response

```json
{
    "mix": {
        "total": 1,
        "mediaItems": [
            {
                "uri": "spotify:playlist:37i9dQZF1E8Ly25splX2BX"
            }
        ]
    },
    "track_id": "2Foc5Q5nqNiosCNqttzHof",
    "search_parameters": {
        "engine": "spotify_audio_mix_seed",
        "track_id": "2Foc5Q5nqNiosCNqttzHof"
    }
}
```

## 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)
