Documentation
AutoTrader API reference for search and listing detail
Use the AutoTrader API reference to connect advert identifiers, regional search filters, paging information and nested vehicle detail fields.
See also: AutoTrader API overview and prices · AutoTrader API guide: from search to advert detail
On this page
AutoTrader API advert selection and input behaviour
For autotrader-listing-detail, use a search row's advertId as the advert identifier, or select the advert through its full URL. Canadian identifiers use UUIDs, while the other supported markets use digits. Keep the selected market associated with the identifier so the request describes the intended regional advert.
The identifier accepts advert_id, advertId, listing_id and listingId as alternative input names; an invalid identifier is rejected by the operation. The body.url input accepts fpa_url as an alternative name; an invalid value is ignored and its default applies. The body.postcode input supplies the UK location anchor; omission uses a central England postcode.
Invalid values of body.postcode and body.market are ignored with their corresponding defaults applied. These location behaviours apply to search and detail. The names zip and country express postcode and market respectively.
Fields in this section (5)
autotrader-listing-detail, body.id, body.url, body.postcode, body.market
Meaning of the nested advert detail
Within the returned advert, price is the asking figure, while priceIndicatorRating describes its price indicator and priceDeviation represents its price deviation. Keep that price context separate from mileage, which describes the vehicle's recorded distance.
Within specification, doors gives the number of doors and seats gives the number of seats.
Fields in this section (2)
autotrader-listing-detail, data
How search criteria interact across markets
For autotrader-search, use body.model together with body.make to describe the vehicle family. UK price filters refer to pounds sterling; mileage filters and the postcode radius refer to miles. Fuel and body style accept additional AutoTrader labels beyond the displayed examples.
Canadian, South African and Australian searches support make, model and page selection; their prices use CAD, ZAR and AUD, with mileage in kilometres. The US selection is unavailable.
Invalid make, model, fuel, body style and transmission values are ignored, with corresponding defaults applied. Out-of-range price, year, mileage, radius and page values are also ignored.
Alternative names include price_from and price_to for price boundaries, and year_from and year_to for year boundaries. The names fuel_type and distance express fuel and radius.
Fields in this section (16)
autotrader-search, body.make, body.model, body.market, body.postcode, body.radius, body.min_price, body.max_price, body.min_year, body.max_year, body.min_mileage, body.max_mileage, body.page, body.fuel, body.body_type, body.transmission
Search rows and pagination information
Search data contains listings, whose rows describe vehicle adverts. Each row's advertId identifies the advert and its title supplies the display heading. Vehicle identity appears in make and model, with age and distance represented by year and mileage.
The asking figure is price, whereas rrp represents recommended retail price. The vehicleLocation describes where the vehicle is located, and sellerType describes the kind of seller. Pictures appear in images, and fpaLink supplies the advert link.
The page_info group describes the search result pages: page identifies the selected page, page_count represents the page count and total_results represents the result count. Use the page information alongside the selected search criteria when choosing another page. The returned market associates the data with a region, which also supplies context for interpreting regional currency and distance units.
Fields in this section (3)
autotrader-search, body.page, data
Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
Vehicle advert detail
POST /api/v1/autotrader/autotrader-listing-detail
Open a selected advert for its vehicle specification and seller presentation.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.id | string | Optional | — | — | — |
body.market | string | Optional | "uk" | "ca""za""au""uk""us" | — |
body.postcode | string | Optional | — | — | — |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/autotrader/autotrader-listing-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"url":"https://www.autotrader.co.uk/car-details/202401011234567"}}'Response fields
listingpricepriceIndicatorRatingpriceDeviationmileageregistrationyearspecificationmakemodelfueltransmissionbodyTypedoorsseatsengine
descriptionimages[]dealernamereviewslocation
market
Vehicle listing search
POST /api/v1/autotrader/autotrader-search
Find vehicle adverts using a market and the filters supported for that region.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.body_type | string | Optional | — | "Hatchback""Saloon""Estate""SUV""Coupe""Convertible""MPV" | — |
body.fuel | string | Optional | — | "Petrol""Diesel""Electric""Hybrid""Plug-in Hybrid" | — |
body.make | string | Optional | — | — | — |
body.market | string | Optional | "uk" | "ca""za""au""uk""us" | — |
body.max_mileage | integer | Optional | — | — | 0–9007199254740991 |
body.max_price | integer | Optional | — | — | 0–9007199254740991 |
body.max_year | integer | Optional | — | — | 1900–2100 |
body.min_mileage | integer | Optional | — | — | 0–9007199254740991 |
body.min_price | integer | Optional | — | — | 0–9007199254740991 |
body.min_year | integer | Optional | — | — | 1900–2100 |
body.model | string | Optional | — | — | — |
body.page | integer | Optional | 1 | — | 1–9007199254740991 |
body.postcode | string | Optional | — | — | — |
body.radius | integer | Optional | — | — | 0–9007199254740991 |
body.transmission | string | Optional | — | "Manual""Automatic" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/autotrader/autotrader-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"make":"BMW","market":"uk","model":"3 Series","postcode":"SW1A 1AA"}}'How calls work
POST /api/v1/autotrader/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: