# Auto Data — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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.

> Search and retrieve comprehensive specifications for over 53,500 cars by browsing brands, models, generations, and variants to find detailed performance, engine, dimensions, and drivetrain data. Quickly access the exact automotive information you need without navigating multiple sources.

**Category:** Automotive | **Website:** [www.auto-data.net/en/mini-electric-cooper-se-f56-facelift-2021-generation-8575](https://www.auto-data.net/en/mini-electric-cooper-se-f56-facelift-2021-generation-8575) | **Docs:** [parse.bot/marketplace/4b8f1db6-d3f1-42fe-b6f1-1329071a2735/auto-data-net-api](https://parse.bot/marketplace/4b8f1db6-d3f1-42fe-b6f1-1329071a2735/auto-data-net-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/auto-data/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get generations

Get all generations for a given car model. Returns generation names, slugs, and thumbnail image URLs. Each generation slug can be passed to get_variants.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `model_slug` | string | Yes | Model slug from get_models results (e.g., 'bmw-3-series-model-953', 'toyota-corolla-model-822'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auto-data/get-generations \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"model_slug":"<string>"}'
```

### Get models

Get all models for a given car brand. Returns model names, production year ranges, and slugs. Each model slug can be passed to get_generations.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `brand_slug` | string | Yes | Brand slug from list_brands results (e.g., 'bmw-brand-86', 'toyota-brand-40'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auto-data/get-models \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"brand_slug":"<string>"}'
```

### Get specifications

Get full specifications for a specific car variant including performance, engine, dimensions, drivetrain, and weight data. Returns structured specification sections that vary by vehicle type, plus key FAQ-style specs and an image URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `variant_slug` | string | Yes | Variant slug from get_variants results (e.g., 'mini-electric-cooper-se-f56-facelift-2021-32.6-kwh-184hp-44617'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auto-data/get-specifications \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"variant_slug":"<string>"}'
```

### Get variants

Get all variants (trims/engine options) for a given generation. Returns variant names, production years, and slugs. Each variant slug can be passed to get_specifications.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `generation_slug` | string | Yes | Generation slug from get_generations results (e.g., 'bmw-3-series-sedan-long-g28-lci-facelift-2022-generation-10417'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auto-data/get-variants \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"generation_slug":"<string>"}'
```

### List brands

List all car brands available in the database (376+ brands). Returns brand names, slugs, and URL paths. Each brand slug can be passed to get_models to retrieve that brand's model lineup.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auto-data/list-brands \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search

Search for cars by keyword (brand, model, generation names) using autocomplete. Returns up to 30 matching results with their type classification (brand, model, generation, or variant) and slugs for further lookup.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword (e.g., 'BMW 3', 'Toyota Corolla', 'Audi A4'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auto-data/search \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.