# Carvana Search API Documentation

Search current Carvana vehicle listings with validated filters, sorting, and page pagination. A valid empty result is a successful response.

- **Documentation:** [https://scrappa.co/docs/carvana-api/carvana_search](https://scrappa.co/docs/carvana-api/carvana_search)
- **API group:** Carvana API
- **Endpoint:** `POST https://scrappa.co/api/carvana/search`

## 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 |
| --- | --- | --- | --- |
| `pagination.page` | integer | No | 1-based result page. |
| `pagination.pageSize` | integer | No | Listings per page, 1 to 100. |
| `filters.makes` | array | No | Array of make objects with name, models and parentModels. |
| `filters.price` | object | No | Object with min and max USD. |
| `filters.year` | object | No | Object with min and max year. |
| `filters.mileage` | object | No | Object with min and max miles. |
| `filters.bodyStyles` | array | No | Array of slugs: suv, truck, sedan, coupe, hatchback, convertible, minivan, wagon. |
| `filters.fuelTypes` | array | No | Array of fuel types. |
| `filters.transmissions` | array | No | Array: Automatic, Manual. |
| `filters.driveTypes` | array | No | Array: 4wd, Awd, Fwd, Rwd. |
| `filters.vehicleIds` | array | No | Array of vehicle IDs for detail lookup. |
| `zip5` | string | No | 5-digit US zip code. |
| `sortBy` | string | No | Sort order. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/carvana/search?zip5=30305&pagination%5Bpage%5D=1&pagination%5BpageSize%5D=24&sortBy=MostPopular"
```

## Example response

```json
{
    "success": true,
    "data": {
        "vehicles": [],
        "pagination": {
            "current_page": 1,
            "page_size": 24,
            "total_matched_inventory": 0,
            "total_matched_pages": 0,
            "has_more": false
        }
    },
    "meta": {
        "endpoint_family": "search"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 400 | Carvana rejected the request filters or parameters |  |
| 422 | Carvana could not accept the requested filters |  |
| 503 | The Carvana API is temporarily unavailable |  |

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