# Facebook Marketplace Scraper (`mrdoe/facebook-marketplace-scraper`) Actor

Scrape Facebook Marketplace listings at scale with title, price, location, description, category, images, listing dates, delivery options, and more. No Facebook login or account required.

- **URL**: https://apify.com/mrdoe/facebook-marketplace-scraper.md
- **Developed by:** [Sajan Bista](https://apify.com/mrdoe) (community)
- **Categories:** Social media, E-commerce, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### What does Facebook Marketplace Scraper do?

**Facebook Marketplace Scraper** extracts search results and listing details from [Facebook Marketplace](https://www.facebook.com/marketplace/) - title, price, location, category, condition, seller-visible attributes, all photos, and more - **anonymously, no login or cookies required**. A single search or category URL typically yields 150-200+ unique listings (the Actor automatically pulls multiple sort orders and price bands per query, each returning a different anonymous-view batch).

### Why use Facebook Marketplace Scraper?

- Track listings and pricing in a local market without manually browsing Marketplace or risking an account.
- Feed Marketplace data into research, resale, or price-comparison tools.
- No Facebook account, cookies, or login risk involved - runs entirely against Facebook's public, logged-out view.

### How to use Facebook Marketplace Scraper

1. Click **Try for free** (or **Start**) to open the Actor.
2. Paste one or more Marketplace search/category URLs into **Start URLs**, e.g. `https://www.facebook.com/marketplace/austin/search?query=bicycle`.
3. Optionally set **Max items** to cap how many listings are scraped - leave it blank to scrape everything a query yields.
4. Leave **Fetch listing details** on for full descriptions, exact price/currency, and category - or turn it off for a faster, search-page-only run.
5. Click **Start** and open the **Dataset** tab when it finishes.

### Input

| Field                | Type               | Description                                                                       |
| -------------------- | ------------------ | --------------------------------------------------------------------------------- |
| `startUrls`          | array (required)   | Facebook Marketplace search or category URLs to scrape.                           |
| `maxItems`           | integer (optional) | Stop the run after this many listings. Unset by default - no cap.                 |
| `fetchDetails`       | boolean (optional) | Visit each listing's own page for description/price/category. Defaults to `true`. |
| `proxyConfiguration` | object (optional)  | Residential proxy recommended for high-volume runs.                               |

### Output

Each dataset item looks like this:

```json
{
    "id": "1064565086196393",
    "url": "https://www.facebook.com/marketplace/item/1064565086196393/",
    "title": "Men’s Bicycle - Huffy Incline",
    "price": "$50",
    "amount": 50,
    "strikethroughPrice": null,
    "postedAt": "2026-08-19T16:28:33.000Z",
    "city": "Austin",
    "state": "TX",
    "locationText": "Austin, TX",
    "latitude": 30.27008,
    "longitude": -97.75085,
    "category": "Hobbies",
    "status": "AVAILABLE",
    "condition": "Used - like new",
    "attributes": [{ "attribute_name": "Condition", "value": "used_like_new", "label": "Used - like new" }],
    "deliveryTypes": ["IN_PERSON"],
    "isShippingOffered": false,
    "description": "Perfect condition, clean, and ready to ride! 26”",
    "photoUrls": ["https://scontent.xx.fbcdn.net/..."]
}
```

#### Data table

| Field                                                        | Description                                                        |
| ------------------------------------------------------------ | ------------------------------------------------------------------ |
| `id`, `url`                                                  | Listing identifier and link                                        |
| `title`, `price`, `amount`, `currency`, `strikethroughPrice` | Core listing pricing (currency only set when `fetchDetails` is on) |
| `city`, `state`, `locationText`, `latitude`, `longitude`     | Location, including precise coordinates (with `fetchDetails`)      |
| `category`, `categoryId`, `condition`, `attributes`          | Category and category-specific attributes (with `fetchDetails`)    |
| `status`                                                     | Listing status, e.g. `AVAILABLE` (with `fetchDetails`)             |
| `postedAt`, `deliveryTypes`, `isShippingOffered`             | Post time and delivery/shipping options                            |
| `description`                                                | Full listing description (only with `fetchDetails`)                |
| `thumbnailUrl`, `photoUrls`                                  | Listing photo(s) - full gallery with `fetchDetails`                |

### Limitations

- Facebook caps anonymous search results at ~24 listings per request - the Actor fans out across multiple sort orders and price bands automatically, typically yielding 150-200+ unique listings per query, but this isn't a true "get everything" pagination.
- Seller name/profile and video URLs are not reliably extractable anonymously.

### Cost estimation

This Actor uses pay-per-result pricing - see the **Pricing** tab for the current rate per listing. Since there's no built-in cap, set **Max items** if you want to bound spend on a run; leaving it blank scrapes everything a query yields.

### FAQ, disclaimers, and support

This Actor only accesses data Facebook serves publicly to anonymous, logged-out visitors - no account or cookies are used or required. It is not affiliated with or endorsed by Facebook/Meta. Respect Facebook's Terms of Service when using the scraped data. Found a bug or have a feature request? Use the Issues tab on this Actor's page.

# Actor input Schema

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

Facebook Marketplace search or category URLs, e.g. https://www.facebook.com/marketplace/austin/search?query=bicycle. Each search returns up to ~24 listings per request (Facebook's anonymous-view cap - no login) - the Actor automatically also fetches alternate sort orders and price bands per URL, typically yielding 150-200+ unique listings per query.

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

Stop the run once this many listings have been scraped across all start URLs. Leave blank for no cap - the run stops naturally once listings are exhausted.

## `fetchDetails` (type: `boolean`):

If enabled, also visits each listing's own page for its full description, exact price/currency, and posted time. If disabled, only the fields available on the search results page are returned (faster, half the requests).

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

A residential proxy is recommended - Facebook may flag high-volume traffic from datacenter IPs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/austin/search?query=bicycle"
    }
  ],
  "fetchDetails": true,
  "proxyConfiguration": {
    "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/austin/search?query=bicycle"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/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/austin/search?query=bicycle" }] }

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/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/austin/search?query=bicycle"
    }
  ]
}' |
apify call mrdoe/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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