---
title: "Search Cars Get"
method: GET
path: "/api/search"
---

# Search Cars Get

`GET /api/search`

## Request

- Base URL: `https://pegarex.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://pegarex.com.br/api/search`
- Auth: HTTP bearer

GET endpoint for searching cars.

## Query parameters

- `brand` string, nullable
- `model` string, nullable
- `brand_id` integer, nullable
- `model_id` integer, nullable
- `version_id` integer, nullable
- `query` string, nullable
- `price_min` integer, nullable
- `price_max` integer, nullable
- `year_min` integer, nullable
- `year_max` integer, nullable
- `fuel_type` string, nullable
- `transmission` string, nullable
- `mileage_min` integer, nullable
- `mileage_max` integer, nullable
- `location` string, nullable
- `source` string, nullable
- `category` string, nullable
- `sort_by` string, nullable
- `page` integer, nullable
- `per_page` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pegarex/apis/pegarex-api.md) · [All operations](https://skmtc.dev/pegarex/apis/pegarex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pegarex/apis/pegarex-api/revisions/8c789c9bd72d?raw)
