Search car ads
ba_searchSearch Bama used and new car ads by brand, model, price, year, mileage, region, and other filters; returns up to 30 compact listings per page for paging through results.
Instructions
Search used and new car ads on Bama (bama.ir) with filters; returns up to 30 compact ads per page.
Use it for "find me X under Y" questions. Get brand/model values from ba_vehicles and region, body, fuel and color values from ba_filters. Prices are Toman; year is Jalali (imports can show a Gregorian year); mileage_km 0 means zero-km. Then call ba_ad with a code for full details, or ba_market_stats for price statistics. The site gives no total count: keep paging while has_more is true (ba_ad reports the real number of ads for one model). Motorcycles and trucks are searched with ba_search_bikes_trucks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Body values from ba_filters kind=body, e.g. ['suv']. | |
| fuel | No | Fuel values from ba_filters kind=fuel, e.g. ['gasoline']. | |
| page | No | 0-based page; each page holds up to 30 ads. | |
| sort | No | relevance | |
| color | No | Color values from ba_filters kind=color, e.g. ['white']. | |
| drive | No | Drive-train values from ba_filters kind=drive, e.g. ['awd']. | |
| origin | No | Origin values from ba_filters kind=origin (e.g. domestic, imported, assembled). | |
| region | No | State or city values from ba_filters kind=region, e.g. ['tehran'] or ['isfahan,kashan']. | |
| seller | No | Only dealers (showrooms) or only private sellers. | |
| country | No | Maker country values from ba_filters kind=country, e.g. ['Chinese']. | |
| presale | No | Only presale or allocation-letter (حواله) ads. | |
| 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 (e.g. 1400). | |
| cylinder | No | Values from ba_filters kind=cylinder, e.g. ['four']. | |
| price_to | No | Maximum price in Toman. | |
| lifestyle | No | Lifestyle values from ba_filters kind=lifestyle (e.g. family, sport). | |
| year_from | No | Earliest production year, Jalali (e.g. 1395). | |
| mileage_to | No | Maximum mileage in km. | |
| price_from | No | Minimum price in Toman. | |
| with_photo | No | Only ads with photos. | |
| with_price | No | Only ads that state a price (hides 'negotiable'). | |
| body_status | No | Paint/body condition values from ba_filters kind=body_status, e.g. ['no_paint']. | |
| installment | No | Only installment (اقساطی) ads. | |
| mileage_from | No | Minimum mileage in km. 0 with mileage_to=0 means zero-km cars. | |
| transmission | No | ||
| description_chars | No | Include this many characters of each ad's text (0 = none). |