Listing detail
Returns one used-car advertisement in full, including its price, mileage, condition, equipment and seller, from its page address or numeric id.
Loading / 加载中…
Automobile.tn Tunisia Car Listings and Prices API · Classifieds & second-hand data
Automobile.tn API covers two datasets behind Automobile.tn's Tunisian car portal: used-car classifieds and a new-car price list. automobile-tn-listing returns one used-car advertisement in full, automobile-tn-search pages through used-car listings with a wide set of filters, and automobile-tn-makes lists the brands and models with live used-car adverts. automobile-tn-new-brands, automobile-tn-new-search, automobile-tn-new-version and automobile-tn-new-versions cover the new-car side: every brand in the price list, model cards with list prices, one version's full spec sheet, and every trim of one model with its official importer.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Returns one used-car advertisement in full, including its price, mileage, condition, equipment and seller, from its page address or numeric id.
Lists the brands that currently have live used-car adverts, or one brand's models with their live counts.
Lists every brand in Automobile.tn's new-car price list, with each brand's page address and logo.
Pages through Automobile.tn's new-car price list by brand, body type, budget, fiscal power, seats, fuel, gearbox and drivetrain.
Returns one new-car version's full spec sheet: price, dimensions, performance, consumption and equipment.
Lists every version of one new-car model with its price and the model's official importer.
Narrows down Tunisia's used-car classifieds by whichever of its many available filters a caller sends, twelve matches per page.
Automobile.tn is a Tunisian web portal dedicated entirely to the automotive sector, active since March 2018. Its new-car side shows prices and specifications from dealers, while a separate used-car section lets sellers post their own classified listings.
A single automobile-tn-listing call answers one used-car advertisement in full, mixing price, condition and seller information into one record rather than splitting them across several calls.
| Field | What it tells you |
|---|---|
price_tnd / price_label | the asking price as a number and as the site's own formatted label |
price_rating / price_rating_code | how the asking price compares, as a label and a matching short code |
price_mismatch | whether the structured price and the page's own label disagree |
mileage_km / first_registration | the distance driven and the date the car was first registered |
condition / previous_owners | the advert's condition and how many owners came before this one |
equipment_count / images_count | how many equipment items and photos the advert carries |
main_specs and spec_groups hold two separate groupings of the same car's technical detail, kept apart from each other rather than merged into a single block.
body.url takes the advert's own page address, the same address automobile-tn-search returns for each row, and reads the record directly from it. body.id takes the numeric id alone (also accepted as listing_id) and resolves it through the site's own sitemap first, which costs one extra request compared with sending body.url directly.
Either input reaches the same record once automobile-tn-listing has a value to work from. The seller block that comes back describes whichever dealer or private seller posted that advertisement:
type: dealer or private sellername, phone: how to identify and reach that sellerlogo, address: the seller's logo image and addressstock_url, slug: a link to the seller's other stock and its own identifierWhichever way body.brand (also accepted as make) is sent to automobile-tn-makes, every entry shares one shape. Each carries its own slug, name and count, while total and brand describe what that call was scoped to.
automobile-tn-new-brands takes no input and answers brand_count next to a brands array, where every entry adds a url and a logo beside its slug and name. The two brand lists do not share slugs: a brand with used-car adverts does not necessarily appear in the new-car price list, and the reverse holds too.
Each row automobile-tn-search returns pairs a used car's identity with its price and condition at a glance.
| Field | What it tells you |
|---|---|
id / url | the row's own identifier and page link, carried forward for a later full lookup |
price_tnd / price_label | the asking price as a number and as a formatted label |
price_rating / price_rating_code | how that price compares, as a label and a short code |
mileage_km / year | the distance driven and the model year |
fuel / gearbox / drivetrain / fiscal_power_cv | how the car is powered, shifted and taxed |
governorate / summary | where the car is listed and a short text summary |
Beside the 12 rows on a page, the answer carries a facets object narrowed to whatever filters were already sent on that same call:
brand, model: which brands and models still have matchesfuel, gearbox, body_type, drivetrain: which mechanical values still have matchesgovernorate, seller_type, color, price_type: which location, seller and price values still have matchesbody.price_min and body.price_max work as an independent pair on automobile-tn-search: sending only one narrows just that end of the range, while sending both narrows it from both ends at once. The same operation reads three further pairs the same way, each narrowing a different numeric property and combinable in any mix without one pair changing how another behaves:
body.year_min / body.year_max: the model-year rangebody.mileage_min / body.mileage_max (also accepted as km_min / km_max): the distance-driven rangebody.fiscal_power_min / body.fiscal_power_max: the fiscal-horsepower rangeSix of these eight (body.price_min, body.price_max, body.year_min, body.year_max, body.mileage_min, body.mileage_max) are rejected outright once a value falls outside the range stated above; body.fiscal_power_min and body.fiscal_power_max take any integer, since this operation documents no bound for either one.
Seven further filters on automobile-tn-search each narrow the result set independently, so adding one on top of another always narrows the match further rather than broadening it:
body.fuel, body.gearbox, body.drivetrain: narrow by a different part of the car's mechanical makeupbody.body_type: narrows by body shapebody.governorate, body.seller_type, body.price_type: narrow by where or how the car is listedLeaving any one of the seven out simply skips that narrowing step rather than applying a default in its place, and sending any of them a value outside its own listed set is rejected outright.
automobile-tn-new-search pages through 24 new-car model cards at a time, each with a price_from_tnd for its cheapest version, an optional price_old_tnd and discount_tnd when a promotion applies, and a price_usd_duty_free figure only where the importer publishes one. automobile-tn-new-version reads one version's full spec sheet from body.url, or from body.brand, body.model and body.version together.
That response spans power_hp, torque_nm, top_speed_kmh and the car's dimensions, among other figures. automobile-tn-new-versions lists every version of one model with its own price and badge, next to an importer block that names who officially sells it.
{
"body": {
"url": "https://www.automobile.tn/fr/occasion/audi/q5/131079"
}
}POST /api/v1/automobile-tn/<action> with x-api-key, Content-Type: application/json and a required Idempotency-Key.ok: true: data is the result of the operation, meta.requestId identifies the recorded request and meta.chargedCreditUnits is the amount charged. Otherwise ok is false and error.code names the reason; read ok and error.code rather than relying on the HTTP status alone. Every gateway reply carries a request id for support: meta.requestId, or a top-level requestId in a reply without meta (such as a refusal before admission).Send body.brand (also accepted as make) and, within that brand, body.model to automobile-tn-search, together with body.price_min and body.price_max in TND and body.year_min and body.year_max as whole model years from 1900 upward. Leaving every filter out still returns a result: automobile-tn-search needs no input at all and pages through every live advert, 12 rows at a time. Each returned row carries its own price_tnd, year, mileage_km and governorate, so a client can confirm a row still matches a tighter filter than the ones actually sent on that call.
Send the advert's own page address as body.url to automobile-tn-listing, or send its numeric id alone as body.id (also accepted as listing_id); resolving an id alone takes one extra request against the site's own sitemap. The response carries price_tnd, price_label, price_rating and price_rating_code, mileage_km, first_registration, year, fuel, gearbox, fiscal_power_cv, drivetrain, body_type, condition, previous_owners, governorate, every equipment item grouped under equipment, the photo set under images, and a seller block with a name, phone, address and stock page.
Call automobile-tn-makes with no body.brand to get every brand that currently has live used-car adverts, each with its slug, name and count. Send that brand's slug back as body.brand (also accepted as make) and automobile-tn-makes answers that brand's models instead, each again with its slug, name and live count.
Call automobile-tn-new-brands with no input: it answers brand_count, the number of brands in Automobile.tn's new-car price list, next to a brands array where every entry carries a slug, a name, the brand's own page address and its logo. Those slugs are what body.brand expects on automobile-tn-new-search, automobile-tn-new-version and automobile-tn-new-versions.
Send body.body_type and body.price_max, and body.price_min for a floor, to automobile-tn-new-search; body.body_type takes one value or a comma-separated list, such as suv,sedan, and the price figures are read in TND. Each returned model card carries price_from_tnd for its cheapest version, an optional price_old_tnd and discount_tnd when a promotion applies, and a price_usd_duty_free figure only where the importer publishes one. The answer pages 24 model cards at a time, with body.page running from 1 to 1000.
Send the version's own page address as body.url to automobile-tn-new-version, or send body.brand (also accepted as make), body.model and body.version together instead. The response carries price_tnd and an optional price_old_tnd and price_usd_duty_free, warranty, seats, doors, cylinders, fuel, fiscal_power_cv, power_hp, torque_nm, engine_cc, gearbox, gears, drivetrain, acceleration_0_100_s, top_speed_kmh and consumption_mixed_l100, plus spec_groups for its remaining equipment lines.
Send body.brand (also accepted as make) and body.model, or the model's own page address as body.url, to automobile-tn-new-versions. The response carries version_count next to a versions array, where every entry holds its own price_tnd, price_old_tnd, discount_computed_tnd and badge, and an importer block with the official importer's name, address, phones and fax. automobile-tn-new-version then reads one of those versions in full, once a version_slug has been picked from this list.
Send body.governorate to automobile-tn-search as a governorate name such as tunis, sfax or la manouba, or as a comma-separated list of names for more than one; accents are optional, and the accepted spelling allows letters, spaces, apostrophes and hyphens, covering names such as la manouba or le kef. The facets object on every response also lists which governorates actually have matches for whatever other filters were already sent on that same call.
Send body.fuel as one value or a comma-separated list, body.gearbox as manual or automatic, and body.drivetrain as fwd, rwd or awd to automobile-tn-search. Its own fuel values split hybrids by petrol or diesel base — mild_hybrid_petrol, hybrid_petrol, plugin_hybrid_petrol, mild_hybrid_diesel, hybrid_diesel and plugin_hybrid_diesel sit alongside essence, diesel and electric — while automobile-tn-new-search instead takes hybrid, plugin_hybrid, mild_hybrid, electric and electric_reev next to essence and diesel, a different list for the new-car catalogue.
Send body.seller_type as pro for a dealer or showroom listing, or private for an individual seller's listing, and body.price_type as regular, leased or duty_unpaid ('non dédouané') to automobile-tn-search. Both sit apart from body.sort and from each other, so one search can combine a seller type and a price type with any of the other filters already sent. Every automobile-tn-search response also repeats whichever filters were actually applied under filters_applied, confirming exactly what combination the current page reflects.