# Autodoc (United Kingdom) — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Find auto parts and check compatibility with your vehicle by browsing makes, models, and engines, then search for parts with detailed specifications and discover equivalent alternatives. Get everything you need to identify the right replacement parts for any car in the Autodoc catalog.

**Category:** Automotive | **Website:** [autodoc.co.uk/](https://autodoc.co.uk/) | **Docs:** [parse.bot/marketplace/358ee3e3-bef1-4043-9259-ad134e8f66ad/autodoc-co-uk-api](https://parse.bot/marketplace/358ee3e3-bef1-4043-9259-ad134e8f66ad/autodoc-co-uk-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-autodoc-co-uk-api-358ee3e3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_car_engines

Returns available engine variants for a given car model ID, grouped by fuel type (Petrol, Diesel, etc.). Each engine has an integer ID. Model IDs come from get_car_models results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `model_id` | integer | Yes | The ID of the car model, obtained from get_car_models results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-co-uk-api-358ee3e3/get_car_engines \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model_id":"<integer>"}'
```

### get_car_makers

Returns all car manufacturers available on Autodoc, grouped into popular and alphabetical lists. Each maker has an integer ID used to drill into models. No input required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-co-uk-api-358ee3e3/get_car_makers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_car_models

Returns car models for a given maker ID, grouped by model series. Each model has an integer ID used to drill into engine variants. Maker IDs come from get_car_makers results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `maker_id` | integer | Yes | The ID of the car manufacturer, obtained from get_car_makers results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-co-uk-api-358ee3e3/get_car_models \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"maker_id":"<integer>"}'
```

### get_equivalent_products

Returns compatible alternative products for a given product. Lists other brands that make a replacement part with the same specifications. The URL path comes from search_parts or get_product_details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | The product URL path (e.g. '/ridex/7999410'). Can be a full URL or a relative path. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-co-uk-api-358ee3e3/get_equivalent_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_product_details

Returns full product details for a specific part by its product URL path. Includes name, brand, price, technical specifications, and OE reference numbers. The URL path comes from search_parts results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | The product URL path (e.g. '/ridex/7999410'). Can be a full URL or a relative path from search_parts results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-co-uk-api-358ee3e3/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_parts

Searches for parts by keyword, part number, or article number. Returns categorized suggestions including search suggestions, product categories, and specific products with prices.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | The search term (e.g. 'brake pads', 'oil filter', 'RIDEX 402B0013'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-co-uk-api-358ee3e3/search_parts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
