# Cars — 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 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/cars/`
**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 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.beta.paywithlocus.com/api/wrapped/credits/cars/get-dealer-inventory \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/cars/get-listing-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/cars/search-listings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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>"}'
```

## 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.