# CarsForSale.com — 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 vehicle listings and browse detailed car inventory by make, model, and trim to find the perfect vehicle on CarsForSale.com. Access comprehensive listing details including pricing, specifications, and availability all in one place.

**Category:** Automotive | **Website:** [carsforsale.com/](https://carsforsale.com/) | **Docs:** [parse.bot/marketplace/0380d98d-1de8-4040-8475-46ee65fc46dc/carsforsale-com-api](https://parse.bot/marketplace/0380d98d-1de8-4040-8475-46ee65fc46dc/carsforsale-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-carsforsale-com-api-0380d98d/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_listing_details

Get market analytics for a specific vehicle listing including national average price, days on market, popularity, depreciation history, price history across dealers, and available images. The listing_id (globalInventoryId) is obtained from search_listings results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listing_id` | string | Yes | The globalInventoryId of the listing, obtainable from search_listings results. |

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

### get_makes

Get available vehicle makes and popular search categories from the homepage. Returns a sorted list of makes (e.g. Toyota, Honda) intermixed with popular search categories (e.g. Cheap Cars, Diesel Trucks).

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-carsforsale-com-api-0380d98d/get_makes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_models_by_make

Get all available models for a specific vehicle make. Each model includes its slug name and a display name with the count of available listings.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `make` | string | Yes | Vehicle make name (e.g. Toyota, Honda, Ford, Chevrolet). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-carsforsale-com-api-0380d98d/get_models_by_make \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"make":"<string>"}'
```

### get_trims_by_make_model

Get available trims for a specific vehicle make and model combination. Returns the list of trim levels found for that make/model across all listings.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `make` | string | Yes | Vehicle make name (e.g. Toyota, Honda, Ford). |
| `model` | string | Yes | Vehicle model name (e.g. Camry, Accord, F-150). Must match the Value field from get_models_by_make. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-carsforsale-com-api-0380d98d/get_trims_by_make_model \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"make":"<string>","model":"<string>"}'
```

### search_listings

Search for newly listed vehicle listings near a zip code. Returns recently added vehicles, optionally filtered by make. Results are not paginated and typically return up to ~24 listings. Each listing includes price, mileage, dealer info, and image URLs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `make` | string | No | Filter results by vehicle make (e.g. Toyota, Honda, Ford). Case-insensitive partial match. |
| `zip_code` | string | No | US zip code to search near. Omitting returns listings from a default/national scope. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-carsforsale-com-api-0380d98d/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"make":"<string>","zip_code":"<string>"}'
```
