# Preowned Ferrari — 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 and browse preowned Ferrari vehicles worldwide with detailed specifications, pricing, and dealer information all in one place. Find the exact model you're looking for by filtering across countries, dealers, and inventory to discover available luxury vehicles.

**Category:** Automotive | **Website:** [preowned.ferrari.com/](https://preowned.ferrari.com/) | **Docs:** [parse.bot/marketplace/8910854a-3171-40e8-b636-30e20ff4a7f6/preowned-ferrari-com-api](https://parse.bot/marketplace/8910854a-3171-40e8-b636-30e20ff4a7f6/preowned-ferrari-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/preowned-ferrari/`
**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 vehicle details

Get comprehensive vehicle details for one or more ad IDs including full technical specifications, optional features, dealer contact information with office hours, image galleries, and certification logos. Returns significantly more data than search results. Ad IDs are URL-encoded strings obtained from search_listings results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ad_ids` | string | Yes | Comma-separated ad IDs retrieved from search_listings ads[*].id (URL-encoded strings) |
| `locale` | string | No | Locale for results (e.g., 'en-US') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/preowned-ferrari/get-vehicle-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"ad_ids":"<string>","locale":"<string>"}'
```

### List countries

Get available countries and regions where preowned Ferrari listings are available, with listing counts per country. Returns country slugs (used as filter values in search_listings), names, regions, and inventory counts.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `locale` | string | No | Locale for results |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/preowned-ferrari/list-countries \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"locale":"<string>"}'
```

### List dealers

Get authorized Ferrari dealers for a specific country. Returns dealer names, website URLs, slugs, and service options (showroom, service, bodyshop, classiche). Country slug is obtained from list_countries endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | string | Yes | Country slug (e.g., 'US', 'IT', 'DE'). Slugs available from list_countries endpoint. |
| `locale` | string | No | Locale for results |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/preowned-ferrari/list-dealers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"country":"<string>","locale":"<string>"}'
```

### List models

Get all available Ferrari models currently listed in the preowned marketplace with listing counts per model. Returns model names, slugs (used as filter values in search_listings), and current inventory counts.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `locale` | string | No | Locale for results |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/preowned-ferrari/list-models \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"locale":"<string>"}'
```

### Search listings

Search preowned Ferrari listings with optional filters for country, model, price range, year range, and sort order. Returns vehicle summaries with VINs, pricing, dealer info, and pagination. Also returns available filter options (models, countries, price/year ranges). Results are paginated with a 0-indexed page parameter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `countries` | string | No | Comma-separated country slugs to filter by (e.g., 'US,IT,DE'). Slugs available from list_countries endpoint. |
| `limit` | integer | No | Number of results per page (max 24) |
| `locale` | string | No | Locale for results (e.g., 'en-US', 'en-EN') |
| `models` | string | No | Comma-separated model slugs to filter by (e.g., 'F8 CP,F171'). Slugs available from list_models endpoint. |
| `page` | integer | No | Page number (0-indexed) |
| `price_from` | integer | No | Minimum price filter (in local currency) |
| `price_to` | integer | No | Maximum price filter (in local currency) |
| `sort` | string | No | Sort order for results. |
| `year_from` | integer | No | Minimum production year filter |
| `year_to` | integer | No | Maximum production year filter |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/preowned-ferrari/search-listings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"countries":"<string>","limit":"<integer>","locale":"<string>","models":"<string>","page":"<integer>","price_from":"<integer>","price_to":"<integer>","sort":"<string>","year_from":"<integer>","year_to":"<integer>"}'
```

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