market_stats
COST: 1 credit per call (OmniaAuto credits; my_usage shows the balance; at zero a call returns out_of_credits).
Market statistics for any slice of Canadian vehicle listings: vehicle counts, average/median price and mileage, with optional group_by breakdowns. Use it for price and supply questions across many vehicles; use valuation for one year/make/model estimate, search_listings to see individual vehicles and coverage for the dataset's overall size. An invalid condition, group_by, sort, near or radius_km returns an error and costs nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| make | No | Make, e.g. Toyota; exact match, any case | |
| near | No | Centre of a radius search: city, postal code or lat,lng (e.g. 53.54,-113.49); radius_km sets its size | |
| sort | No | n = largest groups first (default); sold_30d = most sold in 30 days, needs group_by and condition Used or New | |
| model | No | Model, e.g. RAV4; exact match, any case | |
| group_by | No | Up to 2 of city, trim, year, condition, model (largest 25 groups, rest as Other); city needs province or near, trim needs make and model | |
| province | No | 2-letter province code, e.g. AB, ON, QC; empty = all Canada | |
| year_max | No | Latest model year, e.g. 2024; 0 = any | |
| year_min | No | Earliest model year, e.g. 2020; 0 = any | |
| body_type | No | SUV, Sedan, Pickup, Hatchback, Minivan, Coupe, Van, Convertible or Wagon; empty = any | |
| condition | No | New, Used, Certified or Demo; empty = any | |
| radius_km | No | Radius around near, in km (default 25, max 500); requires near |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | Resolved near anchor and radius_km, on a radius search | |
| note | No | ||
| unit | No | Always vehicle | |
| error | No | Set on a refusal, e.g. out_of_credits, not_found; result fields are then absent | |
| detail | No | ||
| groups | No | One object per group, with n and price figures | |
| allowed | No | Accepted values, on an invalid_* error | |
| pricing | No | ||
| summary | No | n, unique_vins, avg_price, median_price, min_price, max_price, avg_mileage, priced | |
| group_by | No | Breakdown dimensions applied | |
| by_province | No | ||
| by_condition | No | ||
| by_certification | No | ||
| credits_remaining | No | Credits left in the current period |