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

Scrape Facebook Marketplace listings by city and keyword or from direct URLs. Returns price, location, seller info, and optional full detail enrichment with images and descriptions.

- **URL**: https://apify.com/parseforge/facebook-marketplace-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Social media, Lead generation, Marketing
- **Stats:** 61 total users, 11 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 1,000 result items

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?

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### Facebook Marketplace Scraper

**Scrape Facebook Marketplace listings by city and keyword, or from direct URLs, with full detail enrichment.** Every listing returns price, location, seller info, description, and images. No login required. Export to CSV, JSON, Excel, or XML.

Facebook Marketplace has no public API, making bulk data collection a manual grind of copying and pasting. This scraper reads the public Marketplace feeds directly, searching by city and keyword or targeting specific listing URLs. It returns structured data ready for analysis, complete with optional full detail enrichment for images, descriptions, and seller profiles.

| Who uses it | What they scrape Facebook Marketplace for |
|---|---|
| E-commerce sellers | Monitor competitor pricing and inventory levels for specific product categories. |
| Market researchers | Track supply and demand trends for used goods across different cities. |
| Deal finders | Identify undervalued items by comparing listing prices against market averages. |
| Data journalists | Investigate regional economic activity through secondhand goods listings. |

### What it does

This Actor collects Facebook Marketplace listings from search queries or direct URLs and returns each one as a flat, structured row with optional full detail enrichment.

- 🔍 **Search Mode:** Query Marketplace by city slug and keyword, returning all matching listings up to your maxItems limit.
- 🔗 **URL Mode:** Paste direct Facebook Marketplace listing URLs to scrape specific items with precision.
- 📋 **Detail Enrichment:** Toggle on to fetch full listing details including all images, full description text, and seller profile information.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Facebook Marketplace data

**📊 Monitor competitor pricing.**

An e-commerce seller runs daily searches for their product category across five cities to adjust their own listing prices based on what competitors charge.

**📍 Track regional market trends.**

A market researcher compares the volume and average price of furniture listings in Chicago versus New York to identify regional demand shifts.

**💰 Find arbitrage opportunities.**

A reseller scrapes listings for vintage electronics, enriches each one for condition details, and flags items priced significantly below completed sale values.

**📰 Support investigative reporting.**

A data journalist collects housing rental listings across multiple cities to analyze price inflation patterns in local markets.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API needed** | Reads public Marketplace feeds directly, no app registration or access tokens required. |
| **City-level targeting** | Search by Facebook city slugs like 'nyc', 'la', or 'chicago' for geo-specific results. |
| **Full detail enrichment** | Optionally fetch seller info, all listing images, and complete item descriptions. |
| **Structured output** | Every listing arrives as a flat row in CSV, JSON, Excel, or XML format. |

### How it compares

This Actor is purpose-built for Facebook Marketplace listings. The competitors below scrape other Facebook surfaces and do not target Marketplace data.

| Feature | ParseForge | Facebook Posts Scraper | Facebook Pages Scraper | Facebook Groups Scraper |
|---|---|---|---|---|
| Scrapes Marketplace listings | Yes | Not listed | Not listed | Not listed |
| Search by city and keyword | Yes | Not listed | Not listed | Not listed |
| Listing detail enrichment | Yes | Not listed | Not listed | Not listed |
| Direct listing URL input | Yes | Not listed | Not listed | Not listed |
| Seller profile information | Yes | Not listed | Not listed | Not listed |

### Configure the run

Drive the Actor from city-keyword search pairs, direct Marketplace URLs, or both together. The maxItems limit caps total results, and enrichment fetches full detail pages for each listing found. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "maxItems": 10,
  "searchQueries": [
    {
      "city": "nyc",
      "query": "iphone"
    }
  ]
}
```

A larger pull:

```json
{
  "maxItems": 200,
  "searchQueries": [
    {
      "city": "nyc",
      "query": "iphone"
    }
  ]
}
```

### Pricing

Pay-per-result: **$0.027 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.70 |
| 1,000 results | $27.00 |
| 10,000 results | $270.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Facebook Marketplace Scraper](https://apify.com/parseforge/facebook-marketplace-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Facebook Marketplace through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/facebook-marketplace-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results for my search?**

Check that your city slug is valid. Facebook uses specific short codes like 'nyc' not 'new-york-city'. Try the search manually on Facebook Marketplace first to confirm listings exist for that query and location.

**Why are some listings missing images or descriptions?**

If enrichListings is disabled, the Actor only returns summary data from the search results page. Enable enrichListings to fetch full detail pages including all images and complete descriptions.

**Why did my run stop at 10 items?**

Free Apify accounts are limited to 10 items as a preview. Upgrade to a paid plan to increase your maxItems limit up to 1,000,000.

**Why are enriched listings taking so long?**

Detail enrichment visits each listing individually, which adds time proportional to your maxItems count. For large searches, consider running without enrichment first, then enriching only the most relevant listings by URL.

**Why do I get an error when pasting a Marketplace URL?**

Ensure the URL is a full, valid Facebook Marketplace listing link starting with https://www.facebook.com/marketplace/item/. URLs from other Facebook sections like groups or pages will not work with this Actor.

### FAQ

| Question | Answer |
|---|---|
| Do I need a Facebook account to scrape Marketplace? | No. This scraper reads publicly accessible Marketplace listings and does not require a login, cookie, or Facebook account. |
| What is a Facebook city slug? | A city slug is the short text identifier Facebook uses in Marketplace URLs, such as 'nyc' for New York City, 'la' for Los Angeles, or 'chicago' for Chicago. You provide these in the searchQueries input. |
| How many listings can I scrape in one run? | Free users are limited to 10 items as a preview. Paid users can set maxItems up to 1,000,000 listings per run. |
| What does detail enrichment do? | When enrichListings is enabled, the Actor visits each listing's detail page to fetch the full description, all images, and seller profile information. This triggers an additional billing event on pay-per-event plans. |
| Can I scrape listings from multiple cities at once? | Yes. Add multiple city-query pairs to the searchQueries array and the Actor will run each search sequentially, combining all results into one dataset. |
| What format does the exported data come in? | You can export your results in CSV, JSON, Excel, or XML format directly from the Apify dataset. |
| Can I scrape sold or completed listings? | No. Facebook Marketplace only shows active, available listings publicly. Completed or sold listings are not accessible. |
| Does this scraper work for Facebook Shops or regular posts? | No. This Actor is built specifically for Facebook Marketplace listings. For Facebook page posts, use the Facebook Posts Scraper. For group content, use the Facebook Groups Scraper. |
| How do I find the URL of a specific Marketplace listing? | Open the listing on Facebook and copy the full URL from your browser's address bar. It will look like https://www.facebook.com/marketplace/item/1234567890/. Paste this into the startUrls field. |
| Is there a rate limit or will I get blocked? | The Actor manages request timing to avoid aggressive scraping. For very large runs, consider spreading them across multiple smaller batches with pauses between. |

### Related actors

- [facebook-posts-scraper](https://apify.com/parseforge/facebook-posts-scraper?fpr=vmoqkp): Use when you need posts, videos, and engagement metrics from Facebook pages instead of Marketplace listings.
- [facebook-groups-scraper](https://apify.com/parseforge/facebook-groups-scraper?fpr=vmoqkp): Use when you need posts, comments, and member activity from public Facebook groups.
- [facebook-pages-scraper](https://apify.com/parseforge/facebook-pages-scraper?fpr=vmoqkp): Use when you need page-level data like likes, followers, ratings, and contact information.

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Meta Platforms, Inc. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

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

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000

## `searchQueries` (type: `array`):

List of { city, query } pairs. Example: { "city": "nyc", "query": "iphone" }. City can be a Facebook city slug like 'nyc', 'la', 'chicago', or 'newyork'.

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

Direct Facebook Marketplace listing URLs, e.g. https://www.facebook.com/marketplace/item/1234567890/

## `enrichListings` (type: `boolean`):

Fetch full listing details (images, description, seller) for each search result. Triggers listing-enrichment billing event on pay-per-event plans.

## Actor input object example

```json
{
  "maxItems": 10,
  "searchQueries": [
    {
      "city": "nyc",
      "query": "iphone"
    }
  ],
  "enrichListings": true
}
```

# Actor output Schema

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

Dataset with scraped Facebook Marketplace listings

# 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 = {
    "maxItems": 10,
    "searchQueries": [
        {
            "city": "nyc",
            "query": "iphone"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/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 = {
    "maxItems": 10,
    "searchQueries": [{
            "city": "nyc",
            "query": "iphone",
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/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 '{
  "maxItems": 10,
  "searchQueries": [
    {
      "city": "nyc",
      "query": "iphone"
    }
  ]
}' |
apify call parseforge/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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