Price estimate for one trim and year
hm_price_estimateGet the market price range and recent monthly change for one car trim in a specific model year using type_id and year.
Instructions
Get the market price range and recent monthly change for one trim in one model year.
Use with a type_id and year from hm_prices rows. The range is what Hamrah Mechanic pays or advises (priceDown to priceUp) in Toman; monthly_change_percent is the latest monthly change, only given for some trims. For the monthly price history use hm_price_history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Model year as the site shows it: Solar Hijri (1397) for Iranian cars, Gregorian (2017) for imports. | |
| type_id | Yes | Trim id (carTypeId) from hm_prices rows or hm_models. |