Karnameh Cars
v0.2.1Read-only Karnameh (karnameh.com) Iran car data: used ads, new-car prices, specs, comparisons, blog.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
kn_cars Search used-car ads
Search Karnameh's used-car ads by brand, model, city, price, year and mileage. Prices are asking prices in Toman. Pass an ad's `id` to kn_car for the full ad.
| Parameter | Type | Description |
|---|---|---|
brand | string | null | English slug (peugeot) or Persian brand. See kn_brands. |
city | string | null | City slug from kn_cities, e.g. tehran. |
inspected_only | boolean | Only inspected ads. |
installments_only | boolean | Only ads with instalments. |
limit | integer | Ads to return. |
max_price | integer | null | Maximum price, Toman. |
max_usage_km | integer | null | Maximum odometer, km. |
max_year | integer | null | Newest year, Persian or Gregorian. |
min_price | integer | null | Minimum price, Toman. |
min_year | integer | null | Oldest year, Persian (1398) or Gregorian. |
model | string | null | Model within the brand, e.g. 206 or Corolla, or Persian. |
offset | integer | Ads to skip. |
query | string | null | Persian free text, e.g. 'پژو 206'. |
sort | string | Order. |
kn_car Get one used-car ad
Get one Karnameh used-car ad: price, specs, seller's description, strengths and the inspection summary. Use after kn_cars. Only the inspection date, link and one-line verdict are available; no seller phone.
| Parameter | Type | Description |
|---|---|---|
id * | string | Ad `id` from kn_cars (UUID). |
kn_brands Look up car brands and models
Look up Karnameh's car brands and models, Persian and English, to get the names the other tools expect. Pass the English `brand` and `model` to kn_cars. kn_price_list uses its own English names.
| Parameter | Type | Description |
|---|---|---|
query | string | null | Part of a brand or model name, Persian or English. Empty lists all brands. |
kn_cities List cities
List the cities Karnameh serves, with the slug kn_cars takes as `city` and the id kn_inspection_centers takes.
kn_price_list New-car market prices
List today's market prices of new (zero-km) cars from Karnameh's car-price pages. Use for "how much is a new X". Each row is a variant and production year, in Toman. Older variants (Pars, 405) are only in kn_latest_prices. For trends call kn_price_history with a row's `name`.
| Parameter | Type | Description |
|---|---|---|
brand | string | null | English brand, e.g. Peugeot, Toyota. |
country | string | null | China, Iran, Japan, Korea, German, France or Italia. |
max_price | integer | null | Maximum price, Toman. |
min_price | integer | null | Minimum price, Toman. |
model | string | null | English model, e.g. 207i. |
origin | string | null | Iranian-made or imported. |
page | integer | Page of 10 model groups. |
search | string | null | Persian free text, e.g. سمند. |
year | integer | null | Production year (Persian, 1405). |
kn_latest_prices Latest new-car price quotes
List the most recent price quotes of new cars with the day's percent change. Covers more variants than kn_price_list, including older models. Gives the exact `name` for kn_price_history.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Quotes to return. |
query | string | null | Part of the English variant name, e.g. Pars, Dena. Empty for all. |
year | integer | null | Production year (Persian, 1404). |
kn_price_history New-car price history
Get the daily average market price history of one new-car variant, per production year. Use after kn_price_list or kn_latest_prices. With `year`, also lists each source's current quote.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact English `name` from kn_price_list or kn_latest_prices, e.g. 'Peugeot 207i Manual TU5P'. |
days | integer | Latest daily points per year. |
year | integer | null | Production year (Persian). Omit for all. |
kn_specs_search Search car variants with specs
Find car variants in Karnameh's specs catalog and return the `slug` that kn_specs and kn_compare_specs take. Only results with `variant: true` have specs; otherwise search again with more words.
| Parameter | Type | Description |
|---|---|---|
query * | string | Brand, model or variant, Persian or English, e.g. corolla. |
limit | integer | Matches to return. |
kn_specs Car specs and review summary
Get one car variant's technical specs, Karnameh's expert review score, pros and cons and web reviews. Use after kn_specs_search. The summary and score are AI-written from web reviews: opinion.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Variant `slug` from kn_specs_search. |
kn_compare_specs Compare car specs
Compare two to four car variants side by side: review score, pros, cons and every spec row. Use for "A or B?" after kn_specs_search. Spec values follow the order of `cars`.
| Parameter | Type | Description |
|---|---|---|
slugs * | array | Variant slugs from kn_specs_search. |
only_differences | boolean | Only rows where the cars differ. |
kn_articles Car blog articles
Search or list articles of the Karnameh car magazine: news, reviews, maintenance, laws. Newest first. Read one with kn_article(id).
| Parameter | Type | Description |
|---|---|---|
category | string | null | Blog section. |
limit | integer | Articles to return. |
page | integer | Page number. |
query | string | null | Persian search words. |
kn_article Read a blog article
Read one article of the Karnameh car magazine as plain text. Use after kn_articles. Cut at `max_chars` (`truncated`); `url` has the full page.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Article id from kn_articles. |
max_chars | integer | Cut text after this many characters. |
kn_price_movers Biggest new-car price movers
Rank new (zero-km) car variants by the percent change of their latest price quote. `change_percent` is against the previous quote. Trend: kn_price_history with a row's `name`.
| Parameter | Type | Description |
|---|---|---|
days | integer | Only quotes within this many days of the newest. |
direction | string | Biggest rises, drops, or either. |
limit | integer | Rows to return. |
year | integer | null | Production year (Persian, 1404). |
kn_city_stats Used-car listing counts per city
Count Karnameh's used-car ads in every city, optionally for one brand, model or price ceiling. Gives each city's cheapest ad. Makes one request per city, so it is slower than kn_cars(city=...).
| Parameter | Type | Description |
|---|---|---|
brand | string | null | English or Persian brand (kn_brands). |
max_price | integer | null | Maximum price, Toman. |
model | string | null | Model within the brand. |
kn_inspection_centers Karnameh inspection centers
List Karnameh's walk-in car inspection and paint-check centers in a city, with address and map coordinates. Booking and prices are not available here.
| Parameter | Type | Description |
|---|---|---|
city_id * | integer | City `id` from kn_cities. |