# Facebook Marketplace Scraper: Listings & Sellers (`deepmine/facebook-marketplace-scraper`) Actor

Facebook Marketplace scraper: search links or keyword + city with price, condition, date and delivery filters. Every listing with price, photos, location and seller; add details for description, condition, coordinates and seller ratings. No login, no cookies.

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

## Pricing

from $0.59 / 1,000 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 Scraper: Listings & Sellers

Get Facebook Marketplace listings from any search, category or item link, or from a keyword and a city with filters. Every listing comes with title, price, photo, city and seller. Turn on **Add listing details** for the description, condition, attributes, coordinates and the seller's join date and ratings; turn on **All listing photos** for every photo of each listing (it adds the details too). No login, no cookies, no browser.

### What you get per listing

| Field | Example |
|---|---|
| `listingTitle`, `priceAmount`, `priceFormatted`, `strikethroughPrice` | Trek Bike, 45, $45, $60 |
| `primaryPhotoUrl`, `listingPhotos` | the main photo; every photo with **All listing photos** |
| `locationText`, `city`, `state`, `latitude`, `longitude` | New York, NY |
| `sellerName`, `sellerId`, `sellerJoinTime`, `sellerRatingAverage`, `sellerRatingCount` | the seller |
| `description`, `condition`, `listingAttributes`, `categoryName` | details |
| `deliveryTypes`, `isShippingOffered`, `isSold`, `isPending`, `listingStatus` | delivery and status |
| `createdAt`, `listingUrl`, `searchQuery` | when and where |

Fields marked "details" in the Output tab need **Add listing details**. The leading Marketplace scraper's fields are all there, in camelCase (`listingPrice`, `primaryListingPhoto`, `marketplaceListingSeller`, `itemUrl`, `listingPhotos`, `listingAttributes` ...). Seller names and ratings come without cookies.

### Input

- **Marketplace links**: searches (`facebook.com/marketplace/nyc/search/?query=bike`), categories or items. Filters you set on Facebook stay in the link.
- **Or search**: keyword + location (a Marketplace city as in its link: `nyc`, `la`, `chicago`, `london`), min/max price, listed in the last 1/7/30 days, sort, condition, delivery, radius.
- **Number of listings**: per link; empty reads every listing the search returns.
- **Add listing details**: the detail page of each listing (charged as listing details).
- **All listing photos**: every photo of each listing in `listingPhotos` (turns on the details; no extra charge).

```json
{"searchKeyword": "sofa", "location": "la", "maxPrice": 300, "resultsLimit": 100, "includeListingDetails": true}
```

Also accepted: `urls`, `maxItems`, `getListingDetails`, `searchQuery`, `conditionNew` ... `conditionUsedFair`.

### Pricing

- **$0.99 per 1,000 listings** on Starter ($1.19 Free, $0.79 Scale, $0.59 Business).
- **Listing details: $1.99 per 1,000**, only for listings read with details.
- No start fee. A listing is charged once per run, however many searches list it.

### Notes

- Facebook shows Marketplace to logged-out visitors on residential IPs only, so the scraper uses Apify's residential proxy (included in the price). Pick a proxy country to see another market.
- Facebook sometimes answers a search page with no sellers at all; the scraper asks again on another IP.
- The run's summary (listings per link, why each one stopped) is in the `OUTPUT` record.

# Actor input Schema

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

Search (facebook.com/marketplace/nyc/search/?query=bike), category or item links. Filters set on Facebook stay in the link.

## `searchKeyword` (type: `string`):

Used when no links are given.

## `location` (type: `string`):

A Marketplace city as in its link (nyc, la, chicago, london, 108424279189115). Default nyc.

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

Lowest price.

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

Highest price.

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

Only listings this new.

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

The search's order.

## `condition` (type: `array`):

Only these conditions.

## `deliveryMethod` (type: `string`):

Only listings with this delivery.

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

Search radius around the location (Facebook's default 65 km).

## `resultsLimit` (type: `integer`):

Listings per link. Empty: every listing the search lists.

## `includeListingDetails` (type: `boolean`):

Each listing's detail page: description, condition, attributes, coordinates, seller join date and ratings. Charged per listing as 'Listing details'.

## `getAllListingPhotos` (type: `boolean`):

Every photo of each listing (turns on the details).

## `maxConcurrency` (type: `integer`):

Calls at once.

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

Residential Apify Proxy (US unless you pick a country): Facebook shows groups and Marketplace to logged-out visitors on residential IPs only. Your own proxy URLs are used as they are.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/nyc/search/?query=bike"
    }
  ],
  "resultsLimit": 100,
  "includeListingDetails": false,
  "getAllListingPhotos": false,
  "maxConcurrency": 8,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

## `summary` (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/nyc/search/?query=bike"
        }
    ],
    "resultsLimit": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/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 = {
    "startUrls": [{ "url": "https://www.facebook.com/marketplace/nyc/search/?query=bike" }],
    "resultsLimit": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("deepmine/facebook-marketplace-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 '{
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/nyc/search/?query=bike"
    }
  ],
  "resultsLimit": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call deepmine/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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