# Facebook Marketplace Vehicle Listings Scraper (`alpha-scraper/facebook-marketplace-vehicle-listings-scraper`) Actor

\[ 1k/1.49$ ] Facebook Marketplace Vehicle Listings Scraper extracts cars, trucks, motorcycles and other vehicles: make, model, year, mileage, transmission, fuel, body style, colours, seller type, owners, title status, price, location and photos. Search by city or coordinates with filters.

- **URL**: https://apify.com/alpha-scraper/facebook-marketplace-vehicle-listings-scraper.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Facebook Marketplace Vehicle Listings Scraper

**Facebook Marketplace Vehicle Listings Scraper** collects public car, truck, motorcycle and other vehicle listings from the Facebook Marketplace Vehicles category. Give Facebook Marketplace Vehicle Listings Scraper a city such as `nyc` and optional filters for make, model, year, price and mileage, and it returns each listing with make, model, year, mileage, transmission, fuel, colours, seller type, VIN, owners, title status, price, location and photos.

Facebook Marketplace Vehicle Listings Scraper reads only what a logged-out visitor can see on Facebook. You do not need a Facebook account, a login or an API key.

> **📌 At a glance**
>
> - **Input:** cities or coordinates, plus make, model, keywords, price, year, mileage and other vehicle filters
> - **Output:** one dataset record per Facebook vehicle listing
> - **Details:** transmission, fuel type, colours, VIN, owners and title status come from each listing page
> - **Control:** `maxItems` per location and `maxScan` as a safety cap

Car buyers, dealers, flippers and market analysts use Facebook Marketplace Vehicle Listings Scraper to compare local asking prices and track used vehicles without scrolling through Facebook by hand.

### 🔹 Facebook Marketplace Vehicle Listings Scraper – Key Features

Facebook Marketplace Vehicle Listings Scraper focuses on the specifications that matter when you compare vehicles.

- **Vehicle specifications:** Facebook Marketplace Vehicle Listings Scraper returns make, model, year, trim, body style and mileage with its unit.
- **Drivetrain data:** transmission, fuel type, engine size, horsepower and fuel economy when Facebook shows them.
- **Ownership data:** seller type (private or dealer), owner count, title status, VIN and dealership name.
- **Checked filters:** make, model, price, year and mileage are checked on the Facebook results, not only sent to Facebook.
- **Detail filters:** Facebook Marketplace Vehicle Listings Scraper can filter by transmission, fuel type, body style, exterior colour and seller type.
- **Flexible locations:** Facebook Marketplace Vehicle Listings Scraper accepts city slugs, city names, numeric city ids, or exact latitude and longitude with a radius.
- **Clean results:** placeholder Facebook prices below `minValidPrice` are ignored.
- **Title keyword rules:** require or exclude words in the Facebook listing title.

> **✅ Why use this Actor**
>
> Facebook Marketplace Vehicle Listings Scraper replaces manual browsing. Facebook Marketplace Vehicle Listings Scraper pages through the Facebook Vehicles category, applies your filters and delivers consistent fields for JSON, CSV or Excel export.

### 🔍 What Data Does Facebook Marketplace Vehicle Listings Scraper Extract?

Each dataset item describes one Facebook vehicle listing. The table groups the fields by purpose.

| Group | Fields | What you get |
|---|---|---|
| Identity | `id`, `url`, `title`, `description`, `category` | Facebook listing id, link and text |
| Price | `price`, `originalPrice`, `condition` | Amount, formatted text and condition |
| Vehicle | `make`, `model`, `year`, `trim`, `bodyStyle`, `vehicleCondition` | Core Facebook vehicle specifications |
| Usage | `mileage`, `mileageUnit`, `numberOfOwners`, `titleStatus`, `isPaidOff` | Mileage and ownership facts |
| Drivetrain | `transmission`, `fuelType`, `engineSize`, `horsePower`, `mpgCity`, `mpgHighway`, `mpgCombined` | Engine and economy |
| Appearance | `exteriorColor`, `interiorColor`, `features`, `photos`, `primaryPhoto` | Colours, features and photos |
| Seller | `sellerType`, `dealershipName`, `vin`, `seller` | Seller and vehicle identity |
| Place | `location`, `postedAt`, `availability` | Where and when it was listed on Facebook |
| Source | `searchLocation`, `facebookUrl`, `scrapedAt`, `number` | How the Facebook record was collected |

Values that Facebook does not show are returned as `null`, so every Facebook vehicle record keeps the same shape.

### 🚀 How to Use Facebook Marketplace Vehicle Listings Scraper

Running Facebook Marketplace Vehicle Listings Scraper takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Marketplace Vehicle Listings Scraper and go to the Input tab.
- **Step 2 – Add locations:** fill `locations`, or set `latitude` and `longitude`.
- **Step 3 – Describe the vehicle:** set `make`, `model` and `keywords` if you want a specific car.
- **Step 4 – Add filters:** use price, year, mileage, transmission, fuel and other filters.
- **Step 5 – Set limits:** choose `maxItems`, and optionally `maxScan`.
- **Step 6 – Run and export:** download the dataset as JSON, CSV or Excel, or read it through the Apify API.

> **💡 Tip:** the input is prefilled with the city `nyc` and `maxItems` of 30. Replace the city before you run Facebook Marketplace Vehicle Listings Scraper on your own market.

### 📥 Facebook Marketplace Vehicle Listings Scraper Input

Facebook Marketplace Vehicle Listings Scraper has 27 input fields. All of them are optional.

| Field | Type | Description |
|---|---|---|
| `locations` | array | City slugs, city names such as `Austin, Texas`, numeric city ids or Marketplace city URLs. Default `["nyc"]`. One search per location. Ignored when both coordinates are set. |
| `latitude` | number | Latitude from -90 to 90. Overrides `locations` together with `longitude`. |
| `longitude` | number | Longitude from -180 to 180. Use together with `latitude`. |
| `radiusKm` | integer | Search radius in km, minimum 1. Empty uses the Facebook default of about 65 km. |
| `make` | string | Vehicle make such as `Toyota`. Added to the search and enforced on the title and, with details, on the listing page. |
| `model` | string | Vehicle model such as `Camry`. Enforced the same way as `make`. |
| `keywords` | string | Extra search words such as `hybrid` or `pickup`. |
| `minPrice` | number | Lowest Facebook listing price, no currency symbol. |
| `maxPrice` | number | Highest Facebook listing price, no currency symbol. |
| `minYear` | integer | Oldest model year, 1900 to 2099. |
| `maxYear` | integer | Newest model year, 1900 to 2099. |
| `minMileage` | integer | Lowest mileage, in the unit the listing uses (miles or km). |
| `maxMileage` | integer | Highest mileage, in the unit the listing uses. |
| `transmission` | string | `automatic` or `manual`. Needs `includeDetails`. |
| `fuelType` | string | Text to match, such as `gasoline`, `diesel`, `electric` or `hybrid`. Needs `includeDetails`. |
| `bodyStyle` | string | `sedan`, `suv`, `truck`, `coupe`, `hatchback`, `van`, `convertible` or `wagon`. Needs `includeDetails`. |
| `exteriorColor` | string | Text to match, such as `black`. Needs `includeDetails`. |
| `sellerType` | string | `private` or `dealer`. Needs `includeDetails`. |
| `daysSinceListed` | string | Only Facebook listings posted within `1`, `7` or `30` days. |
| `sortBy` | string | Order of the Facebook results: `suggested`, `newest`, `oldest`, `price_low`, `price_high`, `distance`, `mileage_low`, `mileage_high`, `year_newest` or `year_oldest`. |
| `minValidPrice` | number | Ignore listings priced below this amount. Default 100. Use 0 to keep everything. |
| `strictFilters` | boolean | Default `true`. Drops listings whose value is unknown while a filter on it is active. |
| `requiredKeywords` | array | Words that must all appear in the Facebook listing title. Default empty. |
| `excludeKeywords` | array | Facebook listings whose title has any of these words are dropped. Default empty. |
| `includeDetails` | boolean | Default `true`. Opens each Facebook listing page for transmission, fuel, colours, VIN, owners, title status and seller. |
| `maxScan` | integer | Safety cap on listings examined per location, minimum 1. Empty uses the larger of 300 and 15 times `maxItems`, and a scan with a detail filter also stops after about 3.5 minutes. Enter a value to scan deeper without that limit. |
| `maxItems` | integer | Maximum vehicles per location. Default 30, minimum 1. |

Here is a sample input for Facebook Marketplace Vehicle Listings Scraper that finds used hybrids:

```json
{
  "locations": ["Austin, Texas"],
  "radiusKm": 60,
  "make": "Toyota",
  "model": "Camry",
  "keywords": "hybrid",
  "minPrice": 8000,
  "maxPrice": 22000,
  "minYear": 2016,
  "maxMileage": 90000,
  "transmission": "automatic",
  "sellerType": "private",
  "sortBy": "price_low",
  "strictFilters": true,
  "includeDetails": true,
  "maxScan": 400,
  "maxItems": 25
}
```

### 📤 Facebook Marketplace Vehicle Listings Scraper Output

Facebook Marketplace Vehicle Listings Scraper writes one record per vehicle to the default dataset. This is a sample record with details:

```json
{
  "id": "100000000000401",
  "url": "https://www.facebook.com/marketplace/item/100000000000401/",
  "title": "2018 Toyota Camry SE Sedan 4D",
  "description": "One careful driver, regular service, new tires.",
  "price": { "amount": 17500, "currency": "USD", "currencySymbol": "$", "formatted": "$17,500" },
  "condition": "Used - good",
  "category": { "id": "807311116002614", "slug": "vehicles", "name": "Vehicles", "topLevel": null },
  "postedAt": "2026-11-05T18:09:16.000Z",
  "location": { "text": "Austin, TX", "city": "Austin", "state": "TX", "postalCode": "78701", "country": "US" },
  "make": "Toyota",
  "model": "Camry",
  "year": 2018,
  "trim": "SE",
  "bodyStyle": "Sedan",
  "mileage": 64000,
  "mileageUnit": "miles",
  "transmission": "Automatic",
  "fuelType": "Gasoline",
  "exteriorColor": "Silver",
  "interiorColor": "Black",
  "sellerType": "Private seller",
  "dealershipName": null,
  "vin": "1ABCD23E4FG567890",
  "numberOfOwners": null,
  "titleStatus": "Clean",
  "isPaidOff": true,
  "photos": ["https://example.com/photo1.jpg", "https://example.com/photo2.jpg"],
  "availability": "available",
  "seller": { "name": "Sample Seller", "id": "100000000000001", "type": "User" },
  "detailsFetched": true,
  "searchLocation": { "input": "Austin, Texas", "slug": "austin", "latitude": 30.2672, "longitude": -97.7431, "radiusKm": 60, "resolvedBy": "facebook city slug" },
  "facebookUrl": "https://www.facebook.com/marketplace/austin/vehicles?query=Toyota%20Camry%20hybrid",
  "scrapedAt": "2026-11-07T09:45:00.000Z",
  "number": 1
}
```

#### 🧾 Output field guide

- `make`, `model`, `year`, `trim` and `bodyStyle` describe the vehicle.
- `mileage` and `mileageUnit` come from the listing page or the search card.
- `transmission`, `fuelType`, `exteriorColor`, `vin`, `sellerType` and `titleStatus` need the listing details.
- `year` and `mileage` can come from the title and subtitle of the Facebook search card when details are off.
- `seller` shows the seller block Facebook displays on the listing.
- `detailsFetched` is `false` when only the search card data was kept.
- `searchLocation`, `facebookUrl`, `scrapedAt` and `number` tell you which Facebook search found the record.

### 🚗 How to Scrape Facebook Marketplace Cars by Make, Model and Price

To scrape Facebook Marketplace cars, set `make`, `model` and the price and year range. Facebook Marketplace Vehicle Listings Scraper joins `make`, `model` and `keywords` into one keyword search inside the Facebook Vehicles category.

Facebook treats make, model, year and mileage as loose hints when you are logged out. Facebook Marketplace Vehicle Listings Scraper therefore checks them again on the results, so a Camry search does not return unrelated cars.

### ⏱️ Which Vehicle Filters Take Longer?

Some filters need the listing page. Transmission, fuel type, body style, exterior colour and seller type are read from the page, so Facebook Marketplace Vehicle Listings Scraper must open each candidate listing, and `includeDetails` has to stay on.

These runs are slower, because many listings are opened and then dropped. Without `maxScan` the scan stops after about 3.5 minutes; set `maxScan` to scan deeper or to cap it lower. Without those filters, make, model, price, year and mileage can be checked on the search results first.

### 🎯 Facebook Marketplace Vehicle Listings Scraper Use Cases

Facebook Marketplace Vehicle Listings Scraper fits many vehicle workflows.

- **Price comparison:** use Facebook Marketplace Vehicle Listings Scraper to compare asking prices for one model across cities.
- **Dealer sourcing:** use Facebook Marketplace Vehicle Listings Scraper to find private-seller cars under a price limit.
- **Flipping research:** sort by `price_low` and filter by mileage and year.
- **Market monitoring:** schedule runs with `daysSinceListed` set to `1` for new Facebook listings.
- **Inventory studies:** count vehicles by make, fuel type or body style.
- **Data feeds:** send structured Facebook vehicle data to a spreadsheet or dashboard.

### 💰 Pricing

Facebook Marketplace Vehicle Listings Scraper runs on the Apify platform. The current pricing is shown on the Actor page in the Apify Store, and your cost depends on the number of results and the resources used by the run.

> **💡 Cost tip:** start with a small `maxItems` such as 10 or 20. Turn `includeDetails` off for a faster run, and set `maxScan` when you use detail filters.

### 💡 Tips and Best Practices

- **Start small:** a short test run of Facebook Marketplace Vehicle Listings Scraper confirms the city and filters first.
- **Set maxScan with detail filters:** fuel, colour, body style, transmission and seller filters open many listings, so without `maxScan` the scan stops after about 3.5 minutes.
- **Mind the mileage unit:** `minMileage` and `maxMileage` compare with the number on the Facebook listing, in miles or km.
- **Keep strict filters on:** with `strictFilters` on, Facebook Marketplace Vehicle Listings Scraper drops listings with unknown values for an active filter.
- **Expect public data only:** Facebook Marketplace Vehicle Listings Scraper returns what a logged-out visitor sees on Facebook.
- **Schedule regular runs:** use Apify schedules to keep a Facebook price log up to date.

> **⚠️ Important:** only collect data you are allowed to use. Facebook listings can contain personal data, so follow Facebook's terms and privacy rules such as GDPR. This Actor is not affiliated with or endorsed by Meta.

### ❓ Frequently Asked Questions

#### 🔎 What is Facebook Marketplace Vehicle Listings Scraper?

Facebook Marketplace Vehicle Listings Scraper is an Apify Actor that collects public vehicle listings from Facebook Marketplace, with make, model, year, mileage, price, seller type and photos.

#### 🧭 How do I scrape Facebook Marketplace cars?

Add a city to `locations`, set `make` and `model`, choose `maxItems` and start Facebook Marketplace Vehicle Listings Scraper. The listings appear in the dataset.

#### 🛠️ Can I filter Facebook vehicles by transmission or fuel type?

Yes. Use `transmission` and `fuelType`. These filters need `includeDetails` on, so Facebook Marketplace Vehicle Listings Scraper opens each listing.

#### 📅 Can I filter by year and mileage?

Yes. Use `minYear`, `maxYear`, `minMileage` and `maxMileage`. Facebook Marketplace Vehicle Listings Scraper checks them on the results.

#### 🔐 Does Facebook Marketplace Vehicle Listings Scraper need a Facebook login?

No. Facebook Marketplace Vehicle Listings Scraper reads publicly visible Facebook listings, so no account, cookies or API key are required.

#### 📦 What data does Facebook Marketplace Vehicle Listings Scraper return?

Each record includes make, model, year, mileage, transmission, fuel, colours, seller type, VIN, owners, title status, price, location, photos and source information.

#### 🏙️ Can I search several cities at once?

Yes. Add several entries to `locations`, and Facebook Marketplace Vehicle Listings Scraper gives each city its own `maxItems` limit. A listing found twice is returned once.

#### 🧐 Why are some fields empty?

Listings show different details, and Facebook does not show every field. With `includeDetails` off, Facebook Marketplace Vehicle Listings Scraper leaves the listing-page fields `null`.

#### ⚖️ Is it legal to scrape Facebook Marketplace vehicle listings?

Facebook Marketplace Vehicle Listings Scraper collects public Facebook content only. You are responsible for how you use the data, so check Facebook's terms and local privacy rules.

### 📞 Support

If you have questions about Facebook Marketplace Vehicle Listings Scraper, ideas for new fields or a search that does not return the expected vehicles, send the input you used.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

## `locations` (type: `array`):

Marketplace city slugs (e.g. nyc, london), city names (e.g. Austin, Texas), numeric city-page ids or facebook.com/marketplace/<city> URLs. One search runs per location. Ignored when both 'Latitude' and 'Longitude' are set; empty means Facebook's default Marketplace location.

## `latitude` (type: `number`):

Optional explicit search centre. When 'Latitude' and 'Longitude' are both set, 'Locations' is ignored and one search runs around this point.

## `longitude` (type: `number`):

Optional explicit search centre; used together with 'Latitude'.

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

Search radius around the location. Leave empty for Facebook's default (about 65 km).

## `make` (type: `string`):

Vehicle make, e.g. Toyota. Added to the search text and also enforced: it must appear in the listing title and, when details are fetched, match the make on the listing page.

## `model` (type: `string`):

Vehicle model, e.g. Camry. Added to the search text and enforced the same way as 'Make'.

## `keywords` (type: `string`):

Extra search words, e.g. hybrid or pickup. Together with 'Make' and 'Model' they form a keyword search inside the Vehicles category.

## `minPrice` (type: `number`):

Lowest listing price (number only, no currency symbol). Sent to Facebook and also checked on every listing.

## `maxPrice` (type: `number`):

Highest listing price (number only, no currency symbol). Sent to Facebook and also checked on every listing.

## `minYear` (type: `integer`):

Oldest model year. Checked against the year at the start of the listing title and, when details are fetched, the year on the listing page.

## `maxYear` (type: `integer`):

Newest model year. Checked the same way as 'Min year'.

## `minMileage` (type: `integer`):

Lowest mileage. Compared with the number shown on the listing, in whatever unit it uses (miles or km).

## `maxMileage` (type: `integer`):

Highest mileage. Compared with the number shown on the listing, in whatever unit it uses (miles or km).

## `transmission` (type: `string`):

Only vehicles with this transmission. Enforced on the listing-page value, so it needs 'Include details'.

## `fuelType` (type: `string`):

Text to match against the fuel type on the listing page, case-insensitive, e.g. gasoline, diesel, electric or hybrid. Needs 'Include details'.

## `bodyStyle` (type: `string`):

Only vehicles of this body style. The style is inferred from the trim and title text of the listing, so it needs 'Include details'; listings without a recognisable style are dropped when 'Strict filters' is on.

## `exteriorColor` (type: `string`):

Text to match against the exterior colour on the listing page, case-insensitive, e.g. black. Needs 'Include details'.

## `sellerType` (type: `string`):

Only listings from private sellers or from dealers. Enforced on the listing-page value, so it needs 'Include details'.

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

Only listings posted within this many days.

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

Order in which Facebook returns the listings. Leave empty for Facebook's default order.

## `minValidPrice` (type: `number`):

Listings priced below this value are ignored, which removes placeholder prices ($0, $1, "contact me" prices). Set 0 to keep everything.

## `strictFilters` (type: `boolean`):

Drop listings whose value is unknown while a filter on that value is active (for example no price, year or transmission). Turn off to keep them.

## `requiredKeywords` (type: `array`):

Words that must all appear in the listing title (case-insensitive, whole words; a plural -s or -es also matches).

## `excludeKeywords` (type: `array`):

Listings whose title contains any of these words are dropped (case-insensitive, whole words).

## `includeDetails` (type: `boolean`):

Open every listing page (one extra request per vehicle) to get transmission, fuel, colours, VIN, seller type, owners, title status, description, photos and seller data. Without it the transmission, fuel type, body style, colour and seller type filters are not applied.

## `maxScan` (type: `integer`):

Safety cap on how many listings are examined per location. Leave empty for the default: the larger of 300 and 15 times 'Max items', and a scan that needs a detail filter also stops after about 3.5 minutes. Enter a value to scan deeper without that time limit.

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

Maximum number of vehicles per location. Every entry of 'Locations' gets its own limit, so N locations return up to N x this value. A listing found in several locations is returned once.

## Actor input object example

```json
{
  "locations": [
    "nyc"
  ],
  "keywords": "marcidies benz",
  "daysSinceListed": "30",
  "sortBy": "newest",
  "minValidPrice": 0,
  "strictFilters": false,
  "requiredKeywords": [],
  "excludeKeywords": [],
  "includeDetails": true,
  "maxItems": 15
}
```

# Actor output Schema

## `results` (type: `string`):

Structured records extracted by Facebook Marketplace Vehicle Listings Scraper and stored in the run's default dataset.

# 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 = {
    "locations": [
        "nyc"
    ],
    "keywords": "marcidies benz",
    "daysSinceListed": "30",
    "sortBy": "newest",
    "minValidPrice": 0,
    "strictFilters": false,
    "includeDetails": true,
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-marketplace-vehicle-listings-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 = {
    "locations": ["nyc"],
    "keywords": "marcidies benz",
    "daysSinceListed": "30",
    "sortBy": "newest",
    "minValidPrice": 0,
    "strictFilters": False,
    "includeDetails": True,
    "maxItems": 15,
}

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

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

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

```

## CLI example

```bash
echo '{
  "locations": [
    "nyc"
  ],
  "keywords": "marcidies benz",
  "daysSinceListed": "30",
  "sortBy": "newest",
  "minValidPrice": 0,
  "strictFilters": false,
  "includeDetails": true,
  "maxItems": 15
}' |
apify call alpha-scraper/facebook-marketplace-vehicle-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/facebook-marketplace-vehicle-listings-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KRNcKOdJytl38Qzaf/builds/erQXKSw4AD4vvvU83/openapi.json
