Webmotors listing
One Webmotors listing: everything the search returns plus publish and creation dates, every optional item, lifestyle categories, colours, plate ending, the FIPE code and price, and the market price band for that version in the seller's state (FIPE price, lowest, average and highest asking price on Webmotors, update dates). Business sellers come with name, address, CNPJ, opening hours and the start of their phone number as the page shows it; private sellers with the first name the site shows, city and state (no phone). Pass a listing link from the search (its url), or latest=true with search filters to get the first current match.
Every response includes credits_used: the credits this call cost.
Part of the Webmotors API: 8 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
url | string | A webmotors.com.br/comprar/... listing link (the url field of the search). |
latest | string | true: open the first listing the search with the other params returns (make, model, state, ...). Example: true |
make | string | With latest: search filter. With id: the listing's make. Example: toyota |
model | string | With latest: search filter. With id: the listing's model. Example: corolla |
id | string | Listing id (the number at the end of the link); needs make, model and version (cars) or cc (motorcycles). |
version | string | With id: the listing's version as the site shows it. |
cc | string | With id, motorcycles: cylinder capacity. |
vehicle_type | car | bike | car (default) or bike (motorcycles). Default: car |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/webmotors/v1/listing?latest=true&make=toyota&model=corolla" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/webmotors/v1/listing",
params={"latest": "true", "make": "toyota", "model": "corolla"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/webmotors/v1/listing");
url.searchParams.set("latest", "true");
url.searchParams.set("make", "toyota");
url.searchParams.set("model", "corolla");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"id": 81850901,"url": "https://www.webmotors.com.br/comprar/toyota/corolla/20-vvt-ie-flex-xei-direct-shift/4-portas/2019/81850901","vehicle_type": "car","condition": "used","title": "TOYOTA COROLLA 2.0 VVT-IE FLEX XEI DIRECT SHIFT","make": "TOYOTA","model": "COROLLA","version": "2.0 VVT-IE FLEX XEI DIRECT SHIFT","make_id": 35,"model_id": 776,"version_id": 348132,"year_manufacture": 2019,"year_model": 2020,"mileage_km": 156476,"price": 99990,"search_price": 99990,"currency": "BRL","financing": null,"fipe_percent": 89,"good_deal": true,"transmission": "Automática","fuel": "Gasolina e álcool","body_type": "Sedã","doors": 4,"color": "Prata","secondary_color": null,"armored": false,"engine_size": null,"horsepower": null,"traction": null,"trunk_capacity": null,"fuel_tank": null,"wheel_size": null,"cubic_capacity": null,"engine_type": null,"brakes": null,"fuel_system": null,"cooling": null,"starter": null,"auction_history": null,"…": "21 more fields","cached": false,"credits_used": 1}