# Autodoc (Spain) — 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.

> Browse vehicle makes, models, and variants on Autodoc.es, then search for specific auto parts by keyword or part number. Retrieve category listings with pricing, full part specifications, OE cross-reference numbers, and vehicle fitment data to compare options and verify compatibility.

**Category:** Automotive | **Website:** [www.autodoc.es/repuestos](https://www.autodoc.es/repuestos) | **Docs:** [parse.bot/marketplace/89a14b54-dcab-42a9-a5e6-e1c806eb0801/autodoc-es-api](https://parse.bot/marketplace/89a14b54-dcab-42a9-a5e6-e1c806eb0801/autodoc-es-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-es-api-89a14b54/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category_parts

Retrieve a paginated parts listing for a specific category, optionally filtered by vehicle. Returns structured part data including pricing, brand, and article IDs usable with get_part_details. Without a car_slug filter, returns popular/featured parts across all vehicles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `car_slug` | string | No | Vehicle path slug for filtering results by vehicle (e.g. 'vw/golf/golf-v-variant-1k5/23263-1-4') |
| `category_slug` | string | Yes | Category slug with numeric ID suffix (e.g. 'disco-de-freno-10132', 'pastillas-de-freno-10131') |
| `page` | integer | No | Page number for pagination |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-es-api-89a14b54/get_category_parts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"car_slug":"<string>","category_slug":"<string>","page":"<integer>"}'
```

### get_part_details

Retrieve full details for a specific part including technical specifications, OE cross-reference numbers, vehicle compatibility list, interchange/equivalent parts, pricing, and images. The brand_slug is extractable from the part's URL returned by search_parts or get_category_parts (the path segment before the article_id).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `article_id` | string | Yes | Article ID from search_parts or get_category_parts results (e.g. '1657459') |
| `brand_slug` | string | Yes | Brand slug in lowercase (e.g. 'brembo', 'bosch', 'ridex', 'valeo', 'ate', 'zimmermann') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-es-api-89a14b54/get_part_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"article_id":"<string>","brand_slug":"<string>"}'
```

### get_vehicle_makes

Retrieve all vehicle manufacturers available in the catalog. Returns makers grouped by popularity (top 10 recognized) and alphabetically. Each maker carries an ID usable with get_vehicle_models to drill into that manufacturer's model tree.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-es-api-89a14b54/get_vehicle_makes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_vehicle_models

Retrieve all models for a specific vehicle manufacturer. Returns models grouped by series name. Each model carries an ID usable with get_vehicle_variants to list engine/fuel variants for that model.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `maker_id` | integer | Yes | Manufacturer ID from get_vehicle_makes results (e.g. 121 for Volkswagen, 16 for BMW, 74 for Mercedes-Benz) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-es-api-89a14b54/get_vehicle_models \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"maker_id":"<integer>"}'
```

### get_vehicle_variants

Retrieve vehicle variants (engine/fuel types) for a specific model. Returns variants grouped by fuel type. Each variant carries an ID and fuel type information for vehicle-specific part filtering.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `model_id` | integer | Yes | Model ID from get_vehicle_models results (e.g. 512) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-es-api-89a14b54/get_vehicle_variants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model_id":"<integer>"}'
```

### search_parts

Search for parts by keyword or exact part number using autocomplete hints. The site is Spanish-language, so Spanish keywords yield richer results (e.g. 'pastillas de freno' instead of 'brake pads'). Part number searches (e.g. '09.9167.11') return direct product matches with article_id regardless of language. Results are grouped by type (popular queries, categories, products).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | Yes | Search keyword in Spanish or exact part number (e.g. 'pastillas de freno', '09.9167.11', 'disco de freno') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-autodoc-es-api-89a14b54/search_parts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>"}'
```
