# 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-ev-database-org-api-5720e164/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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/parse-ev-database-org-api-5720e164/get_cheatsheet \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-ev-database-org-api-5720e164/get_vehicle_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-ev-database-org-api-5720e164/get_vehicle_images \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-ev-database-org-api-5720e164/list_makes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-ev-database-org-api-5720e164/list_vehicles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-ev-database-org-api-5720e164/search_vehicles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
