# Ev Database — 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.

> Search and compare electric vehicles by technical specs, pricing, range, and efficiency ratings. Access detailed vehicle information, images, and manufacturer data for EVs listed on ev-database.org.

**Category:** Automotive | **Website:** [ev-database.org/](https://ev-database.org/) | **Docs:** [parse.bot/marketplace/5720e164-b8d0-4cd8-9364-d80ef02b4b4b/ev-database-org-api](https://parse.bot/marketplace/5720e164-b8d0-4cd8-9364-d80ef02b4b4b/ev-database-org-api)

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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/ev-database/`
**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 cheatsheet

Retrieve a ranked list of all vehicles sorted by a specific metric. Returns the full vehicle list ordered by the chosen metric. Vehicles carry the same summary shape as list_vehicles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `type` | string | No | Metric type to rank vehicles by. |

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

### Get vehicle detail

Retrieve full technical specifications for a single EV identified by its id and slug. Returns battery details, performance data, charging tables, dimensions, pricing by country, real-range scenarios, and more. Both id and slug are available from list_vehicles or search_vehicles results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Vehicle ID from list_vehicles or search_vehicles results. |
| `slug` | string | Yes | Vehicle slug from list_vehicles or search_vehicles results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ev-database/get-vehicle-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","slug":"<string>"}'
```

### Get vehicle images

Retrieve all image URLs for a specific EV. Returns an array of full URLs to vehicle photos. Both id and slug are available from list_vehicles or search_vehicles results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Vehicle ID from list_vehicles or search_vehicles results. |
| `slug` | string | Yes | Vehicle slug from list_vehicles or search_vehicles results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ev-database/get-vehicle-images \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","slug":"<string>"}'
```

### List makes

Retrieve all EV manufacturers available in the database. Returns an alphabetically sorted array of manufacturer name strings.

**Estimated cost:** Metered

_No parameters required._

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

### List vehicles

Retrieve all electric vehicles in the database with summary data including name, ID, slug, specs (range, efficiency, weight, acceleration, battery, fast-charge rate, towing capacity, cargo volume), and pricing across countries. Returns all vehicles in a single page. Each vehicle carries an id and slug needed by get_vehicle_detail and get_vehicle_images.

**Estimated cost:** Metered

_No parameters required._

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

### Search vehicles

Search electric vehicles by free-text query. Performs a case-insensitive substring match against vehicle names (make and model). Returns matching vehicles with the same summary shape as list_vehicles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query to match against vehicle names (make, model, variant). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ev-database/search-vehicles \
  -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://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.