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

CarMax Media

GET https://scrappa.co/api/carmax/v1/media/{stockNumber}

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.

CarMax Media 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/carmax/v1/media/{stockNumber}
Auth header
x-api-key
Cost
1 credit/request
stockNumber = 10
Response preview
200 OK
Example JSON appears below when a response schema is available for this endpoint.

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.

stockNumber integer Required

8-digit CarMax stock number.

Example value 10

Errors

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

422

HTTP 422

A public parameter is invalid. This response is not billable.

503

HTTP 503

CarMax did not return usable data for this request. This response is not billable.

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.