# Milanuncios Car Models API Documentation

Returns the models of one car make, addressed by make_id from /car-makes. Use a model id as model_id in /search together with brand_id. An unknown make_id answers a 404 with error.code NOT_FOUND, which is not billable.

- **Documentation:** [https://scrappa.co/docs/milanuncios-api/milanuncios_car_models](https://scrappa.co/docs/milanuncios-api/milanuncios_car_models)
- **API group:** Milanuncios API
- **Endpoint:** `GET https://scrappa.co/api/milanuncios/car-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` | integer | Yes | Car make id from /car-makes, for example 7 for BMW. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/milanuncios/car-models?make_id=7"
```

## Example response

```json
{
    "success": true,
    "data": {
        "make_id": 7,
        "models": [
            {
                "id": 1056,
                "name": "i3"
            },
            {
                "id": 70,
                "name": "Serie 3"
            },
            {
                "id": 539,
                "name": "Serie 1"
            }
        ]
    },
    "meta": {
        "endpoint_family": "car_models",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested ad or car make was not found or has expired. This response is not billable. |
| 422 | Validation Error | A parameter is invalid, including a sort newest or oldest on a real estate category or an offset + limit above 10000. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result from Milanuncios. 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)
