# Facebook Marketplace Scraper - Listings, Prices & Sellers (`confidential_gnat/facebook-marketplace-scraper`) Actor

Scrape Facebook Marketplace (facebook.com/marketplace) without login: title, price, city, seller, category, photos, description and coordinates. Search by keyword and city, category or URL; cache returns only new listings. Export JSON, CSV or Excel.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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, Prices & Sellers

![Facebook Marketplace Scraper cover: Marketplace listings without login, only new listings every run with price, seller and location](https://i.postimg.cc/7LmtJW8G/Gemini-Generated-Image-eoq8xweoq8xweoq8.jpg)

**Scrape listings from Facebook Marketplace (facebook.com/marketplace)** without a login: **title, price**, city, seller, category, photos and, with details on, the description, coordinates and condition. Search by keyword and city, open a category, or paste a Marketplace search or listing link, and press Start. Export **JSON, CSV or Excel**, or call it as an **API**.

**Target website:** [facebook.com/marketplace](https://www.facebook.com/marketplace)

### ✨ Features of this Facebook Marketplace scraper

- **Marketplace listing extraction** - title, price, currency, city, state, seller name and id, category, first photo, sold and pending flags, delivery type and the posting time.
- **Search by keyword and city** - several keywords and several cities in one run; every keyword is searched in every city.
- **Category pages** - read a whole category such as vehicles, electronics or free items.
- **Full listing details** - optionally open each listing for the description, all photos, exact coordinates, category name, condition and other attributes.
- **Price, age, condition and delivery filters** - minimum and maximum price, listed within 1, 7 or 30 days, item condition, local pick-up or shipping, and newest or price sorting.
- **More than one page of results** - Marketplace shows only a few dozen listings per search, so a bigger search is split by price range and listing age automatically.
- **Cache for new listings** - schedule the same search and get only listings you have not saved yet; a changed price comes back as updated.
- **Proxy support** - proxy settings are already set by default.

### 🚀 How to scrape Facebook Marketplace in 5 steps

1. [Sign up](https://apify.com/sign-up) for a free Apify account - includes **$5 monthly credit**.
2. Open the actor page and click **Try for free**.
3. Fill in the **Input** fields (a keyword and a city, or a Marketplace URL).
4. Click **Start** and wait for the run to complete.
5. Download results from the **Output** tab in JSON, CSV, or Excel format.

You can also run this actor via the [Apify API](https://docs.apify.com/api/v2) or integrate it directly into your workflows using [Zapier](https://zapier.com/apps/apify), [Make](https://www.make.com/), or [n8n](https://n8n.io/).

### 💰 Pricing for the Facebook Marketplace scraper

This actor uses **pay-per-result** billing based on the compute units a run consumes.

- New Apify accounts include **$5 of free monthly credit**.
- Leaving **Open each listing page** off returns the search-result data only and is the cheapest and fastest way to run.

### 🖼️ Facebook Marketplace scraper input screenshot

The input form starts with the Marketplace URLs, the listing limit and the cache name. The optional settings follow, with the full-details switch, the price range and the sort order. The other filters and the proxy settings come last.

![Facebook Marketplace Scraper input form in Apify Console with 7 fields numbered 1 to 7: Marketplace URLs, max listings, cache project name, open each listing page, minimum price, maximum price and sort by](https://i.postimg.cc/q7jD65VV/Gemini-Generated-Image-1so43f1so43f1so4.jpg)

1. **Marketplace URLs** - search, category or listing pages to scrape (here an Austin bike search)
2. **Max listings per search or URL** - limit for each start URL (here 20)
3. **Cache project name** - reuse the same name on every scheduled run to get only new listings
4. **Open each listing page (full details)** - on for the description, all photos, coordinates and attributes
5. **Minimum price** - skips listings below this price (here 50)
6. **Maximum price** - skips listings above this price (here 400)
7. **Sort by** - the order listings come back in (here newest first)

The search keywords, locations, category, listing age, condition and delivery filters follow below these fields, and the proxy configuration comes last.

### 🔧 Facebook Marketplace scraper input configuration

| Field | Type | Required | Default | Description |
| ----- | ---- | -------- | ------- | ----------- |
| Marketplace URLs (`startUrls`) | array | — | Austin bike search | Search pages, category pages and single listing pages. Filters in the address are kept. |
| Search keywords (`queries`) | array | — | — | One keyword or phrase per line; each is searched in every location. |
| Locations (cities) (`locations`) | array | — | austin | One city per line, written like its Marketplace address (`austin`, `losangeles`) or as `Austin, TX`. |
| Category (`category`) | string | — | — | Marketplace category such as `vehicles`, `electronics`, `propertyrentals`, `free`. |
| Max listings per search or URL (`maxItems`) | integer | — | 5 | Listings saved for each start URL or keyword and location. |
| Cache project name (`cacheProjectName`) | string | — | — | Same name on each run to get only new listings. |
| Open each listing page (`scrapeDetails`) | boolean | — | off | Adds description, all photos, exact currency, coordinates, category name, condition and attributes. |
| Minimum / maximum price (`minPrice`, `maxPrice`) | integer | — | — | Price range in the currency of the location. |
| Sort by (`sortBy`) | string | — | best_match | Best match, newest, price low to high or price high to low. |
| Listed within the last (`daysSinceListed`) | integer | — | — | 1, 7 or 30 days. |
| Condition (`itemCondition`) | array | — | — | Only listings in these conditions. |
| Delivery (`deliveryMethod`) | string | — | — | Local pick-up or shipping. |
| Proxy configuration (`proxyConfiguration`) | object | — | Apify Proxy | Proxy settings. Keep the default. |

**Supported URL types:**

- Search: `https://www.facebook.com/marketplace/austin/search?query=bike`
- Search with filters: `https://www.facebook.com/marketplace/austin/search?query=bike&minPrice=50&maxPrice=300&sortBy=creation_time_descend`
- Category: `https://www.facebook.com/marketplace/austin/vehicles`
- Listing: `https://www.facebook.com/marketplace/item/1234567890/`

### 📦 Facebook Marketplace scraper output data

The output is a flat list of listings in JSON, CSV or Excel. Every record has the same keys (`null` when there is no value): `id`, `url`, `title`, `price`, `priceFormatted`, `currency`, `originalPrice`, `description`, `condition`, `attributes`, `categoryId`, `categoryName`, `subtitle`, `city`, `state`, `locationName`, `locationText`, `latitude`, `longitude`, `sellerName`, `sellerId`, `photo`, `images`, `imageCount`, `isSold`, `isPending`, `shippingOffered`, `deliveryTypes`, `postedAt`, `searchQuery`, `searchLocation`, `detailsScraped`, `changeType`, `scrapedAt`. There is 1 view: **Overview** shows the title, price, currency, city, state, seller, sold flag, posting time, link and photo. The description, condition, attributes, coordinates, category name and all photos are filled when **Open each listing page** is on.

**Output at a glance:**

| Listing | Price | Condition | Location | Seller | Posted |
| ------- | ----- | --------- | -------- | ------ | ------ |
| [Bike](https://www.facebook.com/marketplace/item/1002010702972072/) | $100 | Used - Good | Austin, TX | Richard Quach | 2026-11-03 |
| [Huffy Stone Mountain 26" Mountain Bike - Excellent Condition](https://www.facebook.com/marketplace/item/1043845671646210/) | $70 | Used - Good | Austin, TX | Jaison Fuentes Bonett | 2026-11-03 |
| [Bike](https://www.facebook.com/marketplace/item/1519993613506297/) | $50 | Used - Good | Austin, TX | Julio Moreno | 2026-08-20 |
| [Huffy Nel Lusso(24”)women’s cruiser bike](https://www.facebook.com/marketplace/item/1830579481621114/) | $50 | Used - Good | Kyle, TX | Maria Sanchez | 2026-11-04 |
| [Cruiser Bike](https://www.facebook.com/marketplace/item/1948314723245928/) | $385 | Used - like new | Austin, TX | Aston Smith | 2026-11-01 |

**Sample output (raw JSON):**

```json
{
  "id": "1002010702972072",
  "url": "https://www.facebook.com/marketplace/item/1002010702972072/",
  "title": "Bike",
  "price": 100,
  "priceFormatted": "$100",
  "currency": "USD",
  "originalPrice": null,
  "description": "Good bike",
  "condition": "Used - Good",
  "attributes": {
    "Condition": "Used - Good"
  },
  "categoryId": "1658310421102081",
  "categoryName": "Bicycles",
  "subtitle": null,
  "city": "Austin",
  "state": "TX",
  "locationName": "Austin, Texas",
  "locationText": "Austin, TX",
  "latitude": 30.352478027344,
  "longitude": -97.761840820312,
  "sellerName": "Richard Quach",
  "sellerId": "pfbid029TtbhJDkPDLqrNrWfkmHDkHeF6EyLeaSQgeaYycyEARcoGr4pvQotKGyyiGSTMBMl",
  "photo": "https://scontent-sea5-1.xx.fbcdn.net/v/t39.84726-6/885459816_2226524342078661_165736790843...",
  "images": [
    "https://scontent.fhnl3-2.fna.fbcdn.net/v/t39.84726-6/885459816_2226524342078661_1657367908..."
  ],
  "imageCount": 1,
  "isSold": false,
  "isPending": false,
  "shippingOffered": false,
  "deliveryTypes": [
    "IN_PERSON"
  ],
  "postedAt": "2026-11-03T22:06:30.000Z",
  "searchQuery": "bike",
  "searchLocation": "austin",
  "detailsScraped": true,
  "changeType": null,
  "scrapedAt": "2026-11-05T15:29:13.514Z"
}
```

### 🔁 Scrape only new Facebook Marketplace listings with the cache

Type the same **Cache project name** on every scheduled run. Listings already saved under that name are skipped, are not charged and do not count towards **Max listings per search or URL**. A listing whose price changed comes back with `changeType: updated`, a new one with `changeType: new`. Different names keep separate caches. Use [Apify Schedules](https://docs.apify.com/platform/schedules) to run it daily.

### 🐍 How to scrape Facebook Marketplace with Python, JavaScript or the API

Run the actor programmatically with the official Apify clients. Replace `<YOUR_API_TOKEN>` with the token from your [Apify Console](https://console.apify.com/account/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")

run = client.actor("confidential_gnat/facebook-marketplace-scraper").call(run_input={
    "queries": ["bike"],
    "locations": ["austin"],
    "maxItems": 50,
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**JavaScript** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });

const run = await client.actor('confidential_gnat/facebook-marketplace-scraper').call({
    queries: ['bike'],
    locations: ['austin'],
    maxItems: 50,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**cURL** - start a run and wait for the dataset:

```bash
curl -X POST "https://api.apify.com/v2/acts/confidential_gnat~facebook-marketplace-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["bike"], "locations": ["austin"], "maxItems": 50}'
```

### 💡 What you can use Facebook Marketplace data for

- Price monitoring: track what a product sells for in your city over time.
- Reselling and sourcing: find new listings below market price as soon as they appear.
- Vehicle and property research: compare asking prices, mileage and locations.
- Demand analysis: see how many listings and sellers a category has in each city.
- Competitor tracking: follow the stock and prices of local sellers.

Resellers, dealers, market researchers, analysts and small businesses typically use this data for pricing, sourcing and local market research.

### ⚠️ Limitations of the Facebook Marketplace scraper

- **Few results per page** - without a login Marketplace shows about 15 listings on a search page and up to about 40 after scrolling once. The scraper splits bigger searches by price range and listing age, but a very narrow search can still return fewer listings than you asked for.
- **Public data only** - the scraper reads what a visitor sees without logging in. Listings that need a login, and private messages or profiles, are not available.
- **Radius** - the distance around a city cannot be set; pick the cities you need.
- **Slow pages** - Marketplace pages are heavy, so a run with **Open each listing page** takes several seconds per listing.

### ❓ Facebook Marketplace scraper FAQ

#### Can I scrape Facebook Marketplace legally?

The actor only collects data that is publicly visible on Marketplace without logging in: no private content and no account is used. Scraping publicly available data is generally considered lawful (see *hiQ Labs v. LinkedIn* as precedent), but you remain responsible for following Facebook's Terms of Service and the laws that apply to your use, such as GDPR and CCPA if you handle personal data such as seller names.

#### What data does the Facebook Marketplace scraper return?

Title, price and currency, city and state, seller name and id, category id, first photo, sold and pending flags, delivery types and posting time. With **Open each listing page** it also returns the description, all photos, coordinates, category name, condition and attributes.

#### How many listings can I scrape from one Marketplace search?

**Max listings per search or URL** applies to each start URL and to each keyword and city. One Marketplace page shows only a few dozen listings, so for more the scraper cuts the search into narrower price and listing-age ranges and reads each of them.

#### Do I need a proxy to scrape Facebook Marketplace?

The input already comes with the proxy setting this scraper uses, so keep it as it is.

#### How do I scrape Facebook Marketplace with Python?

Use the Python example above with the Apify client, then iterate over the dataset items.

#### Can I run this Facebook Marketplace scraper on a schedule?

Yes. Use [Apify Schedules](https://docs.apify.com/platform/schedules) and set a **Cache project name** so each run saves only new listings and price changes.

#### What output formats are supported?

JSON, CSV, Excel, XML and RSS, either from the **Output** tab or through the Apify API.

#### Why does my search return fewer listings than Max listings?

Marketplace only shows a limited set of listings for each search to visitors who are not logged in, and some searches simply have fewer matches. Add more keywords, cities or price ranges, or use **Sort by** newest, to cover more listings.

### 🔗 Relevant actors for Facebook Marketplace and classifieds

| Scraper | Description |
| ------- | ----------- |
| [🛒 eBay Listings Scraper](https://apify.com/confidential_gnat/ebay-listings-scraper) | Scrape eBay search results and item pages: title, price, condition and seller. |
| [📋 Craigslist Listings Scraper - Housing, For Sale, Jobs](https://apify.com/confidential_gnat/craigslist-listings-scraper) | Scrape Craigslist listings by city and category. |
| [👗 Poshmark Listings Scraper - Search, Sold Items & Closets](https://apify.com/confidential_gnat/poshmark-listings-scraper) | Scrape Poshmark listings, sold items and closets. |
| [🛍️ Carousell Products Scraper](https://apify.com/confidential_gnat/carousell-products-scraper) | Scrape Carousell product listings with prices and sellers. |
| [🇯🇵 Mercari Japan Scraper - Listings, Prices & Sold Items](https://apify.com/confidential_gnat/mercari-japan-listings-scraper) | Scrape Mercari Japan listings, prices and sold items. |

### 🔗 Other actors you may find useful

| Scraper | Description |
| ------- | ----------- |
| [🍷 Total Wine Scraper](https://apify.com/confidential_gnat/totalwine-scraper) | Scrape Total Wine & More prices, sizes, ratings and stock. |
| [💻 Dice Jobs Scraper - Search Tech Jobs by Keyword or URL](https://apify.com/confidential_gnat/dice-jobs-scraper) | Scrape tech job listings from Dice by keyword or URL. |
| [📰 Google News AI Scraper](https://apify.com/confidential_gnat/google-news-ai-scraper) | Search Google News by keyword with optional full article text. |
| [🔎 WHOIS Domain Lookup Scraper](https://apify.com/confidential_gnat/whois-com) | Bulk WHOIS lookups from URLs, bare domains or lookup links. |
| [📈 Kalshi Markets Scraper - Prediction Market Prices & Odds](https://apify.com/confidential_gnat/kalshi-markets-scraper) | Scrape Kalshi prediction markets: prices, implied probability, volume. |

### 💬 Support & contact

If you encounter any issues or have questions, please [open an issue](https://apify.com/confidential_gnat/facebook-marketplace-scraper/issues/open).

You can also find more of our actors on the [Actor Flow](https://apify.com/confidential_gnat) page.

# Actor input Schema

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

Marketplace search pages, category pages and single listing pages. Filters in the address (price, sort, condition, delivery, listing age) are kept. Examples: https://www.facebook.com/marketplace/austin/search?query=bike, https://www.facebook.com/marketplace/austin/vehicles or https://www.facebook.com/marketplace/item/1234567890/

## `queries` (type: `array`):

One keyword or phrase per line. Every keyword is searched in every location below.

## `locations` (type: `array`):

One city per line, written like its Marketplace address: austin, dallas, losangeles, sanfrancisco. 'Austin, TX' also works. Used with the keywords or the category below.

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

Optional Marketplace category as in its address, for example vehicles, electronics, propertyrentals, free, bicycles, apparel. With no keyword, every listing of the category is read.

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

Maximum listings saved for each start URL or keyword and location. One Marketplace page shows only a few dozen listings, so for more the search is split by price (and listing age) automatically.

## `cacheProjectName` (type: `string`):

Use the same name on each scheduled run to get only new listings. Listings already saved under that name are skipped, not charged and not counted towards Max listings. Listings whose price changed come back with changeType: updated. Leave empty to turn the cache off.

## `scrapeDetails` (type: `boolean`):

On: every listing page is opened to add the description, all photos, the exact currency, coordinates, category name, condition and other attributes. Off: records from the search results only, which already hold the title, price, city, seller, first photo, mileage line, sold flag and delivery type. Every listing page is one more slow request, so leave this off unless you need those fields.

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

Only listings priced at or above this amount (in the currency of the location).

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

Only listings priced at or below this amount.

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

Order of the listings.

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

Only listings posted within this many days.

## `itemCondition` (type: `array`):

Only listings in one of these conditions.

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

Only listings with this delivery option.

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

Preset for this scraper. Keep the default.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/austin/search?query=bike"
    }
  ],
  "maxItems": 5,
  "scrapeDetails": false,
  "sortBy": "best_match",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `overview` (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=bike"
        }
    ],
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("confidential_gnat/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=bike" }],
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("confidential_gnat/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=bike"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call confidential_gnat/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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