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

Search Facebook Marketplace listings by keyword and location and extract titles, prices, photos, conditions, and seller details.

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

## Pricing

from $2.00 / 1,000 marketplace listings

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/platform/actors/running/actors-in-store#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

## Facebook Marketplace Scraper - Listings, Prices & Details

Search Facebook Marketplace by keyword and location and export every matching listing — title, price, location, photos, condition, and seller details — without logging in or touching a browser.

### What you get

- **Listing data**: title, price (with currency and any strikethrough discount price), city/state, primary photo, delivery options, and sold/pending status
- **Full details mode**: description, exact GPS coordinates, condition and attributes (brand, size, model…), all photos, listing date, and seller info
- **Powerful filters**: price range, condition, date listed, delivery method, availability, sort order, and search radius
- **Pagination cursor** so you can fetch thousands of listings across chained runs
- Export to JSON, CSV, or Google Sheets directly from the Apify console

### Use cases

- **Price research** — track resale prices for any product category in any city
- **Flipping & arbitrage** — find underpriced listings the moment they appear (sort by newest, filter by last 24 hours)
- **Lead generation** — find sellers of specific goods in your service area
- **Market analysis** — measure supply, demand, and price spread across locations
- **Real estate & rentals** — monitor rental listings with availability and listing-date text

### How to use

1. Enter a **Search keyword** (e.g. `road bike`) and a **Location** (e.g. `Austin, Texas` — or exact `lat,lng` coordinates)
2. Optionally set filters: price range, condition, date listed, sort order, radius
3. Set **Max Items** (default 48; 0 = unlimited)
4. Enable **Fetch full item details** if you need descriptions, GPS, attributes, and seller info (one extra request per listing)
5. Run the actor — results appear in the **Dataset** tab

#### Fetching more pages

After the run finishes, open the **Key-value store** tab → copy the `NEXT_PAGE_ID` value → paste it into **Page ID** on your next run. If `NEXT_PAGE_ID` is `null`, you've fetched everything.

### Output format

Each dataset record:

```json
{
  "id": "1880804689276480",
  "url": "https://www.facebook.com/marketplace/item/1880804689276480/",
  "title": "ANCHEER E Bike",
  "price": "$300",
  "priceAmount": 300,
  "originalPrice": null,
  "city": "Austin",
  "state": "TX",
  "locationDisplayName": "Austin, Texas",
  "photoUrl": "https://scontent...jpg",
  "isSold": false,
  "isPending": false,
  "deliveryTypes": ["IN_PERSON", "DOOR_PICKUP"],
  "description": null,
  "condition": null
}
```

With **Fetch full item details** enabled, `description`, `creationTime`, `latitude`/`longitude`, `condition`, `attributes`, `photos`, and `seller` are populated too.

### Notes

- Only publicly visible Marketplace listings are returned.
- Facebook may order results slightly differently between identical runs; for alerting workflows, scrape a few pages and dedupe by listing `id` (the actor already dedupes within a single run).

# Actor input Schema

## `query` (type: `string`):

What to search for on Facebook Marketplace, e.g. 'road bike', 'sofa', 'iPhone 15'.

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

City to search around, e.g. 'Austin, Texas' or 'Sydney'. You can also pass exact coordinates as 'lat,lng' (e.g. '30.2677,-97.7475').

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

Search radius around the location, in kilometers.

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

Only return listings priced at or above this amount (in the local currency).

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

Only return listings priced at or below this amount (in the local currency).

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

How to order the search results.

## `condition` (type: `string`):

Filter listings by item condition.

## `dateListed` (type: `string`):

Only return listings created within this time window.

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

Filter by how the item can be delivered.

## `availability` (type: `string`):

Whether to include available listings, sold listings, or both.

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

Maximum number of listings to return in this run. Set 0 for unlimited (until the search is exhausted or the run times out).

## `itemDetails` (type: `boolean`):

When enabled, each listing is enriched with the full description, exact GPS coordinates, condition, attributes, all photos, and seller info. Slower and uses one extra request per listing.

## `pageId` (type: `string`):

Paste NEXT\_PAGE\_ID from the previous run's Key-value store to fetch the next page of results.

## Actor input object example

```json
{
  "query": "bike",
  "location": "Austin, Texas",
  "radiusKm": 65,
  "sortBy": "suggested",
  "condition": "any",
  "dateListed": "all",
  "deliveryMethod": "all",
  "availability": "available",
  "maxItems": 48,
  "itemDetails": false
}
```

# Actor output Schema

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

One Marketplace listing per record: id, url, title, price, location, photo, condition, and (optionally) full details.

## `nextPageId` (type: `string`):

NEXT\_PAGE\_ID record in the default key-value store. Paste into Page ID on the next run to resume; null when the search is exhausted.

# 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 = {
    "query": "bike",
    "location": "Austin, Texas"
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/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 = {
    "query": "bike",
    "location": "Austin, Texas",
}

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/facebook-marketplace-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "bike",
  "location": "Austin, Texas"
}' |
apify call seemuapps/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=seemuapps/facebook-marketplace-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/q3WVtZDSnLJri67Qo/builds/Xfq4hALqayAGHRMtu/openapi.json
