Categories
Lists Autodoc's catalogue-wide part categories, each with the slug and numeric id a parts listing needs.
Loading / 加载中…
Autodoc vehicle-fitment car parts API · E-commerce & marketplace data
The Autodoc API walks Autodoc's vehicle tree from maker down to one exact engine variant, lists the part categories and parts that fit that variant, and resolves a manufacturer part number or a vehicle manufacturer's OE number to the same catalogue. A part's full record carries its price, specifications, OE cross-reference, equivalent parts and customer reviews, across Autodoc's UK, German and Spanish storefronts.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Lists Autodoc's catalogue-wide part categories, each with the slug and numeric id a parts listing needs.
Resolves a vehicle manufacturer's OE part number to the aftermarket parts Autodoc sells as a replacement for it.
Searches Autodoc's catalogue by a manufacturer part number or plain keywords, independent of any one vehicle.
Returns one part's full record: price, specifications, OE cross-reference, equivalent parts, images and customer reviews.
Lists the parts Autodoc sells in one category that fit one exact maker, model, generation and engine variant.
Walks Autodoc's vehicle tree from maker to model, generation and exact engine variant, down to the part categories that variant stocks.
body.market picks which Autodoc storefront an operation reads — uk, de or es, defaulting to uk — and it applies the same way across every one of the six operations here, from the vehicle tree down to one part's full record. Its aliases country, store, domain, site and region are accepted in its place for the same value.
What changes between the three storefronts is the price, the currency and the language of names and titles; the identifiers themselves do not. A category, maker, model, generation or vehicle slug resolved on one storefront carries straight over to another, and article_id, vehicle_id and category_id name the same part, car and category on all three regardless of which one a caller happens to be reading.
autodoc-product-detail's oem_references[] and autodoc-oem-lookup's own oem{} object describe the same relationship from opposite ends: one starts at a part already open and lists the vehicle-manufacturer numbers it replaces, the other starts at one of those numbers and lists the parts that replace it. A caller already looking at one part can jump straight to any of the numbers it lists by sending one of them back into autodoc-oem-lookup, without first working out which maker issued it. The reverse path runs the same way: a number resolved through autodoc-oem-lookup comes back with rows whose own identifier opens straight back into the part it started from.
body.category on autodoc-search pairs Autodoc's own category slug with a numeric id suffix, and the id is what actually controls the match: a slug whose words name one category while its id suffix points at a different one still resolves by the id, not the words. The response's own category.slug reports whichever category a call actually landed on, so a mismatch between what was sent and what the slug's words suggested is never silent. Autodoc's own pages for a category, a maker, a model or a generation taken on their own carry no parts listing at all, which is why a result here only exists once every one of those levels narrows down together to a single engine variant.
autodoc-vehicle-lookup's maker items carry popular, showing whether a maker is one Autodoc already surfaces on its own front maker page rather than only in the full list, together with model_count, Autodoc's own tally of how many models sit under it. Both are useful for defaulting a picker to a handful of well-known makers before a user has typed anything at all. Once a caller already knows one generation, every variant under it — each with its own power, displacement, fuel and build-year window — comes back in that same call, so settling on one of them needs no further request once the generation itself is already in hand.
autodoc-search only ever answers for one exact vehicle, while autodoc-part-search ignores vehicles entirely and runs across Autodoc's catalogue instead; despite that difference in scope, the two operations still land on the same identifier whenever they happen to match the same physical part. That agreement is what lets a single further call open the full record behind either kind of result, whether a caller arrived at a part through a vehicle-scoped listing or through a plain catalogue search that never touched a vehicle at all. Neither search operation reports how many rows in total match its own query, since Autodoc itself publishes no such count for either listing.
Autodoc sells automotive spare parts, accessories, tools and fluids online across Europe, serving mainly private car owners and smaller repair workshops rather than large fleet buyers. Selling parts after a vehicle has already left the factory is a whole industry of its own: cars need ongoing repair and maintenance for years after their original sale, so parts for them stay in demand long after the car itself was bought.
{
"body": {
"oem_number": "34216774692"
}
}POST /api/v1/autodoc/<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).autodoc-search for the part categories and prices available for that exact engine variant.autodoc-oem-lookup to the aftermarket equivalents Autodoc sells for it.autodoc-vehicle-lookup with no parameters to build a maker and model picker, then drill down to one engine variant before searching its parts.autodoc-product-detail on a saved article_id to watch a part's price, availability and rating change over time.oem_references and equivalent_parts from autodoc-product-detail to show what it replaces and what replaces it.autodoc-search returns no parts unless body.category and the complete vehicle both arrive in the same call, rather than falling back to a partial or category-only listing.body.oem_number is required on autodoc-oem-lookup; there is no default or catalogue-wide fallback when it is left out.autodoc-product-detail needs either body.article_id or body.url; body.max_reviews can be set up to 100 but does not return more reviews than Autodoc already published on that part's page.autodoc-categories and autodoc-vehicle-lookup answer in one response, with no further pages; neither takes a body.page or body.max_results input.body.market on every operation accepts only uk, de or es; a value outside those three is not accepted in its place.autodoc-vehicle-lookup, an unrecognized slug comes back as not found rather than an empty list.Send the number as body.oem_number to autodoc-oem-lookup; oem, oe, oe_number, number and q all work as alternative names for the same value, and spaces or dots inside it make no difference. The response carries the resolved number back in oem{number, normalised, resolved_title, url} alongside a parts[] list in the same card shape autodoc-search and autodoc-part-search use for their own results. An OE number Autodoc does not carry is treated as not found rather than resolved to any parts, because only a vehicle manufacturer's own original part number resolves here.
Yes: send the part number as body.query to autodoc-part-search; q, keyword, search, text, part_number and number all work as alternative names for it. This operation is not scoped to any one vehicle, so the same part number returns the same match and its alternatives regardless of the car in mind. Results come back as a parts[] list carrying article_id for each part, the same identifier autodoc-search uses for its own rows, with query{text, resolved_title} describing the match. A term Autodoc does not carry comes back as an empty parts[] list rather than an error.
First resolve the car through autodoc-vehicle-lookup: pass body.maker, add body.model, then body.generation, until you reach one body.vehicle — the exact engine variant, since fitment in this catalogue only exists at that level. Then call autodoc-search with that same maker, model, generation and vehicle, plus a body.category from either autodoc-categories or the narrower categories[] that autodoc-vehicle-lookup already returned for that car. A saved body.vehicle_url can replace all four vehicle fields at once on either operation.
Call autodoc-vehicle-lookup with no parameters at all to get every maker Autodoc lists, each as a slug; add body.maker to get that maker's models, then body.model to get its generations. A generation's own name and slug typically carry the chassis code owners already know their car by, such as a letter-and-number body or platform code, so matching that code against the generation list is usually enough to identify the right one without already knowing Autodoc's own naming for it.
autodoc-product-detail include?Beyond the part's title, brand, price and currency, the response carries its full specification table as specifications[]{name, value}, with ean and weight_kg lifted out of that same table whenever the manufacturer published either row — about a third of parts have neither, in which case both come back null. The complete image set, an aggregate rating out of rating_best together with the underlying reviews[], and shipping, return and availability details including in_stock and the availability_source that produced it round out the record.
autodoc-categories lists every category in Autodoc's catalogue, 199 of them, regardless of whether any one car actually has parts filed under all of them. The categories[] that autodoc-vehicle-lookup returns once you reach one exact vehicle is narrower: it only lists the categories Autodoc actually stocks parts for on that specific car, so it cannot include a category that car has no parts in at all. Use the vehicle-scoped list whenever a car is already known, and the catalogue-wide list only to browse or to resolve a category id independent of any one car.
autodoc-search let me sort the results?There is no sort input on autodoc-search because Autodoc's own sort control on this particular listing has no measurable effect on the order of the parts it serves, so adding one here would offer a choice that does not actually change anything. Each row still carries price, price_was, rrp and rating, so a caller that needs a particular order can sort the returned parts[] itself using whichever of those fields matters for its own use case.
in_stock value sometimes missing instead of true or false?On autodoc-search, a row's units_left counter can sit at zero for two different reasons Autodoc does not distinguish on that listing: the part is actually out of stock, or it is an in-stock item that simply has no countdown counter running at all. in_stock on that row comes back null in exactly that case, and true only once the counter is above zero. autodoc-product-detail's own in_stock field, built from the part's page directly rather than from that counter, is the one to trust for a definite answer either way.