# CarMax Media

Return the hero image URL and content type for one CarMax vehicle by stock number. The endpoint verifies the image exists on the CDN and returns the public URL; it does not proxy the image bytes. The CDN serves webp despite the .jpg extension.

- **Documentation:** [https://scrappa.co/docs/carmax-api/carmax_media](https://scrappa.co/docs/carmax-api/carmax_media)
- **API group:** CarMax API
- **Endpoint:** `GET https://scrappa.co/api/carmax/v1/media/{stockNumber}`

## 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 |
| --- | --- | --- | --- |
| `stockNumber` | integer | Yes | 8-digit CarMax stock number. |

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | A public parameter is invalid. This response is not billable. |  |
|  | CarMax did not return usable data for this request. This response is not billable. |  |

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