# Facebook Marketplace Scraper: New Listings & Price Drops (`h1018y/anvil-facebook-marketplace-scraper`) Actor

Scrapes Facebook Marketplace searches by city and price range and returns only the listings that are new since your last run, plus price drops on listings you saw before. Title, price, city, photo and link; no login, no seller data.

- **URL**: https://apify.com/h1018y/anvil-facebook-marketplace-scraper.md
- **Developed by:** [ANVIL Tools](https://apify.com/h1018y) (community)
- **Categories:** E-commerce, Social media
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.34 / 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

## Facebook Marketplace Scraper: New Listings & Price Drops

**Facebook Marketplace Scraper** - Watch any Facebook Marketplace search and get only the listings that are new since your last run - and the ones whose price just dropped.

### What does Facebook Marketplace Scraper do?

Repeat runs mark every listing new or seen and add priceChange and priceDropped, with onlyNew and onlyPriceDrops modes for alerts - the popular Marketplace scrapers return the same full search every time and leave the diff to you.

- Only new listings since your last run
- Price drops on listings you already saw (priceChange, priceDropped)
- Title, price, original price, city, details, sold/pending, photo, link
- Type searches with a location and price range, or paste Marketplace URLs
- Listing data only - no seller names or profiles, no login, no CAPTCHA solving

### Why this Facebook Marketplace Scraper?

Facebook changes its pages and logged-out limits often, so cheap scrapers break or return nothing. This Facebook Marketplace Scraper checks every run and tells you plainly when a page could not be read, instead of returning empty or wrong rows.

### Data you get from Facebook Marketplace Scraper

Every result is one flat row with these fields (values from a real run):

| Field | Example |
|---|---|
| `search` | bike |
| `status` | seen |
| `listingId` | 4208265729475456 |
| `url` | https://www.facebook.com/marketplace/item/4208265729475456/ |
| `title` | E bike |
| `price` | 500 |
| `priceText` | $500 |
| `listedPrice` | null |
| `listedPriceText` | null |
| `city` | Scranton |
| `state` | PA |
| `details` | \[] |
| `isSold` | false |
| `isPending` | false |
| `photoUrl` | https://scontent.ftpa1-2.fna.fbcdn.net/v/t39.84726-6/8632488... |
| `priceChange` | 0 |
| `priceDropped` | false |

### How to use Facebook Marketplace Scraper

1. Press **Start** - the form already holds an example that works.
2. Put in your own input (see the fields on the Input tab).
3. Run it once, or put it on an **Apify Schedule** to get fresh rows every day.
4. Download the results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make, the Apify API or an AI agent (Apify MCP server).

#### Input example

```json
{
  "searchQueries": [
    "bike"
  ],
  "location": "nyc",
  "sort": "newest",
  "listingsPerSearch": 24,
  "onlyNew": false,
  "onlyPriceDrops": false,
  "maxItems": 30,
  "useApifyProxy": true
}
```

#### Output example (a real run)

```json
[
  {
    "search": "bike",
    "status": "seen",
    "listingId": "4208265729475456",
    "url": "https://www.facebook.com/marketplace/item/4208265729475456/",
    "title": "E bike",
    "price": 500,
    "priceText": "$500",
    "listedPrice": null,
    "listedPriceText": null,
    "city": "Scranton",
    "state": "PA",
    "details": [],
    "isSold": false,
    "isPending": false,
    "photoUrl": "https://scontent.ftpa1-2.fna.fbcdn.net/v/t39.84726-6/863248822_2036295807039178_8256328146068152199_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=102&ccb=1-7&_nc_sid=92e707&_nc_ohc=Z_Yu9sfwXtoQ7kNvwHbYjeO&_nc_oc=Adplf5EzZ4hkVHi1C97RjE8jT3L420A6pgb7jv1PwizQInIZ3qwTSAC6tiP9bkb3C9uXH2bm6BOoU31lsRbni7Td&_nc_zt=14&_nc_ht=scontent.ftpa1-2.fna&_nc_gid=lDDdQBRpLo3ExYVbw_WXUQ&_nc_ss=70289&oh=00_AQNvUyBX4fb3aNygo3m7ujDKBiOKHTcWDYrcfKOYOjLMeQ&oe=6AE21031",
    "priceChange": 0,
    "priceDropped": false
  },
  {
    "search": "bike",
    "status": "seen",
    "listingId": "1609870220827146",
    "url": "https://www.facebook.com/marketplace/item/1609870220827146/",
    "title": "Huffy Stone Mountain Bike 24\" Wheels",
    "price": 160,
    "priceText": "$160",
    "listedPrice": null,
    "listedPriceText": null,
    "city": "Bayside",
    "state": "NY",
    "details": [],
    "isSold": false,
    "isPending": false,
    "photoUrl": "https://scontent.ftpa1-1.fna.fbcdn.net/v/t39.84726-6/857997252_1759840725113443_3519117215990838986_n.jpg?stp=c0.9.261.261a_dst-jpg_p261x260_tt6&_nc_cat=105&ccb=1-7&_nc_sid=92e707&_nc_ohc=O2LWHjKHlMsQ7kNvwGcBtxC&_nc_oc=AdpaSNu2eJWhLqPT3c6gnuBnfHUW-1ze-agpm3Em55dFuQDM3eCq6OKx6BBhvAdRQwuz8BxP8EYvZ_P44lvRzr9Y&_nc_zt=14&_nc_ht=scontent.ftpa1-1.fna&_nc_gid=lDDdQBRpLo3ExYVbw_WXUQ&_nc_ss=70289&oh=00_AQMUiAXXh5VpQHSTA-NJTfwxqxxTXs8ryhGIiIaK9PS4NA&oe=6AE20561",
    "priceChange": 0,
    "priceDropped": false
  }
]
```

One flat row per result.

### How much does Facebook Marketplace Scraper cost?

You pay only per result (pay per event) - no monthly fee, no minimum, and the price per result is lower on Apify's Bronze, Silver and Gold plans. The exact price is on the **Pricing** tab. Apify's free plan credit is enough to try it on real input.

| You want | What you pay for |
|---|---|
| A quick test with the example | a few results |
| A daily scheduled run | only the rows that run returns |
| A big one-off export | the results delivered - set a maximum in the input |

### Also searched as

- facebook marketplace alerts
- marketplace price drop alerts
- facebook marketplace monitor
- marketplace deals finder
- facebook marketplace api

### FAQ

**Does Facebook Marketplace Scraper need a login, cookies or an API key?** No. It reads public pages only.

**Can I run Facebook Marketplace Scraper on a schedule?** Yes - with Apify Schedules; each run returns fresh rows.

**Can I call it from Python, JavaScript or an AI agent?** Yes - through the Apify API, the Apify client libraries or the Apify MCP server.

**Is it legal?** It collects only data anyone can see without logging in. You are responsible for using it within the source site's terms and data protection law (GDPR, CCPA).

**What if the site blocks a request?** The run retries from a fresh connection and, if it still cannot read the page, stops with a clear message - never with made-up rows.

**Do I need proxies?** No setup needed - Facebook Marketplace Scraper uses Apify Proxy by default where the site needs it.

### Troubleshooting

- **No results:** check the input (a public URL or a search term that returns results in a normal browser), then try the example input once.
- **Fewer results than expected:** raise the maximum in the input; some sites show only a part of their data without logging in, and Facebook Marketplace Scraper never logs in.
- **The run stopped with a message:** the message says what the site answered; run it again later or with fewer items.

### Your feedback

Missing a field, found a bug, or need another site? Open an issue on the **Issues** tab - issues are answered and fixed. If Facebook Marketplace Scraper saved you time, a short review on this page helps others find it.

Data source: [www.facebook.com/marketplace](https://www.facebook.com/marketplace/)

### More tools from this developer

- [Tweet Scraper: Tweet Details by URL, No Login or Cookies](https://apify.com/h1018y/anvil-tweet-scraper)
- [YouTube Thumbnail Downloader: Bulk, Every Size & Titles](https://apify.com/h1018y/anvil-youtube-thumbnail-downloader)
- [ML Conference Finder: NeurIPS, ICLR & ICML Alternatives](https://apify.com/h1018y/anvil-ml-conference-finder)
- [YouTube Transcript Scraper: Find Every Moment a Word Is Said](https://apify.com/h1018y/anvil-youtube-transcript-scraper)
- [Facebook Ads Library Scraper: Only New Ads & Days Running](https://apify.com/h1018y/anvil-facebook-ads-library-scraper)
- [Reddit Scraper: Keyword Alerts for New Posts & Comments](https://apify.com/h1018y/anvil-reddit-scraper)
- [Twitter Scraper: New Tweets From Any X Account, No Login](https://apify.com/h1018y/anvil-twitter-scraper)
- [Facebook Page Monitor: New Posts & Engagement Growth](https://apify.com/h1018y/anvil-facebook-posts-scraper)

# Actor input Schema

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

What you'd type into Marketplace search, one per line.

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

The location part of a Marketplace address (facebook.com/marketplace/<this>/...), e.g. nyc, la, chicago, london, or a number.

## `searchUrls` (type: `array`):

Paste searches straight from Facebook Marketplace, with your filters.

## `sort` (type: `string`):

For searches typed above.

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

Optional.

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

Optional.

## `listingsPerSearch` (type: `integer`):

More are loaded by scrolling.

## `onlyNew` (type: `boolean`):

Turn on for alerts. The first run is the baseline.

## `onlyPriceDrops` (type: `boolean`):

Listings you saw before whose price went down.

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

Stop after this many listings.

## `useApifyProxy` (type: `boolean`):

Recommended.

## `proxyGroups` (type: `array`):

Optional, e.g. RESIDENTIAL.

## Actor input object example

```json
{
  "searchQueries": [
    "bike"
  ],
  "location": "nyc",
  "sort": "newest",
  "listingsPerSearch": 24,
  "onlyNew": false,
  "onlyPriceDrops": false,
  "maxItems": 30,
  "useApifyProxy": true
}
```

# Actor output Schema

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

All result rows (open as table, JSON, CSV or Excel).

# 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",
    "sort": "newest",
    "listingsPerSearch": 24,
    "maxItems": 30,
    "useApifyProxy": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("h1018y/anvil-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",
    "sort": "newest",
    "listingsPerSearch": 24,
    "maxItems": 30,
    "useApifyProxy": True,
}

# Run the Actor and wait for it to finish
run = client.actor("h1018y/anvil-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",
  "sort": "newest",
  "listingsPerSearch": 24,
  "maxItems": 30,
  "useApifyProxy": true
}' |
apify call h1018y/anvil-facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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