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

Collect Facebook Marketplace listings by keyword, location, radius, price, and category — with full descriptions, condition, gallery, exact coordinates, and seller info. No login or cookies required.

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

## Pricing

from $2.00 / 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.

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

## Facebook Marketplace scraper

Collect **Facebook Marketplace** listings for any keyword, location, radius, price range, or category — with the **full description, condition, photo gallery, exact coordinates, and seller info** for every listing.

No login, no cookies, no Facebook account required. The actor reads the public Marketplace search/category/item surfaces directly.

### What you get

One dataset item per listing, including:

- title, listing id, source URL
- price (formatted + numeric + currency)
- condition and full attribute list
- category path (`category` → `categoryId` → `categoryPath`)
- location text + city/state + exact latitude/longitude
- primary photo + full gallery URLs
- distance from the search center (km)
- seller name + id
- published timestamp, live/pending/sold flags
- which search/query surfaced the listing

### Input

| Field | Default | Description |
|---|---|---|
| Location | `Austin, Texas` | City/area to search around |
| Search term | `couch` | Keyword, or empty to browse a category/feed |
| Start URLs | — | Pasted Marketplace search/category URLs (filters parsed out) |
| Categories | — | Comma-separated category slugs |
| Max results | `10` | Stop after N unique listings |
| Min / Max price | — | Price bounds |
| Radius (km) | `65` | Search radius around the location |
| Sort | `relevance` | relevance / newest / price low-high / high-low |
| Days since listed | — | Recency window filter |
| Include details | ✅ | Fetch each listing's full detail page |
| Strict radius | — | Drop listings measured beyond the radius |
| Compact output | — | Core fields only |
| Managed proxy | — | Optional proxy for IP-bound blocks |
| Max pages / Workers | `24` / `5` | Volume and parallelism controls |

A **zero-config run** — click Run without changing any input — searches for `couch` near Austin, Texas and returns up to 10 listings.

### How it gets volume

Logged-out Marketplace caps each search/filter combination at ~24 listings. The actor therefore fans one query out over independent slices — sort orders, recency windows, price buckets, and category pages — then **dedupes by listing id**, so you get real unique listings per query, not one page of repeats.

### Output format

One JSON object per listing, written to the default dataset. Core search-layer fields are always present; detail-only fields are `null` when **Include details** is off.

# Actor input Schema

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

City/area to search around, e.g. "Seattle, WA" or "chicago". Marketplace location slugs are lower-case single-token city names (seattle, nyc, london).

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

Keyword to search for. Leave empty to browse the city feed / categories instead (see Browse city feed).

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

Optional pasted Marketplace search/category URLs. Query, location, price bounds, sort, and category are parsed out of them.

## `categories` (type: `string`):

Comma-separated Marketplace category slugs, e.g. couches, bicycles, electronics.

## `maxResults` (type: `integer`):

Stop after this many unique listings.

## `maxPages` (type: `integer`):

Cap on search pages fetched per query.

## `workers` (type: `integer`):

Parallel listing-detail fetches. Higher values are faster but more aggressive.

## `minDelay` (type: `number`):

Seconds between request starts. Raise it if a run gets throttled.

## `minPrice` (type: `number`):

Lower price bound (whole currency units). Blank = no lower bound.

## `maxPrice` (type: `number`):

Upper price bound. Blank = no upper bound.

## `radiusKm` (type: `number`):

Server-side search radius around the location.

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

Result ordering.

## `daysSinceListed` (type: `integer`):

Recency window filter. Blank uses the default 1-day and 7-day windows.

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

Fetch each listing's detail page for the full description, condition, gallery, exact coordinates, and seller.

## `strictRadius` (type: `boolean`):

Drop listings measured beyond the radius after detail fetch (needs Include details).

## `compact` (type: `boolean`):

Emit core fields only (listing id, title, price, condition, location, URL, dates).

## `descriptionMaxLength` (type: `integer`):

Truncate descriptions; 0 = full text.

## `browse` (type: `boolean`):

Also walk the city browse feed when no keyword is given.

## `proxy` (type: `string`):

Optional proxy URL (http://user:pass@host:port) for IP-bound blocks. Leave blank to use the run's direct connection.

## Actor input object example

```json
{
  "location": "Austin, Texas",
  "query": "couch",
  "startUrls": [],
  "categories": "",
  "maxResults": 10,
  "maxPages": 24,
  "workers": 5,
  "minDelay": 0.4,
  "radiusKm": 65,
  "sortBy": "relevance",
  "includeDetails": true,
  "strictRadius": false,
  "compact": false,
  "descriptionMaxLength": 0,
  "browse": false
}
```

# Actor output Schema

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

All scraped Facebook Marketplace listings, one item per row.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("data_dino/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("data_dino/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 '{}' |
apify call data_dino/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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