Used-car market price stats
ba_market_statsCompute asking-price statistics—min, quartiles, median, max by year—for a car model from live Bama ads to answer used-car value questions. Filter by mileage, region, or seller for tighter ranges.
Instructions
Price statistics (min, quartiles, median, max, per year) for a car model from live Bama ads.
Use it for "what is a 1398 Peugeot 206 worth" questions. It samples the first pages of the newest-updated matching ads, keeps only ads with a fixed price (no negotiable, installment or presale ads) and reports Toman. It is a sample of asking prices, not a full census nor sale prices. Narrow with year, mileage and region for a tighter range, then use ba_search with sort=cheapest to see the actual ads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | How many result pages to sample (30 ads each). More is slower. | |
| region | No | State or city values from ba_filters kind=region. | |
| seller | No | ||
| vehicle | No | Brand, model or trim values from ba_vehicles, e.g. ['samand'], ['samand,lx'], ['peugeot,206ir,type2']. Several values mean any of them. | |
| year_to | No | Latest production year, Jalali. | |
| year_from | No | Earliest production year, Jalali. | |
| mileage_to | No | Maximum mileage in km (0 = zero-km only). | |
| mileage_from | No | Minimum mileage in km. | |
| transmission | No |