# Facebook Marketplace Scraper — Listings, Prices & Vehicles (`crawloop/facebook-marketplace-scraper`) Actor

Scrape Facebook Marketplace by keyword or URL. Export title, price, location, photos, vehicle specs, and listing status. Privacy-safe mode, monitoring, batch keywords. Fast curl\_cffi HTTP scraper with residential proxy support.

- **URL**: https://apify.com/crawloop/facebook-marketplace-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 96.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 marketplace listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Facebook Marketplace Scraper — Listings, Prices, Vehicles & Monitoring

> **Disclaimer:** Unofficial integration for publicly accessible Facebook Marketplace pages. **Facebook**, **Meta**, and **Marketplace** are trademarks of Meta Platforms, Inc. Not affiliated with, sponsored by, or endorsed by Meta. Provided for informational and research purposes only. You are solely responsible for complying with applicable laws and platform terms.

Scrape **Facebook Marketplace listings** by **keyword** or **search URL** — no login required. Export **title**, **price**, **location**, **photos**, **vehicle specs** (make, model, mileage, transmission), **listing status**, and **date listed** as clean JSON or CSV. Built for **resale arbitrage**, **used-car research**, **price monitoring**, **lead alerts**, and **marketplace data pipelines**.

**Privacy-safe by default** — seller identity, precise coordinates, VIN, and contact info in descriptions are stripped or redacted before export.

> **Crawloop Marketplace Suite** — classifieds and marketplace scrapers for local listings intelligence.

| **Facebook Marketplace Scraper** ◄── *you are here* | Kleinanzeigen Scraper | Marktplaats Scraper | Mobile.de Scraper |
| :---: | :---: | :---: | :---: |
| US Marketplace keyword & URL search | Germany classifieds & PLZ radius | Netherlands classifieds | Germany vehicle listings |

---

### Key Features

- **Keyword search** — pass `searchQuery` + `marketplaceLocation`; the Actor builds the Marketplace search URL
- **Batch keywords** — `searchQueries` array for larger pulls with automatic deduplication
- **Direct URLs** — scrape Marketplace search pages or individual item URLs via `startUrls`
- **Vehicle data** — structured `vehicle` object: make, model, odometer, transmission, fuel type when exposed by the listing
- **Fast HTTP scraping** — `curl_cffi` Chrome TLS impersonation; no headless browser overhead
- **Dynamic GraphQL doc_id harvester** — refreshes internal query IDs from Facebook JS bundles on session warmup
- **Monitoring mode** — emit only new listings since the previous run (Key-Value store deduplication)
- **Privacy-safe output** — `privacySafeMode` on by default: no seller profile, no lat/lng, no VIN, PII redacted in descriptions
- **Optional detail enrichment** — `includeSeller` visits each item page for full description and photo gallery
- **eBay arbitrage add-on** — `compareWithEbay` attaches sold-price margin metrics per unique keyword
- **Residential proxy ready** — geo-targeted Apify RESIDENTIAL proxy for stable US Marketplace access

---

### When to use this Actor

- **Resale & arbitrage** — track underpriced listings, compare ask prices, monitor new inventory
- **Used-car research** — extract make, model, mileage, and price for vehicles, trucks, and RVs
- **Price monitoring** — scheduled runs with `monitoringMode` for new-listing alerts
- **Market research** — bulk JSON/CSV export by city, category, price band, and condition filters
- **Data pipelines** — feed datasets into dashboards, databases, and automation workflows

### When not to use this Actor

- **Seller contact or messaging** — reads public listing data only; no Messenger or profile scraping
- **Private groups or non-Marketplace pages** — Marketplace search and item URLs only
- **Guaranteed seller identity** — guest sessions hide seller names; optional cookies may expose more, but privacy mode strips seller output by default
- **Unlimited deep pagination without cookies** — guest sessions may cap results per query; use batch keywords or authenticated cookies for larger pulls

---

### Quick Start

**Basic — keyword search in Phoenix:**

```json
{
  "searchQuery": "used trucks",
  "marketplaceLocation": "phoenix",
  "maxItems": 50,
  "privacySafeMode": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
````

**Large pull — multiple keywords:**

```json
{
  "searchQuery": "used",
  "searchQueries": ["furniture", "electronics", "tools", "car"],
  "marketplaceLocation": "phoenix",
  "maxItems": 150,
  "sortBy": "creation_time_descend",
  "privacySafeMode": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `searchQuery` | String | — | Primary keyword (e.g. `used trucks`, `iphone`) |
| `searchQueries` | Array | — | Extra keywords; deduplicated across the run |
| `startUrls` | Array | — | Marketplace search or item URLs |
| `marketplaceLocation` | String | `phoenix` | City slug (`phoenix`, `nyc`, `la`, `chicago`, …) |
| `radiusKm` | Integer | `65` | Search radius in kilometers |
| `minPrice` / `maxPrice` | Integer | — | Price filters in local currency |
| `daysSinceListed` | String | — | `1`, `7`, or `30` (last 24h / 7d / 30d) |
| `itemCondition` | String | — | `new,used_like_new,used_good,used_fair` |
| `categoryId` | String | — | Category slug (`vehicles`, `electronics`, `free`, …) |
| `sortBy` | String | `best_match` | `creation_time_descend`, `distance_ascend`, `price_ascend`, `price_descend` |
| `maxItems` | Integer | `50` | Maximum listings to collect per run |
| `includeSeller` | Boolean | `false` | Fetch detail page for description, photos, attributes |
| `flattenOutput` | Boolean | `false` | Flatten nested objects for spreadsheet export |
| `monitoringMode` | Boolean | `false` | Only new listings vs previous runs |
| `compareWithEbay` | Boolean | `false` | Attach eBay sold-price arbitrage metrics |
| `privacySafeMode` | Boolean | `true` | Strip seller data, redact PII, remove coordinates & VIN |
| `cookies` | Array | `[]` | Optional session cookies for deeper pagination |
| `proxyConfiguration` | Object | Residential | Apify Proxy — **required on cloud runs** |

***

### Output Format

Each dataset row is one Marketplace listing.

| Field | Type | Description |
| :--- | :--- | :--- |
| `listingId` | String | Unique Marketplace listing ID |
| `listingTitle` | String | Listing title |
| `description` | String | Full description when `includeSeller` is enabled |
| `price` | Object | `formatted`, `value`, `currency` |
| `location` | Object | `city`, `state`, `text` (coordinates removed in privacy mode) |
| `listingPhotos` | Array | Photo URLs |
| `listingUrl` | String | Direct item page URL |
| `status` | String | `live`, `pending`, or `sold` |
| `dateListed` | String | ISO 8601 creation date when available |
| `vehicle` | Object | Make, model, odometer, transmission (vehicles only) |
| `ebayArbitrage` | Object | Sold-price margin metrics when `compareWithEbay` is on |
| `searchQuery` | String | Keyword that produced this listing |
| `scrapedAt` | String | UTC scrape timestamp |

#### Output Example

```json
{
  "listingId": "1656134792124906",
  "listingTitle": "2009 Nissan Altima · 2.5 S Sedan 4D",
  "price": {
    "formatted": "$5,900",
    "value": 5900,
    "currency": "USD"
  },
  "location": {
    "text": "Phoenix, Arizona",
    "city": "Phoenix",
    "state": "AZ"
  },
  "listingPhotos": ["…"],
  "status": "live",
  "vehicle": {
    "make": "Nissan",
    "model": "Altima",
    "odometer": "85K miles"
  },
  "searchQuery": "used",
  "scrapedAt": "2026-07-15T11:30:06+00:00"
}
```

***

### Supported Locations

Pre-mapped US city slugs include **phoenix**, **nyc**, **la**, **sanfrancisco**, **chicago**, **austin**, **boston**, **seattle**, **atlanta**, **miami**, **portland**, **denver**, **dallas**, **houston**, **philadelphia**, and **lasvegas**. Pass any Marketplace city slug via `marketplaceLocation` or embed it in `startUrls`.

***

### Privacy & Personal Data

**`privacySafeMode` is enabled by default.** The Actor scrapes public listing pages but the saved dataset excludes sensitive fields:

- Seller name, profile ID, and profile URL are **never written** to the dataset
- Emails, phone numbers, and messenger links in descriptions are **redacted**
- Precise latitude and longitude are **removed** (city and state remain)
- Vehicle VIN is **removed**

Session cookies are used only for HTTP requests and are **never stored** in output.

Set `privacySafeMode: false` only if you have a documented lawful basis to collect seller identity, coordinates, or VIN.

***

### FAQ

#### Do I need a Facebook account?

No. The Actor runs in guest mode by default. Optional `cookies` can improve pagination depth; seller data is still excluded when privacy mode is on.

#### How do I scrape only new listings?

Enable `monitoringMode` and run on a schedule. Listing IDs from previous runs are stored in the Key-Value Store; only new IDs are emitted.

#### How do I get vehicle make, model, and mileage?

Vehicle listings include a `vehicle` sub-object when Facebook exposes the data. Enable `includeSeller` for the fullest attribute set from the detail page.

#### How do I collect more than one page of results?

Use `searchQueries` with multiple keywords, increase `maxItems`, or provide authenticated `cookies`. Residential proxies matched to the target country are required on Apify Cloud.

#### Does this Actor collect seller names or phone numbers?

Not by default. Privacy-safe mode strips seller fields and redacts contact patterns in descriptions.

***

### Limitations

- Facebook rotates internal GraphQL query IDs; the Actor harvests them dynamically with fallback values
- Guest sessions may return fewer listings per query than authenticated sessions
- Automating Marketplace may conflict with Meta platform terms — use responsibly and lawfully
- Datacenter proxies are often blocked; residential proxies geo-matched to the target region are required on cloud

***

**Crawloop Marketplace Suite**

# Actor input Schema

## `searchQuery` (type: `string`):

Keyword to search on Facebook Marketplace. The actor builds the search URL for you.

## `searchQueries` (type: `array`):

Optional extra keywords. Combined with searchQuery for larger result sets; listings are deduplicated across queries.

## `startUrls` (type: `array`):

Direct Facebook Marketplace search or item URLs. Each URL is scraped independently.

## `marketplaceLocation` (type: `string`):

City slug or name (e.g. phoenix, nyc, los angeles). Used when searchQuery is set without a start URL.

## `radiusKm` (type: `integer`):

Search radius in kilometers around the marketplace location.

## `minPrice` (type: `integer`):

Minimum listing price filter in local currency.

## `maxPrice` (type: `integer`):

Maximum listing price filter in local currency.

## `daysSinceListed` (type: `string`):

Only return listings posted within this period.

## `itemCondition` (type: `string`):

Comma-separated condition filter: new, used\_like\_new, used\_good, used\_fair.

## `categoryId` (type: `string`):

Optional Marketplace category slug (e.g. vehicles, electronics, free).

## `sortBy` (type: `string`):

Marketplace search sort order.

## `maxItems` (type: `integer`):

Maximum number of listings to scrape per search or URL.

## `includeSeller` (type: `boolean`):

Visit each listing detail page for full description, all photos, attributes, seller data, and vehicle specs.

## `flattenOutput` (type: `boolean`):

Flatten nested objects (vehicle, seller, location) into top-level fields for spreadsheets.

## `monitoringMode` (type: `boolean`):

Emit only listings not seen in previous runs of the same search configuration.

## `compareWithEbay` (type: `boolean`):

Attach eBay sold-price arbitrage metrics (median sold price, margin, demand score) per unique keyword.

## `privacySafeMode` (type: `boolean`):

Recommended default. Strips seller identity, redacts emails/phones in descriptions, and removes precise coordinates and VIN from output.

## `excludeSellerData` (type: `boolean`):

Remove seller name and profile from output. Ignored when privacySafeMode is enabled.

## `redactDescriptionPii` (type: `boolean`):

Mask emails, phone numbers, and messenger links found in listing descriptions. Ignored when privacySafeMode is enabled.

## `excludeCoordinates` (type: `boolean`):

Remove latitude and longitude from output (city and state are kept). Ignored when privacySafeMode is enabled.

## `excludeVin` (type: `boolean`):

Remove vehicle VIN from output. Ignored when privacySafeMode is enabled.

## `cookies` (type: `array`):

Optional Facebook session cookies (e.g. c\_user, xs, datr). Enables seller identity and deeper pagination.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Residential proxies geo-matched to the target marketplace country are required for stable access.

## Actor input object example

```json
{
  "searchQuery": "used trucks",
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/phoenix/search/?query=used%20trucks"
    }
  ],
  "marketplaceLocation": "phoenix",
  "radiusKm": 65,
  "daysSinceListed": "",
  "sortBy": "best_match",
  "maxItems": 50,
  "includeSeller": false,
  "flattenOutput": false,
  "monitoringMode": false,
  "compareWithEbay": false,
  "privacySafeMode": true,
  "excludeSellerData": true,
  "redactDescriptionPii": true,
  "excludeCoordinates": true,
  "excludeVin": true,
  "cookies": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQuery": "used trucks",
    "startUrls": [
        {
            "url": "https://www.facebook.com/marketplace/phoenix/search/?query=used%20trucks"
        }
    ],
    "marketplaceLocation": "phoenix",
    "cookies": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/facebook-marketplace-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQuery": "used trucks",
    "startUrls": [{ "url": "https://www.facebook.com/marketplace/phoenix/search/?query=used%20trucks" }],
    "marketplaceLocation": "phoenix",
    "cookies": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/facebook-marketplace-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQuery": "used trucks",
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/phoenix/search/?query=used%20trucks"
    }
  ],
  "marketplaceLocation": "phoenix",
  "cookies": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call crawloop/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawloop/facebook-marketplace-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Facebook Marketplace Scraper — Listings, Prices & Vehicles",
        "description": "Scrape Facebook Marketplace by keyword or URL. Export title, price, location, photos, vehicle specs, and listing status. Privacy-safe mode, monitoring, batch keywords. Fast curl_cffi HTTP scraper with residential proxy support.",
        "version": "1.2",
        "x-build-id": "cwL013llUOIJG9hpm"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawloop~facebook-marketplace-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawloop-facebook-marketplace-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawloop~facebook-marketplace-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawloop-facebook-marketplace-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawloop~facebook-marketplace-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawloop-facebook-marketplace-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchQuery": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Keyword to search on Facebook Marketplace. The actor builds the search URL for you."
                    },
                    "searchQueries": {
                        "title": "Search queries (batch)",
                        "type": "array",
                        "description": "Optional extra keywords. Combined with searchQuery for larger result sets; listings are deduplicated across queries.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Direct Facebook Marketplace search or item URLs. Each URL is scraped independently.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "marketplaceLocation": {
                        "title": "Marketplace location",
                        "type": "string",
                        "description": "City slug or name (e.g. phoenix, nyc, los angeles). Used when searchQuery is set without a start URL.",
                        "default": "phoenix"
                    },
                    "radiusKm": {
                        "title": "Search radius (km)",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Search radius in kilometers around the marketplace location.",
                        "default": 65
                    },
                    "minPrice": {
                        "title": "Minimum price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum listing price filter in local currency."
                    },
                    "maxPrice": {
                        "title": "Maximum price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum listing price filter in local currency."
                    },
                    "daysSinceListed": {
                        "title": "Days since listed",
                        "enum": [
                            "",
                            "1",
                            "7",
                            "30"
                        ],
                        "type": "string",
                        "description": "Only return listings posted within this period.",
                        "default": ""
                    },
                    "itemCondition": {
                        "title": "Item condition",
                        "type": "string",
                        "description": "Comma-separated condition filter: new, used_like_new, used_good, used_fair."
                    },
                    "categoryId": {
                        "title": "Category ID",
                        "type": "string",
                        "description": "Optional Marketplace category slug (e.g. vehicles, electronics, free)."
                    },
                    "sortBy": {
                        "title": "Sort by",
                        "enum": [
                            "best_match",
                            "creation_time_descend",
                            "distance_ascend",
                            "price_ascend",
                            "price_descend"
                        ],
                        "type": "string",
                        "description": "Marketplace search sort order.",
                        "default": "best_match"
                    },
                    "maxItems": {
                        "title": "Maximum items",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of listings to scrape per search or URL.",
                        "default": 50
                    },
                    "includeSeller": {
                        "title": "Include seller & full details",
                        "type": "boolean",
                        "description": "Visit each listing detail page for full description, all photos, attributes, seller data, and vehicle specs.",
                        "default": false
                    },
                    "flattenOutput": {
                        "title": "Flatten output",
                        "type": "boolean",
                        "description": "Flatten nested objects (vehicle, seller, location) into top-level fields for spreadsheets.",
                        "default": false
                    },
                    "monitoringMode": {
                        "title": "Monitoring mode",
                        "type": "boolean",
                        "description": "Emit only listings not seen in previous runs of the same search configuration.",
                        "default": false
                    },
                    "compareWithEbay": {
                        "title": "Compare with eBay sold prices",
                        "type": "boolean",
                        "description": "Attach eBay sold-price arbitrage metrics (median sold price, margin, demand score) per unique keyword.",
                        "default": false
                    },
                    "privacySafeMode": {
                        "title": "Privacy-safe mode",
                        "type": "boolean",
                        "description": "Recommended default. Strips seller identity, redacts emails/phones in descriptions, and removes precise coordinates and VIN from output.",
                        "default": true
                    },
                    "excludeSellerData": {
                        "title": "Exclude seller data",
                        "type": "boolean",
                        "description": "Remove seller name and profile from output. Ignored when privacySafeMode is enabled.",
                        "default": true
                    },
                    "redactDescriptionPii": {
                        "title": "Redact contact info in descriptions",
                        "type": "boolean",
                        "description": "Mask emails, phone numbers, and messenger links found in listing descriptions. Ignored when privacySafeMode is enabled.",
                        "default": true
                    },
                    "excludeCoordinates": {
                        "title": "Exclude coordinates",
                        "type": "boolean",
                        "description": "Remove latitude and longitude from output (city and state are kept). Ignored when privacySafeMode is enabled.",
                        "default": true
                    },
                    "excludeVin": {
                        "title": "Exclude VIN",
                        "type": "boolean",
                        "description": "Remove vehicle VIN from output. Ignored when privacySafeMode is enabled.",
                        "default": true
                    },
                    "cookies": {
                        "title": "Facebook cookies",
                        "type": "array",
                        "description": "Optional Facebook session cookies (e.g. c_user, xs, datr). Enables seller identity and deeper pagination."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify Proxy settings. Residential proxies geo-matched to the target marketplace country are required for stable access.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
