# Facebook Marketplace Scraper — Deals, Auto & Local Arbitrage (`madeingermany/facebook-marketplace-scraper-ppe`) Actor

Facebook Marketplace scraper for newest items, deals, and local arbitrage with zero cookies.

- **URL**: https://apify.com/madeingermany/facebook-marketplace-scraper-ppe.md
- **Developed by:** [Made In Germany](https://apify.com/madeingermany) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

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/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 Scraper — Deals, Auto & Local Arbitrage (No Cookies)

A high-performance, production-grade **Facebook Marketplace Scraper** that extracts newest listings, local deals, vehicle specifications, arbitrage opportunities, and seller details at blazing speeds—without running heavy headless browsers, and without needing Facebook cookies or account logins!

***

### ⚡ Why Use This Scraper?

- **Zero Browser Overhead (Pure HTTP Fast-Path)**: Powered by `Crawlee` and `got-scraping` with TLS fingerprinting (Chrome 125+) and HTTP/2 framing. Scrapes in seconds with minimal RAM (512MB) compared to 2-4GB required by Puppeteer/Playwright browsers.
- **No Facebook Login or Cookies Required**: Extracts public Marketplace listings directly from Facebook's Relay hydration streams and internal SSR data. Your accounts will never get banned.
- **Comprehensive Listing Fields**: Extracts item ID, title, formatted price, numerical price, location, high-res photos, listing creation timestamp, availability, delivery options, and listing URLs.
- **Pay-Per-Event (PPE) Transparent Billing**: Pay only for successful records extracted and events used—no expensive flat subscription tiers or wasted compute fees.

***

### 💰 Pricing (Pay-Per-Event)

This actor operates on a pay-as-you-go **Pay-Per-Event (PPE)** pricing model. You only pay for what you extract:

| Event Name | Purpose | Price (USD) | Description |
|---|---|---|---|
| **`apify-default-dataset-item`** | result | `$0.0015` | Single result in the default dataset. |
| **`additional-data`** | Additional cost for monitoring mode | `$0.001` | Charged for each item result check |
| **`apify-actor-start`** | Actor Start | `$0.005` | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). |
| **`detail-enrichment`** | Detail page enrichment | `$0.001` | Charged once per listing enriched with full detail (seller info, vehicle specs, all photos, video, precise location) when includeSeller is enabled. Covers the extra detail-page fetch. |

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `startUrls` | Array | `["https://www.facebook.com/marketplace/sanfrancisco/search?query=iphone"]` | One or more Facebook Marketplace URLs to crawl. |
| `searchQuery` | String | `"San Francisco iPhone"` | Keyword search term if no direct URLs are supplied. |
| `marketplaceLocation` | String | `"sanfrancisco"` | City or location slug (e.g. `nyc`, `losangeles`, `miami`, `chicago`, `london`). |
| `sortBy` | String | `"creation_time_descend"` | Result sort order (`creation_time_descend`, `best_match`, `price_ascend`, `price_descend`). |
| `daysSinceListed` | String | `"0"` | Filter by age: `0` (any time), `1` (last 24 hours), `7` (last 7 days), `30` (last 30 days). |
| `minPrice` | Integer | `null` | Minimum item price. |
| `maxPrice` | Integer | `null` | Maximum item price. |
| `maxItems` | Integer | `50` | Maximum listings to extract and save. |
| `proxy` | Object | `{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }` | Apify Residential proxy configuration (recommended for production). |

#### Sample Input JSON

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/sanfrancisco/search?query=iphone"
    }
  ],
  "searchQuery": "San Francisco iPhone",
  "sortBy": "creation_time_descend",
  "daysSinceListed": "7",
  "minPrice": 100,
  "maxPrice": 1200,
  "maxItems": 50,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

***

### 📤 Output Data Format

Each listing item pushed to the default dataset contains clean, normalized fields ready for immediate analysis, alerts, or database insertion:

| Field | Type | Description |
|---|---|---|
| `id` | String | Unique Facebook Marketplace listing identifier. |
| `title` | String | Title or headline of the listing. |
| `price` | String | Formatted display price (e.g. `"$300"`). |
| `priceAmount` | Number | Clean numeric price (e.g. `300`). |
| `location` | String | City, state or geographic region name. |
| `listingUrl` | String | Direct canonical URL to the Marketplace item. |
| `imageUrl` | String | Primary high-resolution photo URL. |
| `sellerName` | String | Seller name or fallback identifier. |
| `creationTime` | Integer | Epoch timestamp when the listing was published. |
| `creationTimeFormatted` | String | ISO 8601 UTC timestamp of creation. |
| `isSold` | Boolean | Whether the listing is marked sold. |
| `isPending` | Boolean | Whether the listing is currently pending sale. |
| `deliveryTypes` | Array | Supported delivery methods (e.g. `["IN_PERSON"]`, `["SHIPPING"]`). |
| `scrapedAt` | String | ISO timestamp when the scraper extracted the listing. |

#### Sample Output Record

```json
{
  "id": "1632718408244970",
  "title": "iPhone 14 128gb (Red)",
  "price": "$300",
  "priceAmount": 300,
  "location": "Redwood City, California",
  "listingUrl": "https://www.facebook.com/marketplace/item/1632718408244970/",
  "imageUrl": "https://scontent-fra5-1.xx.fbcdn.net/v/t39.84726-6/818384649_1566879081852525_3806238797534560026_n.jpg?...",
  "sellerName": "Facebook Seller",
  "creationTime": 1789938473,
  "creationTimeFormatted": "2026-09-28T01:07:53.000Z",
  "isSold": false,
  "isPending": false,
  "deliveryTypes": ["IN_PERSON"],
  "scrapedAt": "2026-09-28T01:38:45.123Z"
}
```

***

### 🏷️ SEO & Discoverability Tags

`facebook marketplace scraper`, `facebook marketplace api`, `facebook marketplace crawler`, `facebook deals`, `auto arbitrage`, `car scraper`, `reselling tool`, `local marketplace deals`, `e-commerce scraper`, `apify pay-per-event`

# Actor input Schema

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

Facebook Marketplace search or category URLs to scrape.

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

Keyword search query (e.g., 'San Francisco iPhone'). Used to build or augment search targets.

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

City or location slug (e.g., 'sanfrancisco', 'nyc', 'chicago', 'losangeles'). Used when creating a search from searchQuery.

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

Sort order used for Marketplace search.

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

Filter listings posted within the last N days.

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

Minimum listing price filter.

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

Maximum listing price filter.

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

Maximum number of listing items to extract and save.

## `proxy` (type: `object`):

Apify Proxy configuration. Apify Residential proxy is recommended for Facebook Marketplace.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/sanfrancisco/search?query=iphone"
    }
  ],
  "searchQuery": "San Francisco iPhone",
  "marketplaceLocation": "sanfrancisco",
  "sortBy": "creation_time_descend",
  "daysSinceListed": "0",
  "maxItems": 50,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://www.facebook.com/marketplace/sanfrancisco/search?query=iphone"
        }
    ],
    "searchQuery": "San Francisco iPhone"
};

// Run the Actor and wait for it to finish
const run = await client.actor("madeingermany/facebook-marketplace-scraper-ppe").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 = {
    "startUrls": [{ "url": "https://www.facebook.com/marketplace/sanfrancisco/search?query=iphone" }],
    "searchQuery": "San Francisco iPhone",
}

# Run the Actor and wait for it to finish
run = client.actor("madeingermany/facebook-marketplace-scraper-ppe").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 '{
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/sanfrancisco/search?query=iphone"
    }
  ],
  "searchQuery": "San Francisco iPhone"
}' |
apify call madeingermany/facebook-marketplace-scraper-ppe --silent --output-dataset

```

## MCP server setup

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

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/pvDqOVXF2laZIPFoY/builds/vawaX3DU0EDHfQw1i/openapi.json
