# Facebook Marketplace Scraper: Listings, Prices & Locations (`xmolodtsov/facebook-marketplace-scraper`) Actor

Scrape Facebook Marketplace search and category listings with titles, prices, locations and image URLs. Public discovery data without seller identity.

- **URL**: https://apify.com/xmolodtsov/facebook-marketplace-scraper.md
- **Developed by:** [GoFetch](https://apify.com/xmolodtsov) (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 $0.39 / 1,000 items

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

This scraper for facebook marketplace discovers public search and category listings and exports titles, prices, locations, image URLs and listing dates. Use it for product research, price comparisons and building a listing dataset from searches you choose. One row represents one listing. Seller identity is not collected; the actor does not fetch seller profiles, contact data or messaging surfaces.

### What data you get

Each listing includes a source ID and canonical listing URL, its title, numeric price when available, the displayed currency symbol, formatted price, location label, primary image URL, category ID and source listing date when present. Every row also includes its search URL, query where applicable, and the UTC scrape time. Missing optional fields are null. A displayed dollar sign remains `$`; it does not establish which country's dollar is meant.

The actor reads public discovery feeds without an account or cookies. It does not open listing detail pages, track changes, send alerts or apply a local radius filter. Facebook can mix recommendations and shipped listings into a city feed. These rows remain in the export, so a city search does not guarantee that every result is located inside that city.

### How to use it

Open the actor in [Apify Console](https://console.apify.com/), keep the five-row NYC bicycle example or paste your own search or category URLs, select a maximum number of listings, and start a run. Leave the proxy set to Apify RESIDENTIAL with country US. Open the dataset after the run to inspect rows or download JSON, CSV or Excel.

For API use, send URL objects in `startUrls`, matching the Console request-list editor. Alternatively supply `searchQueries` and a city slug in `location`. This example uses the latter form:

```javascript
const response = await fetch(
  'https://api.apify.com/v2/acts/xmolodtsov~facebook-marketplace-scraper/run-sync-get-dataset-items?timeout=120',
  {
    method: 'POST',
    headers: {
      Authorization: `Bearer ${process.env.APIFY_TOKEN}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      searchQueries: ['bicycle'],
      location: 'nyc',
      maxItems: 5,
      proxyConfiguration: {
        useApifyProxy: true,
        apifyProxyGroups: ['RESIDENTIAL'],
        apifyProxyCountry: 'US',
      },
    }),
  },
);
if (!response.ok) throw new Error(`Run request failed: ${response.status}`);
const listings = await response.json();
```

For longer searches, start an asynchronous run and retrieve the dataset after completion. An Apify MCP client can invoke this actor with the same JSON input. Specify a city and search term in your MCP request so the intended discovery job is clear. See the [Apify API documentation](https://docs.apify.com/api/v2) for run and dataset endpoints.

### Pricing

The only actor event is one listing saved to the default dataset. Duplicate listing IDs and failed requests add no saved-listing events. There are no start, pagination, detail, proxy-rotation or alert events.

| Apify plan | Price per 1,000 saved listings |
| --- | --- |
| FREE | $0.56 |
| BRONZE | $0.50 |
| SILVER | $0.45 |
| GOLD | $0.39 |

Platinum and Diamond use the Gold rate. Five rows correspond to $0.0028 at the listed Free tier or $0.00195 at Gold. Two hundred rows correspond to $0.112 or $0.078 respectively. These are saved-result event totals; Apify applies its platform billing rules to free accounts. The tier called FREE does not remove the developer's free-use quota.

Each start URL needs a residential bootstrap request before pagination. Small runs therefore have a larger fixed source cost per row than longer runs. For efficient use, combine relevant queries in one run, choose a practical result limit and avoid repeatedly restarting the same broad search. Source pages contain varying numbers of listings, usually up to 24 per pagination request.

#### Is it free?

On the Apify free plan, the developer allows **100 results per run and 20 runs per month** per user. The monthly limit resets on the first day of each UTC calendar month. A run beyond that allowance succeeds with zero rows and makes no source requests. Developer-owned quota storage enforces the limit; changing your dataset or input cannot reset it. Paid plans have no developer monthly quota. The owner and platform TEST runs are exempt. Free runs always use Apify Proxy RESIDENTIAL US and ignore valid custom proxy URLs.

### Input

Supply `startUrls`, `searchQueries`, or both. Each array accepts at most 50 entries. Search URLs have the form `https://www.facebook.com/marketplace/nyc/search/?query=bicycle`; category URLs use the public Marketplace city/category path, such as `https://www.facebook.com/marketplace/nyc/vehicles/`. Locationless `/marketplace/category/vehicles/` URLs are mapped to the selected `location` city slug. The platform's `requestListSources` editor expects objects such as `{"url":"https://www.facebook.com/marketplace/nyc/search/?query=bicycle"}`. Query convenience fields generate the same city search URL. The `location` city slug defaults to `nyc` and applies to `searchQueries` and locationless category URLs.

HTTP and HTTPS Facebook URLs, including regional, mobile and web subdomains, are normalized to HTTPS on `www.facebook.com`. Item and seller URLs are rejected. Only one public `query` URL parameter is supported per URL. URL path casing is normalized. Price, sort, radius, latitude and longitude filters are not offered because their source behavior has not been verified. Invalid values fail before quota admission, proxy initialization or source requests.

`maxItems` is the maximum unique saved listings across the whole run, from 1 to 100,000, default five. It includes rows already saved before a restart. Result and charge limits can stop work before a feed ends. Each search is additionally bounded at 100 pages including its bootstrap; reaching this bound is reported as limited coverage. Results from several inputs are processed in input order rather than globally sorted.

`proxyConfiguration` defaults to Apify RESIDENTIAL US. Explicit datacenter-only groups, empty group lists and non-US exits are rejected as `invalid:` before requests. Both `groups` and `apifyProxyGroups` aliases are checked case-insensitively. Paid callers may supply HTTP or HTTPS custom proxy URLs; SOCKS URLs are rejected. Direct platform access is unsupported. Proxy class in the log and STATISTICS comes from the resolved SDK configuration. Memory defaults to 256 MB and is capped at 512 MB.

### Output

The following row comes from a real public-source run. `listedDate` is source-provided time converted to ISO UTC; `scrapedAt` is collection time. Neither implies that the item remains available. Primary image URLs are signed and expire; download permitted images promptly if your application needs a durable copy.

```json
{
  "id": "1078833608094771",
  "url": "https://www.facebook.com/marketplace/item/1078833608094771/",
  "title": "Murray Spectra 10-Speed Step-Through Bicycle",
  "price": 30,
  "currency": "$",
  "formattedPrice": "$30",
  "location": "Chicago, Illinois",
  "primaryImage": "https://scontent.fsac1-1.fna.fbcdn.net/v/t39.84726-6/825351236_2297859804385826_7372871544816089579_n.jpg?stp=c90.0.540.540a_dst-jpg_p180x540_tt6&_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=92e707&_nc_ohc=JTj132RfQH0Q7kNvwExCgw0&_nc_oc=AdpN6a1S9o9kmZ-lW16bow4xKChQ-FmtOMSMHUdVJUts1udsY9xV3EZ3YFh3k8VkjxxbAfgty0ChX1yoXO79xStD&_nc_zt=14&_nc_ht=scontent.fsac1-1.fna&_nc_gid=c567cwS3B92jY2T2LYsHeA&_nc_ss=78289&oh=00_AQSteHw2cd260r33Kqyx5GExDQYo0dGPLvf0peeWamrHRA&oe=6B045075",
  "categoryId": "1658310421102081",
  "listedDate": "2026-10-05T00:24:17.000Z",
  "searchUrl": "https://www.facebook.com/marketplace/chicago/search/?query=bicycle",
  "query": "bicycle",
  "scrapedAt": "2026-11-19T04:20:01.598Z"
}
```

![Facebook Marketplace listing dataset preview](https://api.apify.com/v2/key-value-stores/2DxCOvbMjhvK3S1qP/records/facebook-marketplace-scraper-output.png)

### Guarantees and failure semantics

Rows are deduplicated by listing `id` across searches and across restarts of the same run. Dedup IDs are committed after confirmed persistence. The actor does not retry uncertain dataset appends: it preserves the pending-write marker, reconciles saved rows, and stops further source work. Existing saved rows remain available after a later source or persistence failure.

A run with saved rows can finish SUCCEEDED with partial coverage. Inspect `STATISTICS` for completed inputs, limits, source failures, request counts and block rate. An input is complete only after a confirmed terminal feed response and saving all eligible rows. A page or result cap never establishes exhaustion. Repeated cursors, empty pages with a continuation, missing LSD or preloader variables, and changed response shapes are treated as failures or incomplete coverage.

With zero saved rows, an unanswered job is FAILED with a leading token: `invalid:` for unsupported input, `blocked:` for a login redirect, wall or challenge, `network:` for request/service errors, `timeout:` for the run deadline, or `outdated:` for a changed source marker. Missing source markers are named in the log. A zero-row no-results success requires a recognized terminal empty response. The separate free-quota refusal is an explicit successful zero-row exit before source work. Source retries use fresh proxy sessions and stay bounded; requests stop before the run's final 30 seconds.

### Integrations

Export datasets directly or use the [Apify integrations](https://apify.com/integrations) with Make, Zapier or n8n. Pass listing IDs into your own database as stable merge keys; retain `searchUrl` to explain where a discovery originated. For scheduled research, configure an Apify schedule and compare separate run datasets in your application. This actor itself does not maintain a monitoring history or send notifications.

### More scrapers from this developer

**TikTok:** [TikTok Search Scraper](https://apify.com/xmolodtsov/tiktok-search-scraper): Videos and creators for any keyword, pay per result ·
[TikTok Profile Scraper (Pay Per Result)](https://apify.com/xmolodtsov/tiktok-profile-scraper): Profiles, followers and latest posts by username ·
[TikTok Comments Scraper](https://apify.com/xmolodtsov/tiktok-comments-scraper): Comments and full reply threads from any video ·
[TikTok Hashtag Scraper](https://apify.com/xmolodtsov/tiktok-hashtag-scraper): Videos for any hashtag, with views, likes and music ·
[TikTok Sound & Music Scraper](https://apify.com/xmolodtsov/tiktok-sound-scraper): Videos that use a sound or song ·
[TikTok Top Ads Scraper](https://apify.com/xmolodtsov/tiktok-top-ads-scraper): Public Creative Center ad rankings, engagement, media and landing pages

**Social & news:** [Reddit Search Scraper](https://apify.com/xmolodtsov/reddit-scraper): Posts by keyword, subreddit or author ·
[Google News Scraper](https://apify.com/xmolodtsov/google-news-scraper): Google News results as clean full-text articles ·
[Threads Replies Scraper](https://apify.com/xmolodtsov/threads-replies-scraper): Public post replies, likes, authors and inline nested replies ·
[Threads Posts Scraper](https://apify.com/xmolodtsov/threads-posts-scraper): Public profile timelines with likes, replies and reposts ·
[Pinterest Videos Scraper](https://apify.com/xmolodtsov/pinterest-videos-scraper): Public Pinterest videos by keyword or board, with MP4 links and stats

**Instagram:** [Instagram Reel Scraper](https://apify.com/xmolodtsov/instagram-reel-scraper): Public profile reels, plays, captions, music and media URLs ·
[Instagram Comment Scraper](https://apify.com/xmolodtsov/instagram-comment-scraper): Public post and reel comments, likes, timestamps and usernames ·
[Instagram Post Scraper](https://apify.com/xmolodtsov/instagram-post-scraper): Public profile posts, likes, captions, locations and media URLs

**E-commerce:** [Prom.ua Product Search Scraper](https://apify.com/xmolodtsov/prom-ua): Prom.ua product search results, no browser needed ·
[Amazon Product Search & Bestsellers Scraper](https://apify.com/xmolodtsov/amazon-search-scraper): Search results and product details from Amazon ·
[AliExpress Search Scraper](https://apify.com/xmolodtsov/aliexpress-search-scraper): AliExpress products by keyword with prices, orders and shipping ·
[AliExpress Product Reviews Scraper](https://apify.com/xmolodtsov/aliexpress-reviews-scraper): Public product reviews, ratings, buyer photos and follow-up feedback

**Maps & leads:** [Google Maps Scraper](https://apify.com/xmolodtsov/google-maps-scraper): Places, leads and emails from Google Maps

**Ads:** [Facebook Ad Library Scraper (Meta Ads Library)](https://apify.com/xmolodtsov/facebook-ads-library-scraper): Ads from the Meta Ad Library, with EU reach and payers ·
[Google Ads Transparency Scraper](https://apify.com/xmolodtsov/google-ads-transparency-scraper): Google ad creatives by advertiser or domain, with regional details

**Video:** [YouTube Transcript Scraper](https://apify.com/xmolodtsov/youtube-transcript-scraper): Transcripts, subtitles and captions from YouTube videos ·
[YouTube Shorts Scraper](https://apify.com/xmolodtsov/youtube-shorts-scraper): Shorts of any channel with exact views, likes and duration ·
[YouTube Channel Scraper](https://apify.com/xmolodtsov/youtube-channel-scraper): Every video of a channel, with channel stats ·
[YouTube Search Scraper](https://apify.com/xmolodtsov/youtube-search-scraper): Search results and videos for any keyword ·
[YouTube Comments Scraper](https://apify.com/xmolodtsov/youtube-comments-scraper): Comments, replies and likes from any video ·
[Bilibili Comments Scraper](https://apify.com/xmolodtsov/bilibili-comments-scraper): Public hot comments and reply threads by video or keyword

**Jobs:** [SEEK Job Listings Scraper](https://apify.com/xmolodtsov/seek-jobs-scraper): Public AU/NZ job listings, salaries and redacted descriptions

### FAQ

#### Which locations work?

Geography is limited by Facebook's guest access and the selected exit country. NYC, Chicago and Los Angeles searches, NYC vehicles and a London bicycle search returned listings through the US exit. These checks establish those observed locations, not worldwide coverage. The default is a US residential exit; no matching non-US exit is promised. A location that is walled fails explicitly rather than producing an empty success. Results can include nearby or shipped recommendations, so always inspect the returned location label.

#### Can I get seller details or listing descriptions?

Seller identity is not collected. The output omits seller names, IDs, profile links and pictures. The actor reads only discovery feeds; full listing descriptions and additional detail-page photos are outside its scope.

#### Why are there fewer results than requested?

`maxItems` is a ceiling. A feed may end early, listings may repeat across inputs, your charge budget may stop admission, or the page or time bound may be reached. Source recommendations and ranking also vary. Consult STATISTICS before interpreting the dataset as complete.

#### Is it legal to scrape Facebook Marketplace?

This actor collects publicly accessible discovery data without login. You are responsible for your purpose, retention, platform terms and applicable law, including GDPR and CCPA where relevant. Public visibility alone does not grant unrestricted reuse rights. Avoid using listing data to identify or contact people without a lawful basis. Consult qualified counsel for advice about your use case.

### Support

Use the actor's Issues tab on [Apify](https://apify.com/xmolodtsov/facebook-marketplace-scraper) for support. Include your run ID, input shape and the leading failure token. Keep tokens, proxy credentials and private information out of reports. For incomplete coverage, include whether STATISTICS reports a result, charge, page or time limit.

# Changelog

This Actor's version history is a separate document: https://apify.com/xmolodtsov/facebook-marketplace-scraper/changelog.md

# Actor input Schema

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

Public Marketplace city search or category URLs. HTTP(S) facebook.com regional subdomains are normalized to www. Seller and item URLs are unsupported.

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

Optional search terms used with the location city slug. Combined with startUrls when both are supplied.

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

City slug for searchQueries and locationless category URLs, for example nyc, losangeles or chicago. Source recommendations can extend beyond this city.

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

Maximum unique saved listings across all searches. Apify free plan: 100 results per run, 20 runs per month. Paid runs are bounded by this value and charge limits.

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

Apify RESIDENTIAL US is required by default; datacenter-only options fail invalid before requests. Paid users can supply HTTP(S) proxy URLs. Free runs ignore custom proxies.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/marketplace/nyc/search/?query=bicycle"
    }
  ],
  "searchQueries": [],
  "location": "nyc",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

One public listing per row: ID, URL, title, price, displayed currency, location, image, category, date and search context. No seller identity.

# 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/nyc/search/?query=bicycle"
        }
    ],
    "searchQueries": [],
    "location": "nyc",
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

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

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

```

## MCP server setup

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