# Facebook Marketplace Vehicle Scraper: Cars, VIN & Mileage (`unitbytes/facebook-marketplace-vehicle-scraper`) Actor

Scrape used cars, trucks, and motorcycles from Facebook Marketplace by city, ZIP code, make, model, year, and mileage. Extracts 17-digit VIN, odometer mileage, transmission, fuel type, and dealer vs. private seller status. No login required.

- **URL**: https://apify.com/unitbytes/facebook-marketplace-vehicle-scraper.md
- **Developed by:** [UnitBytes | Enterprise Web Data](https://apify.com/unitbytes) (community)
- **Categories:** E-commerce, Lead generation, Social media
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 search discovery listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Scraper — Cars, VIN, Mileage & Private Sellers (No Login)

<p align="center">
  <a href="https://console.apify.com/actors/5BxJuEDZvjz7lgNaz?addFromActorId=5BxJuEDZvjz7lgNaz" target="_blank">
    <img src="https://raw.githubusercontent.com/unitbytes/.github/main/assets/try-it-for-free.svg" width="240" height="48" alt="Try it for Free">
  </a>
  <br>
  <sub>⚡ <b>1-Click Free Trial:</b> Test live queries using Apify's free monthly credit • No credit card required</sub>
</p>

**The fastest, most complete Facebook Marketplace Vehicle & Used Car Scraper on Apify.**\
Extract used cars, trucks, SUVs, and motorcycles by **city, US ZIP code, make, model, model year, mileage, and transmission** with 100% upstream server-side filtering and **no Facebook login or cookies required**.

***

<table>
  <tr>
    <td colspan="3" style="padding:10px 14px;background:#2563EB;color:#FFFFFF;font-size:13px;font-weight:700;border-radius:6px 6px 0 0">
      ⚡ UnitBytes · Local Marketplaces, Vehicles, Real Estate & Classifieds Ecosystem
    </td>
  </tr>
  <tr>
    <td style="padding:10px 12px;border:1px solid #E2E8F0;background:#FAFAFA;vertical-align:top;width:33.3%">
      <span style="white-space:nowrap">🛒 <b><a href="https://apify.com/unitbytes/Facebook-Marketplace-Scraper?fpr=939u3w&fp_sid=ecosystem" style="color:#0F172A;text-decoration:none;font-size:13px">FB Marketplace All-in-One</a></b></span><br><span style="color:#2563EB;font-size:11px;font-weight:600">Cars, Rentals & Local Items</span><br>
      <span style="color:#64748B;font-size:11px">50+ fields, seller profiles, HD photos & bypass 1K limit</span>
    </td>
    <td style="padding:10px 12px;border:1px solid #E2E8F0;background:#FAFAFA;vertical-align:top;width:33.3%">
      <span style="white-space:nowrap">🏷️ <b><a href="https://apify.com/unitbytes/craigslist-scraper?fpr=939u3w&fp_sid=ecosystem" style="color:#0F172A;text-decoration:none;font-size:13px">Craigslist All-in-One</a></b></span><br><span style="color:#2563EB;font-size:11px;font-weight:600">700+ Cities · All Categories</span><br>
      <span style="color:#64748B;font-size:11px">Cars, housing, jobs, for sale, phones & emails</span>
    </td>
    <td style="padding:10px 12px;border:1px solid #E2E8F0;background:#FAFAFA;vertical-align:top;width:33.3%">
      <span style="white-space:nowrap">📱 <b><a href="https://apify.com/unitbytes/offerup-scraper?fpr=939u3w&fp_sid=ecosystem" style="color:#0F172A;text-decoration:none;font-size:13px">OfferUp All-in-One</a></b></span><br><span style="color:#2563EB;font-size:11px;font-weight:600">Local Deals, Motors & Shipping</span><br>
      <span style="color:#64748B;font-size:11px">ZIP radius, 19 vehicle specs, seller leads & price drops</span>
    </td>
  </tr>
  <tr>
    <td style="padding:10px 12px;border:1px solid #E2E8F0;background:#FFF4ED;vertical-align:top;width:33.3%">
      <span style="white-space:nowrap">🏎️ <b><a href="https://apify.com/unitbytes/facebook-marketplace-vehicle-scraper?fpr=939u3w&fp_sid=ecosystem" style="color:#C2410C;text-decoration:none;font-size:13px">FB Marketplace Vehicles</a></b></span><br><span style="color:#EA580C;font-size:11px;font-weight:700">📍 You are here</span><br>
      <span style="color:#64748B;font-size:11px">Filter by make, model, year, odometer mileage & VIN</span>
    </td>
    <td style="padding:10px 12px;border:1px solid #E2E8F0;background:#FAFAFA;vertical-align:top;width:33.3%">
      <span style="white-space:nowrap">🚗 <b><a href="https://apify.com/unitbytes/craigslist-cars-vehicles-scraper?fpr=939u3w&fp_sid=ecosystem" style="color:#0F172A;text-decoration:none;font-size:13px">Craigslist Cars & Vehicles</a></b></span><br><span style="color:#2563EB;font-size:11px;font-weight:600">By Owner (CTO), VIN & Miles</span><br>
      <span style="color:#64748B;font-size:11px">17-digit VIN, clean title, RVs, boats & motorcycles</span>
    </td>
    <td style="padding:10px 12px;border:1px solid #E2E8F0;background:#FAFAFA;vertical-align:top;width:33.3%">
      <span style="white-space:nowrap">🚙 <b><a href="https://apify.com/unitbytes/offerup-vehicles-cars-scraper?fpr=939u3w&fp_sid=ecosystem" style="color:#0F172A;text-decoration:none;font-size:13px">OfferUp Used Cars & VIN</a></b></span><br><span style="color:#2563EB;font-size:11px;font-weight:600">Dealer Specs & History Issues</span><br>
      <span style="color:#64748B;font-size:11px">VIN, MPG, drivetrain & Carfax/AutoCheck issue counts</span>
    </td>
  </tr>
  <tr>
    <td style="padding:10px 12px;border:1px solid #E2E8F0;background:#FAFAFA;vertical-align:top;width:33.3%">
      <span style="white-space:nowrap">🏢 <b><a href="https://apify.com/unitbytes/facebook-marketplace-property-scraper?fpr=939u3w&fp_sid=ecosystem" style="color:#0F172A;text-decoration:none;font-size:13px">FB Marketplace Property</a></b></span><br><span style="color:#2563EB;font-size:11px;font-weight:600">Rentals & Homes for Sale</span><br>
      <span style="color:#64748B;font-size:11px">Beds, baths, sqft, pet policy, walk scores & landlords</span>
    </td>
    <td style="padding:10px 12px;border:1px solid #E2E8F0;background:#FAFAFA;vertical-align:top;width:33.3%">
      <span style="white-space:nowrap">🔍 <b><a href="https://apify.com/unitbytes/facebook-marketplace-status-checker?fpr=939u3w&fp_sid=ecosystem" style="color:#0F172A;text-decoration:none;font-size:13px">FB Marketplace Status Checker</a></b></span><br><span style="color:#2563EB;font-size:11px;font-weight:600">Sold, Pending & Price Audit</span><br>
      <span style="color:#64748B;font-size:11px">Bulk check ACTIVE/SOLD/PENDING status & seller catalogs</span>
    </td>
    <td style="padding:10px 12px;border:1px solid #E2E8F0;background:#FAFAFA;vertical-align:top;width:33.3%">
      <span style="white-space:nowrap">🏪 <b><a href="https://apify.com/unitbytes/offerup-seller-inventory-scraper?fpr=939u3w&fp_sid=ecosystem" style="color:#0F172A;text-decoration:none;font-size:13px">OfferUp Seller & Dealer Leads</a></b></span><br><span style="color:#2563EB;font-size:11px;font-weight:600">Storefronts & B2B Contacts</span><br>
      <span style="color:#64748B;font-size:11px">Full /p/&lt;userId&gt; catalog, dealer phones, address & reviews</span>
    </td>
  </tr>
</table>

***

### ⚡ Key Vehicle Intelligence Capabilities

- **100% Upstream Vehicle Filtering:** Filter directly on Facebook Marketplace by `min_year`, `max_year`, `min_mileage`, `max_mileage`, `make`, `model`, `transmission` (`automatic` / `manual`), and `body_style` (`suv`, `sedan`, `truck`, `coupe`, `van`).
- **Complete Automotive Specs:** Automatically extracts `year`, `make`, `model`, `trim`, `mileage`, `transmission`, `fuel_type`, `exterior_color`, `interior_color`, and 17-character `vin`.
- **Private Seller vs. Dealership Detection:** Distinguishes `"PRIVATE_SELLER"` from `"DEALERSHIP"`, extracts 5-star `seller_rating` & `seller_review_count`, and scrapes full dealership/seller catalogs via `/marketplace/profile/<id>/`.
- **Multi-City & Batch Model Search:** Search multiple cities or 5-digit US ZIP codes (`"losangeles, dallas, 90210"`) and multiple models (`"toyota camry, honda civic, ford f150"`) in a single run.

***

### 📦 Sample Vehicle Output

```json
{
  "id": "1420973193459156",
  "url": "https://www.facebook.com/marketplace/item/1420973193459156/",
  "title": "2017 Toyota Camry · SE Sedan 4D",
  "price": "$10,600",
  "numeric_price": 10600.0,
  "currency": "USD",
  "listing_status": "ACTIVE",
  "year": 2017,
  "make": "Toyota",
  "model": "Camry",
  "trim": "SE Sedan 4D",
  "mileage": 95000,
  "transmission": "AUTOMATIC",
  "fuel_type": "GASOLINE",
  "exterior_color": "Silver",
  "interior_color": "Black",
  "vin": "4T1BF1FK5HU123456",
  "seller_type": "PRIVATE_SELLER",
  "seller_name": "Michael R.",
  "seller_id": "100003706980217",
  "seller_profile_url": "https://www.facebook.com/marketplace/profile/100003706980217/",
  "seller_rating": 4.9,
  "seller_review_count": 14,
  "city_slug": "losangeles"
}
```

***

### 💬 Support & Related UnitBytes Scrapers

- 🛒 **[Facebook Marketplace Scraper (All-in-One)](https://apify.com/unitbytes/Facebook-Marketplace-Scraper?fpr=939u3w\&fp_sid=ecosystem)** — Full 50+ field search across all categories, rentals, vehicles, and seller catalogs.
- 🏢 **[Facebook Marketplace Property & Rentals Scraper](https://apify.com/unitbytes/facebook-marketplace-property-scraper?fpr=939u3w\&fp_sid=ecosystem)** — Apartments & homes with bedrooms, bathrooms, sqft, pet policies, and walk scores.
- 🔍 **[Facebook Marketplace Details & Status Checker](https://apify.com/unitbytes/facebook-marketplace-status-checker?fpr=939u3w\&fp_sid=ecosystem)** — Bulk verify `ACTIVE`/`SOLD`/`PENDING` status, price drops, and `/marketplace/profile/<id>` inventories.
- 🚙 **[OfferUp Used Cars, Vehicles & VIN Scraper](https://apify.com/unitbytes/offerup-vehicles-cars-scraper?fpr=939u3w\&fp_sid=ecosystem)**, **[OfferUp Seller & Dealer Leads](https://apify.com/unitbytes/offerup-seller-inventory-scraper?fpr=939u3w\&fp_sid=ecosystem)** & **[OfferUp All-in-One](https://apify.com/unitbytes/offerup-scraper?fpr=939u3w\&fp_sid=ecosystem)** — 19 vehicle specs, Carfax/AutoCheck issue counts, and dealer phone numbers.
- 🚗 **[Craigslist Cars & Vehicles Scraper](https://apify.com/unitbytes/craigslist-cars-vehicles-scraper?fpr=939u3w\&fp_sid=ecosystem)** & **[Craigslist All-in-One](https://apify.com/unitbytes/craigslist-scraper?fpr=939u3w\&fp_sid=ecosystem)** — By-owner (`cto`) vehicles, 17-digit VINs, mileage & direct phone/email leads across 700+ cities.
- 💬 **Support:** Open a ticket in the [Apify Issues Tab](https://apify.com/unitbytes/facebook-marketplace-vehicle-scraper/issues?fpr=939u3w) or email `contact@unitbytes.com`.

# Actor input Schema

## `search_query` (type: `string`):

Search by vehicle keywords (e.g. 'toyota camry, honda civic, ford f150') or leave empty to browse all vehicles in the selected city.

## `city_slug` (type: `string`):

Target city slug (e.g. 'losangeles', 'dallas', 'chicago'), 5-digit US ZIP code ('90210'), or comma-separated multi-city list ('austin, dallas, houston').

## `category` (type: `string`):

Facebook Marketplace vehicle category feed.

## `min_price` (type: `integer`):

Minimum vehicle price.

## `max_price` (type: `integer`):

Maximum vehicle price.

## `min_year` (type: `integer`):

Minimum vehicle model year (e.g. 2014). Applied upstream on Facebook Marketplace.

## `max_year` (type: `integer`):

Maximum vehicle model year (e.g. 2024). Applied upstream on Facebook Marketplace.

## `min_mileage` (type: `integer`):

Minimum odometer reading.

## `max_mileage` (type: `integer`):

Maximum odometer reading (e.g. 120000). Applied upstream on Facebook Marketplace.

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

Filter by manufacturer slug or ID (e.g. 'toyota', 'honda', 'ford').

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

Filter by model slug or ID (e.g. 'camry', 'civic', 'tacoma').

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

Filter vehicles by transmission type.

## `body_style` (type: `string`):

Filter by body style (e.g. 'suv', 'sedan', 'truck', 'coupe', 'hatchback', 'van').

## `max_results` (type: `integer`):

Maximum number of vehicles to scrape.

## `scrape_details` (type: `boolean`):

Enable Deep Inspection to extract 17-digit VIN, trim, fuel type, exterior/interior color, PRIVATE_SELLER vs. DEALERSHIP classification, 5-star seller ratings, and 10-30+ HD photos. Disable for ultra-fast discovery (still extracts year, mileage, price, and status).

## `days_since_listed` (type: `integer`):

Only include vehicles posted within this many days (1 = last 24h, 7 = past week, 30 = past month).

## `sort_by` (type: `string`):

Sort order for vehicle search.

## `radius` (type: `integer`):

Search radius in kilometers (up to 500km).

## `start_urls` (type: `array`):

Paste Facebook Marketplace vehicle search URLs, dealership/seller profile URLs (/marketplace/profile/<id>/), or vehicle item URLs.

## `proxy_configuration` (type: `object`):

Select proxies to be used by your scraper.

## Actor input object example

```json
{
  "search_query": "toyota camry",
  "city_slug": "losangeles",
  "category": "vehicles",
  "min_price": 2000,
  "max_price": 15000,
  "transmission": "all",
  "max_results": 20,
  "scrape_details": false,
  "days_since_listed": 7,
  "sort_by": "creation_time_descend",
  "radius": 500,
  "proxy_configuration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Structured Facebook Marketplace vehicle listings with VIN, mileage, year, make, model, trim, transmission, fuel type, seller rating, and HD galleries.

# 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 = {
    "search_query": "toyota camry",
    "city_slug": "losangeles",
    "category": "vehicles",
    "min_price": 2000,
    "max_price": 15000,
    "max_results": 20,
    "days_since_listed": 7,
    "radius": 500,
    "proxy_configuration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("unitbytes/facebook-marketplace-vehicle-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 = {
    "search_query": "toyota camry",
    "city_slug": "losangeles",
    "category": "vehicles",
    "min_price": 2000,
    "max_price": 15000,
    "max_results": 20,
    "days_since_listed": 7,
    "radius": 500,
    "proxy_configuration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("unitbytes/facebook-marketplace-vehicle-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 '{
  "search_query": "toyota camry",
  "city_slug": "losangeles",
  "category": "vehicles",
  "min_price": 2000,
  "max_price": 15000,
  "max_results": 20,
  "days_since_listed": 7,
  "radius": 500,
  "proxy_configuration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call unitbytes/facebook-marketplace-vehicle-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,unitbytes/facebook-marketplace-vehicle-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/5BxJuEDZvjz7lgNaz/builds/YAdnXDouoxeKhiGgS/openapi.json
