# CarGurus Models API Documentation

Return the models CarGurus publishes for one make, split into popular and other models. Each model carries its CarGurus id and the make/model filter paths that the search endpoint accepts.

- **Documentation:** [https://scrappa.co/docs/cargurus-api/cargurus_models](https://scrappa.co/docs/cargurus-api/cargurus_models)
- **API group:** CarGurus API
- **Endpoint:** `GET https://scrappa.co/api/cargurus/v1/models`

## 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 |
| --- | --- | --- | --- |
| `make_id` | string | Yes | CarGurus make id from the makes endpoint, for example m4. |
| `locale` | string | No | Market locale, for example en_US. Defaults to en_US. |
| `country_code` | string | No | CarGurus country code. Defaults to UNITED_STATES. |
| `origin` | string | No | CarGurus request origin. Defaults to UNKNOWN. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/cargurus/v1/models?make_id=m4"
```

## Example response

```json
{
    "success": true,
    "data": {
        "make_id": "m4",
        "models": [
            {
                "id": "d3387",
                "name": "ADX",
                "is_popular": true,
                "make_model_trim_paths": [
                    "m4",
                    "m4/d3387"
                ]
            }
        ]
    },
    "meta": {
        "endpoint_family": "models",
        "market": "US"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter or range is invalid. This response is not billable. |
| 503 | Unexpected Upstream Response | CarGurus returned an unrecognized response shape. This response is not billable. |
| 503 | Upstream 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)
