Skip to content

Price statistics by make and model

GET
/v1/market/stats/prices/by-model
curl --request GET \
--url 'https://api.avtopodatki.si/v1/market/stats/prices/by-model?group_by_year=false&min_sample=5&limit=100&include_damaged=false&status=active' \
--header 'Authorization: Bearer <token>'

The same price statistics, one row per make and model, largest groups first. They leave out the same listings: damaged ones unless include_damaged=true, and vans and trucks sold with a trailer.

Makes and models are the canonical ones, the same on every marketplace. A listing with no canonical model is grouped by the marketplace’s model text instead (model: null, site_model set): motorbikes, for now.

Groups smaller than min_sample (default 5) are left out, since a median of two listings says little. Show sample_size alongside any figure. Same filter requirement as GET /v1/market/stats/prices.

Requires the market.read permission.

group_by_year
Group By Year

Also split each group by model year. Groups get smaller, so consider lowering min_sample.

boolean

Also split each group by model year. Groups get smaller, so consider lowering min_sample.

min_sample
Min Sample

Leave out groups with fewer listings than this.

integer
default: 5 >= 1 <= 1000

Leave out groups with fewer listings than this.

limit
Limit

Maximum groups to return.

integer
default: 100 >= 1 <= 500

Maximum groups to return.

include_damaged
Include Damaged

Also count the listings the seller declares damaged or faulty (damaged = true on the listing). Left out by default: they price far below the rest. Vehicles sold for parts (for_parts) stay out even then.

boolean

Also count the listings the seller declares damaged or faulty (damaged = true on the listing). Left out by default: they price far below the rest. Vehicles sold for parts (for_parts) stay out even then.

site_id
Site Id

Only this marketplace. Ids from GET /v1/market/sites.

Any of:
integer

Only this marketplace. Ids from GET /v1/market/sites.

status
Status

active (still advertised, the default), removed (sold or withdrawn) or unknown. A removed listing with reposted_as_id (on its detail) was reposted, not sold; the price statistics leave such ads out.

Any of:
ListingStatus
string
Allowed values: active removed unknown

active (still advertised, the default), removed (sold or withdrawn) or unknown. A removed listing with reposted_as_id (on its detail) was reposted, not sold; the price statistics leave such ads out.

category
Category

Vehicle class: car (the default), lcv (vans), hcv (trucks), bus, moto, other — or all for every class.

Any of:
CategoryFilter
string
Allowed values: car lcv hcv bus moto other all

Vehicle class: car (the default), lcv (vans), hcv (trucks), bus, moto, other — or all for every class.

make
Make

Make, the same for every marketplace: a slug (mercedes-benz) or a name in any case or spelling (Mercedes Benz, MB, VW). Values from GET /v1/market/filter-values. An unknown make is a 422 naming the nearest ones.

Any of:
string
<= 120 characters

Make, the same for every marketplace: a slug (mercedes-benz) or a name in any case or spelling (Mercedes Benz, MB, VW). Values from GET /v1/market/filter-values. An unknown make is a 422 naming the nearest ones.

model
Model

With make: the canonical model line, a slug or a name within that make (golf, GLC); bodies are included (golf takes the Golf Variant), separate models are not (golf-sportsvan). Values from GET /v1/market/filter-values?make=…. Needs make.

Any of:
string
<= 200 characters

With make: the canonical model line, a slug or a name within that make (golf, GLC); bodies are included (golf takes the Golf Variant), separate models are not (golf-sportsvan). Values from GET /v1/market/filter-values?make=…. Needs make.

family
Family

With make: a model and every model under it, a slug or a name (3-series takes the M3).

Any of:
string
<= 200 characters

With make: a model and every model under it, a slug or a name (3-series takes the M3).

year_min
Year Min

Earliest model year, inclusive.

Any of:
integer
>= 1900 <= 2100

Earliest model year, inclusive.

year_max
Year Max

Latest model year, inclusive.

Any of:
integer
>= 1900 <= 2100

Latest model year, inclusive.

price_min
Price Min

Minimum price in EUR, inclusive.

Any of:
number

Minimum price in EUR, inclusive.

price_max
Price Max

Maximum price in EUR, inclusive.

Any of:
number

Maximum price in EUR, inclusive.

mileage_max
Mileage Max

Maximum odometer reading in kilometres.

Any of:
integer

Maximum odometer reading in kilometres.

fuel_type
Fuel Type

Fuel type: petrol, diesel, electric, hybrid, plugin_hybrid, lpg, cng, hydrogen, other.

Any of:
FuelType

How the vehicle is powered.

HYBRID is a full hybrid. A mild hybrid is its fuel (PETROL or DIESEL) with Powertrain.MHEV; a range extender is PLUGIN_HYBRID.

string
Allowed values: petrol diesel electric hybrid plugin_hybrid lpg cng hydrogen other

Fuel type: petrol, diesel, electric, hybrid, plugin_hybrid, lpg, cng, hydrogen, other.

transmission
Transmission

Transmission: manual, automatic, semi_automatic, cvt, other.

Any of:
Transmission

Gearbox type.

string
Allowed values: manual automatic semi_automatic cvt other

Transmission: manual, automatic, semi_automatic, cvt, other.

vin
Vin

Exact VIN. Finds every advert for one vehicle, e.g. one advertised twice or relisted. Searches every vehicle class unless you pass category. Most adverts have no VIN.

Any of:
string
>= 11 characters <= 17 characters

Exact VIN. Finds every advert for one vehicle, e.g. one advertised twice or relisted. Searches every vehicle class unless you pass category. Most adverts have no VIN.

seller_id
Seller Id

Only this seller’s listings. Ids from GET /v1/market/sellers.

Any of:
integer

Only this seller’s listings. Ids from GET /v1/market/sellers.

seen_since
Seen Since

Only listings updated at or after this time (ISO-8601). Use it to fetch what changed since your last sync.

Any of:
string format: date-time

Only listings updated at or after this time (ISO-8601). Use it to fetch what changed since your last sync.

has_price
Has Price

true: only listings with a price; false: only those without (see their price_note). Omit for both.

Any of:
boolean

true: only listings with a price; false: only those without (see their price_note). Omit for both.

q
Q

Title starts with this text, case-insensitive: Volkswagen matches ‘Volkswagen Golf’, Golf does not.

Any of:
string
>= 2 characters <= 100 characters

Title starts with this text, case-insensitive: Volkswagen matches ‘Volkswagen Golf’, Golf does not.

body_style
Body Style

Body, any of these (repeat the parameter). Each vehicle class has its own list (GET /v1/market/filter-values?category=…); a body outside the class’s list is a 422.

Any of:
Array<string>
Allowed values: sedan hatchback wagon suv coupe convertible van minivan pickup microcar panel_van minibus chassis_cab dropside curtainsider box refrigerated tipper hooklift swap_body tractor_unit car_transporter tow_truck crane platform tanker concrete_mixer refuse timber livestock special city_bus intercity_bus coach scooter maxi_scooter naked touring sport enduro motocross supermoto trial cruiser moped minibike quad utv three_wheeler snowmobile ebike kick_scooter other

Body, any of these (repeat the parameter). Each vehicle class has its own list (GET /v1/market/filter-values?category=…); a body outside the class’s list is a 422.

color
Color

Colour, any of these (repeat the parameter).

Any of:
Array<string>
Allowed values: white black grey silver blue red green brown beige yellow orange gold purple other

Colour, any of these (repeat the parameter).

metallic
Metallic

true: metallic paint only. false finds avto.net listings only: the other marketplaces mark metallic paint and nothing else.

Any of:
boolean

true: metallic paint only. false finds avto.net listings only: the other marketplaces mark metallic paint and nothing else.

drive
Drive

Drive, any of these, as the advert states it. avto.net cars state only four-wheel drive, so fwd and rwd find none of them.

Any of:
Array<string>
Allowed values: fwd rwd awd chain belt shaft other

Drive, any of these, as the advert states it. avto.net cars state only four-wheel drive, so fwd and rwd find none of them.

powertrain
Powertrain

Powertrain, any of these. Use it beside fuel_type: a petrol mild hybrid is fuel_type=petrol and powertrain=mhev. Every electrified one: all values but ice. Mild hybrids a seller doesn’t name are ice.

Any of:
Array<string>
Allowed values: ice mhev hev phev erev bev fcev

Powertrain, any of these. Use it beside fuel_type: a petrol mild hybrid is fuel_type=petrol and powertrain=mhev. Every electrified one: all values but ice. Mild hybrids a seller doesn’t name are ice.

emission_class
Emission Class

Emission class, any of these (repeat the parameter).

Any of:
Array<string>
Allowed values: euro_1 euro_2 euro_3 euro_4 euro_5 euro_6 euro_6c euro_6d_temp euro_6d euro_6e euro_7 other

Emission class, any of these (repeat the parameter).

emission_class_min
Emission Class Min

This emission class or a later one: euro_6d takes euro_6d, euro_6e and euro_7. Plain euro_6 (stage not stated) ranks below euro_6c.

Any of:
EmissionClass

European emission standard (Euro 1 … Euro 7).

EURO_6 is Euro 6 with its stage not stated. Rank with :data:avtopodatki_shared.values.EMISSION_ORDER, never by the value string.

string
Allowed values: euro_1 euro_2 euro_3 euro_4 euro_5 euro_6 euro_6c euro_6d_temp euro_6d euro_6e euro_7 other

This emission class or a later one: euro_6d takes euro_6d, euro_6e and euro_7. Plain euro_6 (stage not stated) ranks below euro_6c.

condition
Condition

new, used, demo or pre_registered, any of these. Use it rather than is_new, the marketplace’s own flag.

Any of:
Array<string>
Allowed values: new used demo pre_registered

new, used, demo or pre_registered, any of these. Use it rather than is_new, the marketplace’s own flag.

for_parts
For Parts

true: only vehicles sold for parts; false: every other listing. Only Njuškalo states it.

Any of:
boolean

true: only vehicles sold for parts; false: every other listing. Only Njuškalo states it.

weight_class
Weight Class

Gross weight band, any of these: vans and trucks. avto.net states none.

Any of:
Array<string>
Allowed values: up_to_3_5t 3_5t_to_7_5t over_7_5t

Gross weight band, any of these: vans and trucks. avto.net states none.

gross_weight_kg_min
Gross Weight Kg Min

Minimum gross weight in kg (mobile.de only).

Any of:
integer

Minimum gross weight in kg (mobile.de only).

gross_weight_kg_max
Gross Weight Kg Max

Maximum gross weight in kg (mobile.de only).

Any of:
integer

Maximum gross weight in kg (mobile.de only).

Successful Response

Media typeapplication/json
Response Market Price Stats By Model
Array<object>
PriceStatsGroup

Price statistics for one make and model.

A listing with no canonical model is grouped by the marketplace’s model text: such a group has model: null and site_model set (and the same for the make). Motorbikes are grouped that way for now.

object
sample_size
required
Sample Size

Cars the figures are based on. A car reposted (taken down and advertised again) counts once, as its latest ad.

integer
price_min
required
Price Min
Any of:
string
price_p25
required
Price P25
Any of:
string
price_median
required
Price Median
Any of:
string
price_p75
required
Price P75
Any of:
string
price_max
required
Price Max
Any of:
string
price_mean
required
Price Mean
Any of:
string
mileage_median
required
Mileage Median
Any of:
integer
year_median
required
Year Median
Any of:
integer
median_days_on_market
Median Days On Market

Median days a car was (or has been) on sale: across its ads when it was reposted, gaps not counted; each ad from its publication to when it was last seen (or now).

Any of:
number
make

The canonical make. null: the marketplace named no make, or something that is none (“Ostale marke”, an ATV). Can differ from site_make: Mitsubishi’s “Canter” is a FUSO.

Any of:
MakeOut

A canonical make: the same for every marketplace.

object
slug
required
Slug

What make= takes: mercedes-benz.

string
name
required
Name

How to show it: Mercedes-Benz.

string
model

The canonical model. null: no model was found. Today cars and vans, and trucks and buses where the advert names one (Atego, TGL); motorbikes have none yet.

Any of:
ModelOut

A canonical model line, the same for every marketplace. Bodies are folded in (a Golf Variant is a golf); a separate product is a model of its own (golf-sportsvan, m3).

object
slug
required
Slug

What model= takes, with make=.

string
name
required
Name

The maker’s international name: 3 Series, C-Class.

string
family

The model heading its family, if it belongs to one.

Any of:
FamilyOut

The model heading a model’s family: the M3’s 3 Series.

object
slug
required
Slug

What family= takes, with make=.

string
name
required
Name
string
site_make
Site Make

The marketplace’s make text, when make is null.

Any of:
string
site_model
Site Model

The marketplace’s model text, when model is null.

Any of:
string
year
Year
Any of:
integer

Example generated

[
{
"sample_size": 1,
"price_min": "example",
"price_p25": "example",
"price_median": "example",
"price_p75": "example",
"price_max": "example",
"price_mean": "example",
"mileage_median": 1,
"year_median": 1,
"median_days_on_market": 1,
"make": {
"slug": "example",
"name": "example"
},
"model": {
"slug": "example",
"name": "example",
"family": {
"slug": "example",
"name": "example"
}
},
"site_make": "example",
"site_model": "example",
"year": 1
}
]

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}