Walking the Autodoc API vehicle tree from maker to one engine variant
Call autodoc-vehicle-lookup with no parameters at all to get every maker Autodoc lists. Add body.maker to that same call to get its models, then body.model to get the generations under that model — the chassis codes owners actually recognize their car by — and finally body.generation to reach the exact engine variants themselves, each carrying its own power, displacement, fuel and build-year window.
Add body.vehicle once one of those variants is chosen and the response additionally carries the car's own description plus categories[], the part categories Autodoc stocks for that exact car. A body.vehicle_url saved from an earlier call, or copied from Autodoc's own site, replaces all four of body.maker, body.model, body.generation and body.vehicle at once on this same operation.
Searching parts for a resolved vehicle, then opening one for full detail
Once a vehicle is resolved, call autodoc-search with the same maker, model, generation and vehicle fields, plus a body.category taken from either autodoc-categories or the narrower vehicle-scoped categories[] that autodoc-vehicle-lookup already returned for that car. Each row in the result carries article_id, price, rating and a handful of specifications already enough for a results page.
To open one row's full record — its complete specification table, OE cross-reference, equivalent parts and customer reviews — send that same article_id as body.article_id to autodoc-product-detail; no extra lookup step sits between the two calls. Checking a row's units_left and in_stock first can rule out rows not worth a second call, though a null in_stock on the row alone does not settle whether that part is genuinely out of stock or simply has no countdown running at all; only the full record from autodoc-product-detail answers that for certain.
Resolving a known part or OE number without starting from a vehicle
A caller who already holds a manufacturer part number or a vehicle manufacturer's OE number, rather than a car, can skip the vehicle tree and the vehicle-scoped search entirely. Send a manufacturer part number as body.query to autodoc-part-search for that exact part and its alternatives, or send a vehicle-manufacturer OE number as body.oem_number to autodoc-oem-lookup for the parts Autodoc sells as a replacement for it. Both land on the same parts[] card shape and the same article_id that autodoc-product-detail accepts, so either one can feed straight into a full-detail call.
A part number autodoc-part-search does not carry comes back as an empty parts[] list; an OE number autodoc-oem-lookup does not carry comes back as not found rather than resolved to any parts. Both operations default to 20 results per call and accept body.max_results up to 200 when more are needed, with body.page moving through them a page at a time.
Reusing a resolved vehicle or category across the Autodoc API's three storefronts
body.market switches the catalogue, the price and the language on every operation here, but the identifiers behind a vehicle or a category stay the same across uk, de and es, so a car or a category resolved on one storefront can be sent straight to another without resolving it again. A body.vehicle_url already sets the market from its own domain, so it never needs body.market passed alongside it; sending a URL from one storefront together with body.market set to a different one is refused outright rather than silently resolved to either side. Resolving a vehicle once and then reusing it across all three storefronts with only body.market changed is cheaper than repeating the whole vehicle-tree walk for each one.
Tracking a part's price and stock without re-walking the vehicle tree
Once an article_id has been resolved through either search operation, save it and call autodoc-product-detail on it again on a schedule rather than repeating the vehicle or part lookup each time. price, availability, in_stock and rating on that response can each change between calls, and in_stock here is built directly from the part's own page rather than from a row-level countdown counter, making it the more reliable field to trust for a part being tracked over time than the in_stock a search row alone would carry.
availability_source reports which part of the page actually produced that in_stock value on a given call. Raising body.max_reviews on the same call brings back more of the part's inline reviews, up to 100, without changing anything else that is being tracked.
Autodoc explained
An OE number is the identifier a vehicle's original manufacturer assigns to one of the components it built into that car, and the aftermarket industry that supplies replacements for older or damaged parts uses that same number as the standard way to find a suitable substitute. Fitment is the related idea of which vehicles a given part was actually designed for, ordinarily described through a combination of a car's year, make, model, trim and engine rather than any single one of those on its own. Both ideas describe why a parts catalogue the size of Autodoc's stays organized around one exact car rather than one approximate match.
[
{
"body": {
"maker": "bmw"
}
},
{
"body": {
"maker": "bmw",
"model": "1er-reihe"
}
}
]{
"body": {
"category": "brake-pad-set-10130",
"maker": "bmw",
"model": "1er-reihe",
"generation": "1-coupe-e82",
"vehicle": "12272-118-d",
"max_results": 20
}
}Server-side request template
This server-side template shows authentication and request identity using the first operation of this API. Choose the operation for your use case and check its current availability and price on the API page. After a timeout, resend the unchanged request with the same Idempotency-Key.
The gateway request is always POST.
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.
# 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"}}'Integration checklist
- The API key is stored in a server-side secret manager and never sent to a browser.
- Each request carries its own Idempotency-Key, kept until the request has a final answer.
- The integration reads ok and error.code and handles each error code as the error table describes.
- An uncertain POST is inspected using its original identity, never blindly repeated with a new one.
- The operation’s current availability and price have been checked on its API page.
Autodoc vehicle-fitment car parts API overview and prices · Read the API reference · Try it in the playground