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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-preowned-ferrari-com-api-8910854a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-preowned-ferrari-com-api-8910854a/get_vehicle_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-preowned-ferrari-com-api-8910854a/list_countries \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-preowned-ferrari-com-api-8910854a/list_dealers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-preowned-ferrari-com-api-8910854a/list_models \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-preowned-ferrari-com-api-8910854a/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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>"}'
```
