# Cars — 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 for vehicles on Cars.com using filters like price, make, and model, then get detailed specifications and dealer inventory information for any listing you're interested in. Access comprehensive vehicle details including pricing, features, and dealer contact information all in one place.

**Category:** Automotive | **Website:** [cars.com/](https://cars.com/) | **Docs:** [parse.bot/marketplace/ccacb270-9c43-45a7-b75d-beccf1ff58cb/cars-com-api](https://parse.bot/marketplace/ccacb270-9c43-45a7-b75d-beccf1ff58cb/cars-com-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-cars-com-api-ccacb270/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_dealer_inventory

Get all vehicle listings for a specific dealer. Returns the dealer's current inventory as a list of vehicle listings. The dealer_id is a UUID obtained from search_listings results[*].dealer.customer_id.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `dealer_id` | string | Yes | Unique dealer/customer ID UUID (from search_listings results[*].dealer.customer_id). |
| `page` | integer | No | Page number, 1-indexed. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cars-com-api-ccacb270/get_dealer_inventory \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dealer_id":"<string>","page":"<integer>"}'
```

### get_listing_details

Get full details for a specific vehicle listing by its unique listing ID. Returns comprehensive vehicle specifications including body style, fuel type, colors, dealer info, features list, and photos. The listing_id is a UUID obtained from search_listings results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listing_id` | string | Yes | Unique UUID for the vehicle listing (from search_listings results[*].listing_id). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cars-com-api-ccacb270/get_listing_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"listing_id":"<string>"}'
```

### search_listings

Search for vehicle listings with filters. Returns a paginated list of matching vehicles including pricing, mileage, dealer info, and deal ratings. Supports filtering by make, model, year range, price range, mileage, stock type, and geographic radius from a ZIP code. Results are paginated with 24 listings per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `distance` | integer | No | Search radius in miles from ZIP code. |
| `make` | string | No | Vehicle make (e.g., 'toyota', 'ford', 'gmc'). |
| `mileage_max` | integer | No | Maximum mileage filter. |
| `model` | string | No | Vehicle model (e.g., 'f-150', 'camry'). Used in combination with make. |
| `page` | integer | No | Page number, 1-indexed. |
| `price_max` | integer | No | Maximum listing price in USD. |
| `price_min` | integer | No | Minimum listing price in USD. |
| `sort` | string | No | Sort order for results. |
| `stock_type` | string | No | Stock type filter. |
| `year_max` | integer | No | Maximum model year filter. |
| `year_min` | integer | No | Minimum model year filter. |
| `zip` | string | No | 5-digit US ZIP code for search area, leading zeros preserved. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cars-com-api-ccacb270/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"distance":"<integer>","make":"<string>","mileage_max":"<integer>","model":"<string>","page":"<integer>","price_max":"<integer>","price_min":"<integer>","sort":"<string>","stock_type":"<string>","year_max":"<integer>","year_min":"<integer>","zip":"<string>"}'
```
