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

Facebook Marketplace Scraper: scrape listings by keyword, city or category link. Title, price, location, photos, description, condition and seller rating. Radius filter, and an only-new-listings mode for scheduled deal alerts. Export to CSV, JSON, Excel or API.

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

## Pricing

from $2.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.
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

**Scrape Facebook Marketplace listings in any city — by keyword, category or pasted link.** Get **titles, prices, locations, photos, full descriptions, condition, category, exact coordinates and seller ratings**, ready to export to Excel, Google Sheets or your app.

### What does Facebook Marketplace Scraper do?

Facebook Marketplace Scraper collects public listings from [Facebook Marketplace](https://www.facebook.com/marketplace). Give it search terms and a city (or paste any Marketplace search or category link) and it returns one row per listing with the **title, price, original price, city and state, listing date, sold/pending status, main photo, delivery options and link** — and, with details on, the **full description, every photo, category, condition, brand, currency, map coordinates, shipping option and the seller's name, rating and profile**.

Running on Apify gives you an API, scheduling, monitoring and one-click integrations with Google Sheets, Make, Zapier, Slack and webhooks — so you can get alerted the moment a good deal is listed.

### Why use Facebook Marketplace Scraper?

- **Resellers and flippers** — spot underpriced items the minute they are posted and track what sells.
- **Price research** — see what used cars, phones, furniture or equipment really sell for in each city.
- **Market and demand analysis** — compare supply, prices and categories across cities and countries.
- **Car and property dealers** — monitor private-seller inventory in your area.
- **Deal alerts** — schedule a run every hour with "Listed within: last 24 hours" and push new listings to Slack or email.

### How to scrape Facebook Marketplace

1. Click **Try for free**.
2. Enter one or more **Search terms** (for example `iphone 15`, `sofa`, `road bike`).
3. Set the **Location** — the city word from your Marketplace link (`nyc`, `la`, `london`, `toronto`…).
4. Optionally add price, condition and "listed within" filters, or paste Marketplace links instead.
5. Click **Start** and download your listings as Excel, CSV, JSON or HTML.

### Input

| Field | Description |
|---|---|
| `searchQueries` | Search terms, each searched separately. |
| `location` | Marketplace city (`nyc`, `la`, `chicago`, `london`, `sydney`…) or a numeric location ID. |
| `startUrls` | Optional Marketplace search or category links; their filters are kept. |
| `maxItemsPerSearch` | Unique listings per search term or link (0 = as many as can be found). |
| `includeDetails` | Adds description, all photos, category, condition, coordinates and seller rating. |
| `minPrice`, `maxPrice`, `itemCondition`, `daysSinceListed` | Filters. |
| `radiusKm` | Search radius around the location in km (Facebook may round small values up). |
| `onlyNewListings` | Return only listings this search hasn't returned before: ideal for scheduled runs that alert you to new deals. Seen IDs are kept in a store named `facebook-marketplace-seen` in your own Apify account. |

```json
{
    "searchQueries": ["road bike", "iphone 15"],
    "location": "nyc",
    "maxItemsPerSearch": 100,
    "includeDetails": true,
    "daysSinceListed": "7"
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

```json
{
    "listingId": "1056140057243769",
    "title": "REI boy bike",
    "price": "$250",
    "priceAmount": 250,
    "currency": "USD",
    "city": "Whitestone",
    "state": "NY",
    "isSold": false,
    "listedAt": "2026-10-06T00:12:51+00:00",
    "description": "Great condition",
    "category": "Bicycles",
    "condition": "Used – good",
    "latitude": 40.7894,
    "longitude": -73.8116,
    "shippingOffered": false,
    "deliveryTypes": ["IN_PERSON"],
    "photos": ["https://scontent.xx.fbcdn.net/…jpg"],
    "sellerName": "Mona A.",
    "sellerRating": 5,
    "sellerRatingCount": 4,
    "url": "https://www.facebook.com/marketplace/item/1056140057243769/",
    "searchQuery": "bike",
    "location": "nyc"
}
```

### Data fields

| Field | Meaning |
|---|---|
| `title`, `description`, `category`, `condition`, `brand`, `attributes` | What is being sold |
| `price`, `priceAmount`, `originalPrice`, `currency` | Price (and the old price when reduced) |
| `city`, `state`, `locationText`, `latitude`, `longitude` | Where it is |
| `listedAt`, `isSold`, `isPending` | Freshness and status |
| `imageUrl`, `photos` | Main photo and full gallery |
| `deliveryTypes`, `shippingOffered` | Pickup or shipping |
| `sellerName`, `sellerRating`, `sellerRatingCount`, `sellerProfileUrl` | Seller |
| `url` | Link to the listing |

Views: **Listings** and **Details & sellers**.

### How many results will I get?

Up to `maxItemsPerSearch` unique listings per search term. A popular term in a big city usually yields several hundred listings (a test for "sofa" in London returned 550+). Narrow terms or small towns return fewer.

### Tips

- Turn off **Include listing details** for a fast, lightweight price scan; turn it on when you need descriptions, photos and coordinates.
- Use **Listed within: last 24 hours** on an hourly schedule to build a deal-alert feed.
- Paste a Marketplace link when you want an exact category (vehicles, property rentals, electronics) with your own filters.
- If a search comes back empty, switch the proxy to residential.

**Monitor a search for new deals.** Turn on `onlyNewListings` and schedule the run (for example every hour). Each run returns only listings it hasn't returned before, and skips fetching details for the rest, so repeat runs are fast and cheap.

### FAQ

**Do I need a Facebook account?** No. The scraper only collects publicly visible Marketplace listings.

**Which countries work?** Any country where Marketplace is available — use the city word from your Marketplace link.

**Is it legal?** It collects publicly available listing data. Handle any personal data (such as seller names) in line with GDPR and local privacy laws, and respect Facebook's terms.

**Missing a field or a filter?** Open an issue in the **Issues** tab — feature requests are welcome. If this actor saves you time, a ⭐ review on the Store helps a lot.

# Actor input Schema

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

What to search for, e.g. "iphone 15" or "sofa". Each term is searched separately in the location below.

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

Marketplace city as it appears in the Marketplace link, e.g. nyc, la, chicago, london, toronto, sydney, or a numeric location ID. Open Marketplace, pick your city and copy the word after /marketplace/.

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

Paste Marketplace search or category links (e.g. https://www.facebook.com/marketplace/la/vehicles). Filters in the link are kept.

## `maxItemsPerSearch` (type: `integer`):

Stop after this many unique listings for each search term or link. 0 = as many as can be found.

## `includeDetails` (type: `boolean`):

Opens every listing to add the full description, all photos, category, condition, brand, exact coordinates, shipping option and seller rating.

## `onlyNewListings` (type: `boolean`):

Return only listings this search hasn't returned before. The listing IDs seen are kept in a store named 'facebook-marketplace-seen' in your own Apify account, so scheduled runs give you just what's new (and skip fetching details for the rest).

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

Only listings at or above this price (local currency).

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

Only listings at or below this price (local currency).

## `itemCondition` (type: `string`):

Only listings in this condition.

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

Only recently listed items.

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

Search radius around the location, in kilometres. Empty = Facebook's default for that location.

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

The default uses residential proxies automatically, which Marketplace needs.

## Actor input object example

```json
{
  "searchQueries": [
    "bike"
  ],
  "location": "nyc",
  "maxItemsPerSearch": 50,
  "includeDetails": true,
  "onlyNewListings": false,
  "itemCondition": "any",
  "daysSinceListed": "any",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "searchQueries": [
        "bike"
    ],
    "location": "nyc",
    "maxItemsPerSearch": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("maged120/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 = {
    "searchQueries": ["bike"],
    "location": "nyc",
    "maxItemsPerSearch": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("maged120/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 '{
  "searchQueries": [
    "bike"
  ],
  "location": "nyc",
  "maxItemsPerSearch": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call maged120/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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