# Carwow Used Car Search API Documentation

Search used cars listed on Carwow UK: for each car the listing id, public url, title, variant, price in GBP, location, year, mileage in miles, fuel, transmission, engine size, Carwow deal score, image and whether the card is a sponsored ad. Carwow returns 8 cars per page; page up to 100. When a brand or model has few cars, Carwow may add similar cars to the page, so check the title. A valid empty result is a successful response.

- **Documentation:** [https://scrappa.co/docs/carwow-api/carwow_search](https://scrappa.co/docs/carwow-api/carwow_search)
- **API group:** Carwow API
- **Endpoint:** `GET https://scrappa.co/api/carwow/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 |
| --- | --- | --- | --- |
| `brand` | string | No | Brand slug, lowercase letters, numbers and hyphens. Example: bmw. |
| `model` | string | No | Model slug. Needs a brand. Example: 4-series. |
| `fuel` | string | No | One or more of petrol, diesel, hybrid, electric, separated by commas. Example: diesel,hybrid. |
| `transmission` | string | No | automatic or manual. |
| `page` | integer | No | Page number, 1 to 100. Defaults to 1. Each page holds up to 8 cars. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/carwow/search?brand=bmw&model=4-series&page=2"
```

## Example response

```json
{
    "success": true,
    "data": {
        "results": [
            {
                "id": "477cee498868031513cd61317c4a9ccc",
                "url": "https://quotes.carwow.co.uk/deals/477cee498868031513cd61317c4a9ccc",
                "title": "BMW 4 Series",
                "variant": "420i Step Auto M Sport",
                "price": 27490,
                "location": "Magdalen Laver",
                "image_url": "https://carwow-uk-0.imgix.net/stock-car-custom-images/original/4441907d-bdab-08d9-8bd7-6a29391e612e?auto=format&cs=tinysrgb&fit=clip&ixlib=rb-1.1.0&q=60&w=900",
                "deal_score": 6.3,
                "currency": "GBP",
                "transmission": "automatic",
                "fuel": "petrol",
                "engine_litres": 2,
                "year": 2022,
                "mileage": 20800,
                "sponsored": true,
                "top_rated_dealer": true
            },
            {
                "id": "00d4c42ce9464c11c4c810eba842be46",
                "url": "https://quotes.carwow.co.uk/deals/00d4c42ce9464c11c4c810eba842be46",
                "title": "BMW 4 Series",
                "variant": "420i Step Auto M Sport",
                "price": 22580,
                "location": "Hilsea",
                "image_url": "https://carwow-uk-2.imgix.net/stock-car-custom-images/original/f12f9d8d-9468-7dfa-c822-475d46c3cb8c?auto=format&cs=tinysrgb&fit=clip&ixlib=rb-1.1.0&q=60&w=900",
                "deal_score": 6.3,
                "currency": "GBP",
                "transmission": "automatic",
                "fuel": "petrol",
                "engine_litres": 2,
                "year": 2021,
                "mileage": 53139,
                "sponsored": true,
                "top_rated_dealer": true
            }
        ],
        "page": 2,
        "has_more": true
    },
    "meta": {
        "endpoint_family": "search",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 503 | Invalid Source Response | The upstream answered with a page that no longer matches the documented contract. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

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