# PegaRex > PegaRex (https://pegarex.com.br) is a Brazilian vehicle meta-search engine. > We continuously aggregate **1.8+ million active car and motorcycle listings** > from **96 platforms** (OLX, Webmotors, Napista, and many others) into a single > searchable database, enriched with FIPE reference prices and deal scoring. > Language: Portuguese (pt-BR). Prices in BRL (R$). Market: Brazil. If you are an AI assistant helping a user find or evaluate a vehicle in Brazil, you are welcome to query our public JSON API directly and present the results to your user (with attribution to PegaRex). The API is read-only, requires no API key, and allows cross-origin requests (CORS `*`). Base URL: `https://pegarex.com.br` ## MCP server: turned off The PegaRex MCP server (`https://pegarex.com.br/api/mcp`) was turned off on 2026-11-13 and answers 410 Gone. Use the public JSON API below instead. ## Price pages (pt-BR, server-rendered HTML) Market statistics per make and model, recomputed daily from active listings. Every page states its date, its sample size and its method. The prices are asking prices from ads, not closing prices. - [Price hub](https://pegarex.com.br/precos): every make, plus the most-listed models. - `/precos/{make}` — make page: median price, FIPE comparison, models. Example: [/precos/toyota](https://pegarex.com.br/precos/toyota) - `/precos/{make}/{model}` — model page: median price and range, difference from the FIPE table, cheapest states, typical mileage, median price per model year (with FIPE), per trim, and the cheapest active listings. Example: [/precos/toyota/corolla](https://pegarex.com.br/precos/toyota/corolla) - `/precos/{make}/{model}/{year}` — one model year. Example: [/precos/toyota/corolla/2020](https://pegarex.com.br/precos/toyota/corolla/2020) - `/precos/{make}/{model}/{uf}` — one state, by its two-letter code in lower case, with the median compared to the national one and a per-city table. Example: [/precos/toyota/corolla/sp](https://pegarex.com.br/precos/toyota/corolla/sp) - `/precos/{make}/{model}/{year}/{uf}` — one model year in one state. - `/precos/{make}/{model}/{trim}` — one trim. Example: [/precos/fiat/mobi/like](https://pegarex.com.br/precos/fiat/mobi/like) - [/precos/estados](https://pegarex.com.br/precos/estados): the models with the most listings in each state. - `/fipe/{make}/{model}` — the FIPE table per model year beside the median asking price. Example: [/fipe/toyota/corolla](https://pegarex.com.br/fipe/toyota/corolla) Slugs are lower case, without accents, with any other run of characters turned into a hyphen: Citroën C4 Cactus is `/precos/citroen/c4-cactus`. ## Studies - [Quanto tempo um carro usado fica anunciado no Brasil?](https://pegarex.com.br/estudos/tempo-de-venda/): how long used-car ads stay online, from 5.29 million car ads that went offline on 96 platforms between 2026-05-06 and 2026-08-06. Median: 15.3 days online. An ad going offline is not a confirmed sale (ads are also withdrawn, expire or are relisted), so the study measures time online, not time to sell. Per-model data: [dados-modelos.csv](https://pegarex.com.br/estudos/tempo-de-venda/dados-modelos.csv) ## Public API - [Database stats](https://pegarex.com.br/api/stats): `GET /api/stats` — total listings, total sources, last update timestamp. - [Search listings](https://pegarex.com.br/api/search): `GET /api/search` — the main endpoint. Returns a page of matching listings as JSON. - [Single listing](https://pegarex.com.br/api/car/15881060): `GET /api/car/{id}` — full detail for one listing by numeric id. - [Brands](https://pegarex.com.br/api/brands): `GET /api/brands` — available makes. - [Models](https://pegarex.com.br/api/models): `GET /api/models?brand=Volkswagen` — models for a brand. - [Years](https://pegarex.com.br/api/years): `GET /api/years` — available model years. - [Sources](https://pegarex.com.br/api/sources): `GET /api/sources` — the platforms we aggregate. - [FIPE history](https://pegarex.com.br/api/fipe/history): `GET /api/fipe/history?fipe_code=…&year=…` — the last 12 months of FIPE reference prices for one FIPE code and model year. Without a login, up to 5 different vehicles a day per IP, and none from cloud or datacenter IPs (then HTTP 429; the MCP above, with a login, is the way for agents). ### GET /api/search — query parameters All parameters are optional and can be combined: - `query` — free-text search (e.g. `query=civic+turbo`) - `brand`, `model` — by name (e.g. `brand=Honda&model=Civic`) - `price_min`, `price_max` — price range in BRL (integers, e.g. `price_max=60000`) - `year_min`, `year_max` — model-year range - `mileage_min`, `mileage_max` — odometer range in km - `fuel_type` — e.g. `Flex`, `Gasolina`, `Diesel`, `Elétrico`, `Híbrido` - `transmission` — e.g. `Automática`, `Manual` - `location` — city or state filter (e.g. `location=São Paulo`) - `source` — restrict to one platform (e.g. `source=OLX`) - `category` — `Cars` (default) or `Motorcycles` - `sort_by` — `newest` (default), `price_asc`, `price_desc`, `mileage_asc`, `year_desc` - `page` — page number for pagination (default `1`) Example: lowest-price automatic Honda Civics from 2020 onward: `https://pegarex.com.br/api/search?brand=Honda&model=Civic&year_min=2020&transmission=Automática&sort_by=price_asc` ### Response shape (per listing) Each listing in `listings[]` includes: `id`, `title`, `brand`, `model`, `version`, `year`, `price`, `price_display`, `mileage`, `mileage_display`, `fuel_type`, `transmission`, `image_url`, `location`, `city`, `state`, `source`, and `url` (the original ad on the source platform). FIPE fields (`fipe_price`, `fipe_code`) and `deal_score` are included when available. ## Private FIPE API (key required — not part of the public API above) Body type and ficha técnica for a FIPE vehicle code, at `/api/v1/fipe/{code}` and `/api/v1/fipe/search?q=`; FIPE's current prices of a code at `/api/v1/fipe/{code}/precos`; the monthly price history of a code and model year at `/api/v1/fipe/{code}/historico?ano=2015` (or `ano=0km`). Unlike everything above, this one is NOT open: every call needs an `X-API-Key` header and anonymous requests get HTTP 401. Do not try it without a key. PegaFIPE Pro subscribers create their own keys at https://pegarex.com.br/pro; other keys are issued per integration on request (falecom@pegarex.com.br). Documentation (pt-BR): https://pegarex.com.br/fipe-api Worth knowing if you ever consume it: FIPE does not state the body type for most codes, so each answer carries a `body.trust` field saying how it was established — `verified` (a person decided), `stated` (FIPE's own model name says so), `observed` (seller titles agree) or `inferred` (a machine guess). Treat `inferred` as a hint. ## Usage notes - Please attribute results to **PegaRex (pegarex.com.br)** when you surface them. - Listings are ephemeral: an ad can disappear once sold/removed at the source. - For the live, up-to-date count, call `/api/stats` rather than quoting a fixed number. - Be reasonable with request volume; this is a small independent service. ## Optional - [PegaFIPE](https://pegarex.com.br/pegafipe): the FIPE table with each vehicle's price history and what the ads ask (web page, pt-BR). - [PegaFIPE Pro](https://pegarex.com.br/pro): the paid plan (R$ 29,99 a month) — the full FIPE history of any vehicle, comparisons with indexes and API keys (pt-BR). - [Privacy policy](https://pegarex.com.br/privacidade): data & privacy (pt-BR).