# 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:** 2 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Facebook Marketplace Scraper - Listings, Prices & Details",
        "description": "Search Facebook Marketplace listings by keyword and location and extract titles, prices, photos, conditions, and seller details.",
        "version": "1.0",
        "x-build-id": "Xfq4hALqayAGHRMtu"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/seemuapps~facebook-marketplace-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-seemuapps-facebook-marketplace-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/seemuapps~facebook-marketplace-scraper/runs": {
            "post": {
                "operationId": "runs-sync-seemuapps-facebook-marketplace-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/seemuapps~facebook-marketplace-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-seemuapps-facebook-marketplace-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "query",
                    "location"
                ],
                "properties": {
                    "query": {
                        "title": "Search keyword",
                        "type": "string",
                        "description": "What to search for on Facebook Marketplace, e.g. 'road bike', 'sofa', 'iPhone 15'."
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "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": {
                        "title": "Search radius (km)",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Search radius around the location, in kilometers.",
                        "default": 65
                    },
                    "minPrice": {
                        "title": "Min price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return listings priced at or above this amount (in the local currency)."
                    },
                    "maxPrice": {
                        "title": "Max price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return listings priced at or below this amount (in the local currency)."
                    },
                    "sortBy": {
                        "title": "Sort by",
                        "enum": [
                            "suggested",
                            "creation_time_descend",
                            "distance_ascend",
                            "price_ascend",
                            "price_descend"
                        ],
                        "type": "string",
                        "description": "How to order the search results.",
                        "default": "suggested"
                    },
                    "condition": {
                        "title": "Condition",
                        "enum": [
                            "any",
                            "new",
                            "used_like_new",
                            "used_good",
                            "used_fair"
                        ],
                        "type": "string",
                        "description": "Filter listings by item condition.",
                        "default": "any"
                    },
                    "dateListed": {
                        "title": "Date listed",
                        "enum": [
                            "all",
                            "last_24_hours",
                            "last_7_days",
                            "last_30_days"
                        ],
                        "type": "string",
                        "description": "Only return listings created within this time window.",
                        "default": "all"
                    },
                    "deliveryMethod": {
                        "title": "Delivery method",
                        "enum": [
                            "all",
                            "local_pickup",
                            "shipping"
                        ],
                        "type": "string",
                        "description": "Filter by how the item can be delivered.",
                        "default": "all"
                    },
                    "availability": {
                        "title": "Availability",
                        "enum": [
                            "available",
                            "sold",
                            "all"
                        ],
                        "type": "string",
                        "description": "Whether to include available listings, sold listings, or both.",
                        "default": "available"
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of listings to return in this run. Set 0 for unlimited (until the search is exhausted or the run times out).",
                        "default": 48
                    },
                    "itemDetails": {
                        "title": "Fetch full item details",
                        "type": "boolean",
                        "description": "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.",
                        "default": false
                    },
                    "pageId": {
                        "title": "Page ID (pagination)",
                        "type": "string",
                        "description": "Paste NEXT_PAGE_ID from the previous run's Key-value store to fetch the next page of results."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
