Documentation
Autodoc API reference for 6 operations
Reference for the Autodoc API: what each operation's inputs do, their bounds and aliases, and what each response holds for a part, category or vehicle.
See also: Autodoc vehicle-fitment car parts API overview and prices · Autodoc API guide: vehicle to part to full detail
On this page
What autodoc-categories returns on the Autodoc API, and how its group filter behaves
autodoc-categories answers with categories[]{slug, category_id, name, url}: a slug and name local to whichever storefront body.market picked, next to a category_id that identifies the same category on every storefront regardless of language. body.group filters that list by matching, case-insensitively, against both the name and the slug, so its hits change language and spelling along with body.market — a value that matches on one storefront's words can miss entirely on another, while filtering by category_id instead stays the same match everywhere.
An unrecognized body.group is ignored, and the same unfiltered result that leaving body.group out would produce is returned instead. This operation lists Autodoc's catalogue-wide categories rather than a vehicle-scoped subset; the narrower set of categories one specific car actually has parts in only comes back from autodoc-vehicle-lookup, once a full vehicle has been resolved.
Fields in this section (2)
autodoc-categories, body.group
What autodoc-oem-lookup resolves, and what counts as a match
autodoc-oem-lookup answers with oem{number, normalised, resolved_title, url}, echoing back the number it actually matched against together with a normalised form and the title and URL of what that number resolved to, alongside a parts[] list in the same card shape autodoc-search and autodoc-part-search use for their own rows. Spaces and dots inside body.oem_number make no difference to the match, so a number copied with either still resolves the same way.
Only a vehicle manufacturer's own original part number resolves through this operation at all; a supplier's own part number for the same physical part does not, and needs autodoc-part-search instead. An OE number Autodoc's catalogue does not carry is treated as not found rather than resolved to any parts, since the alternative — a generic catalogue page that happens to answer successfully — would otherwise look like a working match it is not.
Fields in this section (2)
autodoc-oem-lookup, body.oem_number
What autodoc-part-search returns for a part number versus a plain keyword
autodoc-part-search answers with a parts[] list in the same card shape autodoc-search uses, alongside query{text, resolved_title} describing what body.query actually matched. A manufacturer part number in body.query returns that exact part together with its alternatives, while plain-language text runs an ordinary keyword search instead, in the language of whichever storefront body.market picked, so a search phrase in another language can match the wrong parts rather than the intended ones; which kind of match happened is exactly what resolved_title reports back. This operation is not scoped to any one vehicle, unlike autodoc-search, so the same body.query returns the same parts regardless of what car a caller has in mind.
This operation does not report how many parts in total match a given term; a term Autodoc's catalogue does not carry at all comes back as an empty parts[] list rather than as an error. article_id inside each row of parts[] is the same identifier autodoc-search returns for the same part, so either operation's results feed straight into autodoc-product-detail without any extra lookup step.
Fields in this section (2)
autodoc-part-search, body.query
What autodoc-product-detail's part record holds beyond price and availability
autodoc-product-detail answers with one part object; beyond its title, subtitle, brand and category, it carries:
breadcrumb[]{name, url}: the category path this part is filed underprice,currencyandprice_valid_until: this part's price, its currency and how long that price holdsavailability,in_stockanditem_condition: its availability state, stock flag and physical conditionshipping_cost,shipping_currency,shipping_labelandreturn_days: its shipping cost, shipping currency, carrier label and return window
specifications[]{name, value} is the manufacturer's own specification table; ean and weight_kg are drawn out of that same table by name whenever the manufacturer published either row, and come back null for the roughly one in three parts where neither was published at all. in_stock is built from the part's own schema.org offer, or, for an out-of-stock part whose offer omits that detail entirely, from the page's buy box instead; availability_source reports which of the two produced the value on a given call. oem_references[]{oem_number, vehicle_maker} names the vehicle-manufacturer numbers this part replaces, while equivalent_parts[]{article_id, brand_id, category_id, category_generic_id, price, price_was, rating} names the parts Autodoc sells as alternatives to it; a car part has no size or colour variant, so this pair of lists is its closest equivalent.
compatible_makers[]{maker_id, name} names the vehicle makers this part fits, without expanding to which specific models within each maker it fits. reviews[]{author, text, rating, rating_best} carries Autodoc's own customer reviews inline, with author published only as initials rather than a full name. body.url is an alternative to body.article_id; either storefront's domain inside it sets that call's market, and an unrecognized body.url is ignored.
Fields in this section (4)
autodoc-product-detail, body.article_id, body.url, body.max_reviews
What autodoc-search's part rows and vehicle scope describe
Each row in autodoc-search's parts[] list carries:
article_id,article_numberandurl: the part's identifiers and its own linktitle,brand,brand_slugandbrand_id: its title and brand identitycategory_nameandcategory_generic_id: the category it is filed underspecifications[]{name, value}, animageandimages_360_url: its key specifications and imagery
price, price_was, rrp and currency describe cost, and on_sale marks whether this row's price sits below rrp. rating is scaled 0 to 5 for consistency with autodoc-product-detail's own rating, while Autodoc's own listing score, on a 0 to 10 scale, comes back verbatim alongside it as rating_stars_out_of_10, together with review_count. units_left is Autodoc's own countdown toward a listing selling out rather than a running warehouse stock figure, and is null on most rows where no such countdown is active at all; in_stock reads true once that counter sits above zero, but comes back null rather than false when the counter reads zero, because that same zero shows up both on a part that is genuinely out of stock and on an in-stock part that was never given a countdown — autodoc-product-detail's own in_stock is the one to trust for a definite answer either way.
fits_selected_vehicle confirms the row actually matches the vehicle this call was scoped to. category{slug, category_id, name, url} echoes back the category actually resolved, which can differ from the words in body.category when its id suffix pointed elsewhere; vehicle{...} comes back describing that same car once the call was scoped to one.
An unrecognized body.vehicle_url is ignored, and the call falls back to whatever body.maker, body.model, body.generation and body.vehicle were sent instead. This operation has no sort input, because Autodoc's own sort control on this listing has no measurable effect on the order it serves, so the field was left out rather than offered as a choice that would not do anything.
Fields in this section (3)
autodoc-search, body.category, body.vehicle
What each level of autodoc-vehicle-lookup's tree returns
autodoc-vehicle-lookup answers with level, naming which of makers, models, generations, vehicles or vehicle the call landed on, and items[], whose shape follows that level. At the maker, model and generation levels, each item is {slug, name, url, path}, plus maker_id only where Autodoc's page happened to publish a numeric id for it — otherwise maker_id is null and the slug alone is what identifies it, since Autodoc does not publish a numeric id for most makers, models or generations at all; a model's own slug can be in German even on the uk storefront (1er-reihe for the BMW 1 Series, 3er-reihe for the 3 Series). Maker items additionally carry popular, showing whether that maker appears on the storefront's front maker page rather than only in its full list, and model_count, Autodoc's own tally of that maker's models.
At the vehicle level, each item is {vehicle_id, vehicle_slug, engine_slug, name, engine_label, kw, hp, ccm, fuel, years, url, path} — vehicle_id is always present and is Autodoc's own id for that exact engine variant, while engine_label carries its full description and years its build window as a month-precise range; any of kw, hp, ccm, fuel or years can come back null where Autodoc never published that particular row for that variant. Once body.vehicle is also supplied, the response additionally carries vehicle{vehicle_id, vehicle_slug, engine_slug, name, description, maker, model, generation, url}, repeating that car's own identification alongside a plain-language description, and categories[]{slug, category_id, name, url, vehicle_scoped} — the categories Autodoc actually stocks parts for on that exact car, narrower than autodoc-categories' own catalogue-wide list. This operation returns the level it was asked for, named by level, whole in one response rather than paginated across several calls.
An unrecognized body.vehicle_url on this operation is ignored the same way, falling back to whatever body.maker, body.model, body.generation and body.vehicle were sent instead. An unrecognized maker, model, generation or vehicle slug is treated as not found rather than returned as an empty items[] list; a generation that genuinely has no engine variants under it, which does happen, still returns a real empty items[] list rather than a not-found result, since that reflects Autodoc's own page for it just as faithfully.
Fields in this section (6)
autodoc-vehicle-lookup, body.maker, body.model, body.generation, body.vehicle, body.vehicle_url
{
"body": {
"article_id": "7999106"
}
}{
"body": {
"category": "brake-pad-set-10130",
"maker": "bmw",
"model": "1er-reihe",
"generation": "1-coupe-e82",
"vehicle": "12272-118-d",
"max_results": 20
}
}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.
Categories
POST /api/v1/autodoc/autodoc-categories
Lists Autodoc's catalogue-wide part categories, each with the slug and numeric id a parts listing needs.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.group | string | Optional | — | — | — |
body.market | string | Optional | "uk" | "uk""de""es" | — |
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/autodoc/autodoc-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"group":"brake"}}'OEM lookup
POST /api/v1/autodoc/autodoc-oem-lookup
Resolves a vehicle manufacturer's OE part number to the aftermarket parts Autodoc sells as a replacement for it.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.oem_number | string | Required | — | — | — |
body.market | string | Optional | "uk" | "uk""de""es" | — |
body.max_results | integer | Optional | 20 | — | 1–200 |
body.page | integer | Optional | 1 | — | 1–50 |
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/autodoc/autodoc-oem-lookup' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"oem_number":"34216774692"}}'Part search
POST /api/v1/autodoc/autodoc-part-search
Searches Autodoc's catalogue by a manufacturer part number or plain keywords, independent of any one vehicle.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.market | string | Optional | "uk" | "uk""de""es" | — |
body.max_results | integer | Optional | 20 | — | 1–200 |
body.page | integer | Optional | 1 | — | 1–50 |
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/autodoc/autodoc-part-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"1987474465"}}'Product detail
POST /api/v1/autodoc/autodoc-product-detail
Returns one part's full record: price, specifications, OE cross-reference, equivalent parts, images and customer reviews.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.article_id | string | Optional | — | — | — |
body.market | string | Optional | "uk" | "uk""de""es" | — |
body.max_reviews | integer | Optional | 25 | — | 0–100 |
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/autodoc/autodoc-product-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"article_id":"7999106"}}'Vehicle parts search
POST /api/v1/autodoc/autodoc-search
Lists the parts Autodoc sells in one category that fit one exact maker, model, generation and engine variant.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category | string | Required | — | — | — |
body.generation | string | Optional | — | — | — |
body.maker | string | Optional | — | — | — |
body.market | string | Optional | "uk" | "uk""de""es" | — |
body.max_results | integer | Optional | 20 | — | 1–200 |
body.model | string | Optional | — | — | — |
body.page | integer | Optional | 1 | — | 1–50 |
body.vehicle | string | Optional | — | — | — |
body.vehicle_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/autodoc/autodoc-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category":"brake-pad-set-10130","generation":"1-coupe-e82","maker":"bmw","max_results":20,"model":"1er-reihe","vehicle":"12272-118-d"}}'Vehicle lookup
POST /api/v1/autodoc/autodoc-vehicle-lookup
Walks Autodoc's vehicle tree from maker to model, generation and exact engine variant, down to the part categories that variant stocks.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.generation | string | Optional | — | — | — |
body.maker | string | Optional | — | — | — |
body.market | string | Optional | "uk" | "uk""de""es" | — |
body.model | string | Optional | — | — | — |
body.vehicle | string | Optional | — | — | — |
body.vehicle_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/autodoc/autodoc-vehicle-lookup' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"vehicle_url":"https://www.autodoc.de/ersatzteile/bmw/1er-reihe/1-coupe-e82/12272-118-d"}}'How calls work
POST /api/v1/autodoc/<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: