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

\[ 1k/1.49$ ] Facebook Marketplace Scraper searches listings by keyword and location with category, price, condition, sort, listing age and delivery filters, and returns descriptions, photos, condition, category, seller, exact location, delivery flags and status. No login.

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

## Pricing

from $1.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

**Facebook Marketplace Scraper** searches public Facebook Marketplace listings by keyword and location and returns them as clean, structured data. Give Facebook Marketplace Scraper a search term such as `iphone` and a city such as `nyc`, and it returns listings with title, price, photos, description, condition, category, seller, exact location, delivery options and availability status.

Facebook Marketplace Scraper reads only what a logged-out visitor can see on Facebook. You do not need a Facebook account, a login or an API key.

> **📌 At a glance**
>
> - **Input:** keywords, cities or coordinates, an optional category, Marketplace search URLs or single listing URLs
> - **Filters:** price range, condition, sort order, listing age, delivery method, availability and title keywords
> - **Output:** one dataset record per Facebook Marketplace listing
> - **Control:** a per-search limit with `maxItems`, plus a switch for full listing details

Teams use Facebook Marketplace Scraper for resale research, price comparison, sourcing and local market monitoring. Every Facebook listing comes back in the same JSON structure, so the data is easy to export or feed into a spreadsheet.

### 🔹 Facebook Marketplace Scraper – Key Features

Facebook Marketplace Scraper focuses on the details that matter when you study local Facebook listings.

- **Keyword and city search:** every search term is run in every location, so two keywords and three cities give six searches.
- **Flexible locations:** use Marketplace city slugs, numeric city ids, free-text names like `Austin, TX`, or exact latitude and longitude.
- **Rich filters:** limit Facebook Marketplace results by price, condition, sort order, listing age, delivery method and stock status.
- **Title keyword rules:** keep only listings that contain all required words, or drop listings that contain unwanted words.
- **Full listing details:** description, all photos, condition, category, seller block, coordinates and delivery flags.
- **Category browsing:** Facebook Marketplace Scraper can browse the `vehicles` or `propertyrentals` category without a keyword.
- **Direct URLs:** paste Facebook Marketplace search URLs, category URLs or single listing URLs.
- **Vehicle and property blocks:** car and rental listings add make, mileage, bedroom and area fields when shown.

> **✅ Why use this Actor**
>
> Facebook Marketplace Scraper replaces manual scrolling and copy-and-paste. Facebook Marketplace Scraper pages through the results for you, stops at your limit and delivers consistent fields that you can export as JSON, CSV or Excel.

### 🔍 What Data Does Facebook Marketplace Scraper Extract?

Each dataset item describes one Facebook Marketplace listing. The table groups the fields by purpose.

| Group | Fields | What you get |
|---|---|---|
| Identity | `id`, `url`, `title`, `customTitle`, `subtitles` | Facebook listing id, link and titles |
| Price | `price`, `originalPrice`, `comparablePrice`, `priceRange` | Amount, currency symbol and formatted text |
| Details | `description`, `condition`, `attributes`, `category`, `hashtags` | Text and specifications from the listing page |
| Time | `postedAt`, `postedTimestamp` | ISO time and Unix timestamp |
| Place | `location` | City, state, postal code, country and coordinates |
| Media | `primaryPhoto`, `photos`, `videos`, `hasVideo` | Photo and video links |
| Delivery | `delivery`, `shareUrl` | Pick-up and shipping flags |
| Status | `availability`, `isSold`, `isPending`, `isLive`, `listingStatus` | Whether the Facebook listing is still open |
| Seller | `seller` | Name, id, join year, ratings and badges |
| Specialised | `vehicle`, `property` | Vehicle or rental specifications |
| Source | `searchQuery`, `searchCategory`, `searchLocation`, `facebookUrl`, `scrapedAt`, `number` | How and when the record was collected |

Fields that Facebook does not show for a listing are returned as `null`, so every Facebook Marketplace record keeps the same shape.

### 🚀 How to Use Facebook Marketplace Scraper

Running Facebook Marketplace Scraper takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Marketplace Scraper from the Apify Store and go to the Input tab.
- **Step 2 – Add keywords:** fill `searchQueries` with one or more terms, for example `bike` or `sofa`.
- **Step 3 – Add locations:** fill `locations` with city slugs or names, or set `latitude` and `longitude`.
- **Step 4 – Add filters:** choose a price range, condition, sort order or delivery method if you need them.
- **Step 5 – Set a limit:** use `maxItems` to cap the number of Facebook listings per search.
- **Step 6 – Run and export:** start Facebook Marketplace Scraper, then download the dataset as JSON, CSV or Excel, or read it through the Apify API.

> **💡 Tip:** the input is prefilled with the keyword `iphone` and the city `nyc`. Replace both before you run Facebook Marketplace Scraper on your own market.

### 📥 Facebook Marketplace Scraper Input

Facebook Marketplace Scraper has 18 input fields. All of them are optional, but you need at least one way to search: `searchQueries`, `category` or `startUrls`.

| Field | Type | Description |
|---|---|---|
| `searchQueries` | array | Keywords to search for. Every query runs in every location. Prefilled with `iphone`. Clear the list to browse only a category or only run URLs. |
| `locations` | array | City slugs (`nyc`, `london`), numeric city ids or free-text names such as `Austin, TX`. Default `["nyc"]`. Leave empty for the Facebook default location. Ignored when coordinates are set. |
| `latitude` | number | Exact latitude, from -90 to 90. Use together with `longitude`. Overrides `locations`. |
| `longitude` | number | Exact longitude, from -180 to 180. Use together with `latitude`. |
| `category` | string | Category slug such as `electronics`, `vehicles`, `home` or `free`, or a numeric category id. With a keyword, results stay inside that category. |
| `startUrls` | array | Marketplace search URLs, category URLs or single listing URLs. Default empty. Filters written in the URL win over the other filters. |
| `radiusKm` | integer | Search radius in kilometres, minimum 1. Facebook accepts 1, 2, 5, 10, 20, 40, 60, 80, 100, 250 and 500, and uses 65 by default. |
| `minPrice` | number | Only listings priced at or above this amount. Minimum 0. |
| `maxPrice` | number | Only listings priced at or below this amount. Minimum 0. |
| `condition` | array | One or more of `new`, `like_new`, `good`, `fair`. Applies to keyword searches only. |
| `sortBy` | string | `suggested`, `newest`, `price_low`, `price_high` or `distance`. |
| `daysSinceListed` | string | `1`, `7` or `30` days. |
| `deliveryMethod` | string | `local_pick_up` or `shipping`. |
| `availability` | string | `in stock` or `out of stock`. |
| `requiredKeywords` | array | Keep only listings whose title contains all of these whole words. Default empty. |
| `excludeKeywords` | array | Drop listings whose title contains any of these whole words. Default empty. |
| `includeDetails` | boolean | Fetch the full listing page for each result. Default `true`. Turn it off for a faster run that keeps only what the search shows. |
| `maxItems` | integer | Maximum listings per search. Default 30, minimum 1. |

Keyword matching ignores case and uses whole words, so `case` matches `cases` but not `bookcase`. It is not applied to single listing URLs.

Here is a sample input for Facebook Marketplace Scraper that finds used phones in two cities:

```json
{
  "searchQueries": ["iphone 15"],
  "locations": ["nyc", "Austin, TX"],
  "minPrice": 300,
  "maxPrice": 900,
  "condition": ["like_new", "good"],
  "sortBy": "newest",
  "daysSinceListed": "7",
  "excludeKeywords": ["case", "broken"],
  "includeDetails": true,
  "maxItems": 40
}
```

### 📤 Facebook Marketplace Scraper Output

Facebook Marketplace Scraper writes one record per Facebook listing to the default dataset. This is a sample record with full details:

```json
{
  "id": "100000000000123",
  "url": "https://www.facebook.com/marketplace/item/100000000000123/",
  "title": "iPhone 15 Pro 256GB",
  "description": "Used for six months, always in a case. Battery health 94 percent.",
  "price": { "amount": 650, "currency": "USD", "currencySymbol": "$", "formatted": "$650" },
  "originalPrice": null,
  "condition": "Used - like new",
  "category": { "id": "1557869527812749", "slug": "electronics", "name": "Electronics", "topLevel": "Electronics" },
  "postedAt": "2026-11-04T20:52:28.000Z",
  "location": { "text": "Brooklyn, NY", "city": "Brooklyn", "state": "NY", "postalCode": "11201", "country": "US", "latitude": 40.69, "longitude": -73.99 },
  "primaryPhoto": "https://example.com/photo1.jpg",
  "photos": ["https://example.com/photo1.jpg", "https://example.com/photo2.jpg"],
  "delivery": { "types": ["IN_PERSON"], "shippingOffered": false, "localPickup": true },
  "availability": "available",
  "isSold": false,
  "seller": { "name": "Sample Seller", "id": "100000000000001", "type": "User", "joinedFacebookYear": 2014, "ratingsArePrivate": false },
  "vehicle": null,
  "property": null,
  "detailsFetched": true,
  "number": 1,
  "searchQuery": "iphone 15",
  "searchCategory": null,
  "searchLocation": { "input": "nyc", "slug": "nyc", "latitude": 40.7142, "longitude": -74.0064, "radiusKm": 65, "resolvedBy": "facebook city slug" },
  "facebookUrl": "https://www.facebook.com/marketplace/nyc/search?query=iphone%2015",
  "scrapedAt": "2026-11-07T09:15:23.000Z"
}
```

#### 🧾 Output field guide

- `id`, `url` and `title` identify the listing, and `price` holds the amount and formatted text.
- `description`, `condition`, `attributes` and `category` come from the listing page when `includeDetails` is on.
- `location` gives the city and state and, when shown, postal code and coordinates.
- `photos`, `videos` and `primaryPhoto` link to the Facebook listing media.
- `delivery` shows pick-up and shipping flags, and `availability` shows sold, pending or available.
- `seller` lists the name, id, join year, rating counts and badges Facebook displays.
- `vehicle` and `property` appear only for vehicle and rental listings.
- `detailsFetched` is `false` when the listing page was skipped or could not be read, and `detailsError` explains why.
- `searchQuery`, `searchLocation`, `facebookUrl`, `scrapedAt` and `number` tell you which Facebook search found the record.

### 🗺️ How to Scrape Facebook Marketplace Listings by City or Coordinates

To scrape Facebook Marketplace listings for a specific town, add its slug or name to `locations`. Facebook Marketplace Scraper matches a name such as `Austin, TX` to a Facebook city, and falls back to a map search when no city page exists.

For a precise area, set `latitude`, `longitude` and `radiusKm`. Coordinates override `locations`, so one Facebook search covers the circle you define.

Each keyword and location pair is a separate Facebook search with its own `maxItems` limit. A Facebook listing found by several searches is returned once.

### 🚗 How to Browse a Facebook Marketplace Category Without a Keyword

Facebook shows category pages to logged-out visitors only for `vehicles` and `propertyrentals`. To browse one of them, set `category` and clear `searchQueries`.

Any other category needs a keyword. Combine `category` such as `electronics` with a keyword such as `iphone`, and Facebook Marketplace Scraper keeps the results inside that category. The `condition` filter applies to keyword searches only.

### 🎯 Facebook Marketplace Scraper Use Cases

Facebook Marketplace Scraper fits many workflows that depend on public Facebook listings.

- **Resale research:** use Facebook Marketplace Scraper to compare asking prices for one product across cities.
- **Sourcing:** find underpriced items by sorting on price and applying `maxPrice`.
- **Market monitoring:** schedule Facebook Marketplace Scraper with `daysSinceListed` set to `1` to see new listings daily.
- **Competitor tracking:** watch what local sellers offer on Facebook in your niche.
- **Data feeds:** send structured Facebook Marketplace Scraper output to a dashboard or database.

### 💰 Pricing

Facebook Marketplace Scraper runs on the Apify platform. The current pricing is shown on the Actor page in the Apify Store, and your cost depends on the number of results and the resources used by the run.

> **💡 Cost tip:** start with a small `maxItems` value such as 10 or 20, and turn `includeDetails` off when you only need titles, prices and photos. Increase the limit once the data looks right.

### 💡 Tips and Best Practices

- **Start small:** a short test run of Facebook Marketplace Scraper confirms the keyword, city and filters first.
- **Clear the sample values:** remove the prefilled `iphone` and `nyc` if you only want your own searches or URLs.
- **Expect public data only:** Facebook Marketplace Scraper returns what a logged-out visitor sees on Facebook. Some listings are unavailable or hide fields.
- **Schedule regular runs:** use Apify schedules to keep a Facebook Marketplace price log up to date.

> **⚠️ Important:** only collect data you are allowed to use. Facebook listings can contain personal data, so follow Facebook's terms and privacy rules such as GDPR. This Actor is not affiliated with or endorsed by Meta.

### ❓ Frequently Asked Questions

#### 🔎 What is Facebook Marketplace Scraper?

Facebook Marketplace Scraper is an Apify Actor that collects public Facebook Marketplace listings by keyword and location. It returns prices, photos, descriptions, condition, seller and location in a structured format.

#### 🧭 How do I scrape Facebook Marketplace listings?

Open Facebook Marketplace Scraper, enter a keyword in `searchQueries` and a city in `locations`, set `maxItems` and start the run. The listings appear in the dataset.

#### 🏙️ Can I scrape Facebook Marketplace in several cities at once?

Yes. Add several entries to `locations`, and Facebook Marketplace Scraper runs each keyword and city pair as its own search with up to `maxItems` listings.

#### 💲 Can I filter Facebook Marketplace listings by price and condition?

Yes. Facebook Marketplace Scraper supports `minPrice`, `maxPrice` and `condition`, plus sorting by newest, price or distance and a listing age of 1, 7 or 30 days.

#### 🔐 Does Facebook Marketplace Scraper need a Facebook login?

No. Facebook Marketplace Scraper reads publicly visible listings, so no account, cookies or API key are required.

#### 📦 What data does Facebook Marketplace Scraper return?

Each Facebook listing record includes ids, links, title, price, description, condition, category, photos, location, delivery flags, status, seller details and source information.

#### 🚗 Can I scrape Facebook Marketplace cars or rentals?

Yes. Facebook Marketplace Scraper can browse `vehicles` or `propertyrentals` without a keyword, and adds `vehicle` and `property` blocks to those listings.

#### 🔗 Can I scrape a single Facebook Marketplace listing URL?

Yes. Paste listing URLs into `startUrls`. Facebook Marketplace Scraper reads them in full and does not count them toward `maxItems`.

#### 🧐 Why are some fields empty?

Listings show different details. When Facebook hides a value, Facebook Marketplace Scraper returns `null`. Turning `includeDetails` off also removes the description.

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

Facebook Marketplace Scraper collects public Facebook content only. You are responsible for how you use the data, so check Facebook's terms, local laws and privacy rules before you store or share personal information.

### 📞 Support

If you have questions about Facebook Marketplace Scraper, ideas for new fields or a search that does not return the expected Facebook listings, send the input you used.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

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

Keywords to search for, e.g. iphone. Every query is searched in every location (one search per query x location). Clear the list to only browse a 'Category' or only run 'Start URLs'.

## `locations` (type: `array`):

Marketplace city slugs (nyc, london, austin), numeric city-page ids, or free-text city names such as Austin, TX (matched to a Facebook city, with an OpenStreetMap geocoder fallback). Leave empty to use Facebook's default Marketplace location. Ignored when 'Latitude' and 'Longitude' are set.

## `latitude` (type: `number`):

Optional explicit latitude. Set it together with 'Longitude' to search around exact coordinates; this overrides 'Locations'.

## `longitude` (type: `number`):

Optional explicit longitude. Set it together with 'Latitude'.

## `category` (type: `string`):

Optional category slug (e.g. electronics, vehicles, home, free) or numeric category id. With a search query the results are limited to that category. Without a query the category page itself is browsed (clear 'Search queries'), which Facebook serves logged-out only for 'vehicles' and 'propertyrentals'.

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

Marketplace search or category URLs (https://www.facebook.com/marketplace/nyc/search?query=bike) or single listing URLs (https://www.facebook.com/marketplace/item/<id>/). The filters below are applied to search / category URLs, but filters written in the URL itself win. If you leave 'Search queries' at the default example (iphone), only these URLs are run. Listing URLs are always fetched in full and are not counted by 'Max items'.

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

Search radius around the location in kilometres. Facebook's default is 65; Facebook accepts 1, 2, 5, 10, 20, 40, 60, 80, 100, 250 and 500.

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

Only listings priced at or above this amount.

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

Only listings priced at or below this amount.

## `condition` (type: `array`):

Only listings in one of the selected conditions. Applies to keyword searches (not to browsing a category without a keyword).

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

Order of the results.

## `daysSinceListed` (type: `string`):

Only listings posted within this many days.

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

Only listings offered with this delivery method.

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

Only listings that are in stock or out of stock.

## `requiredKeywords` (type: `array`):

Keep only listings whose title contains ALL of these words (case-insensitive, whole words; 'case' also matches 'cases' but not 'bookcase'). Not applied to listing URLs.

## `excludeKeywords` (type: `array`):

Drop listings whose title contains ANY of these words (same matching rules as 'Required keywords'). Not applied to listing URLs.

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

One extra request per listing: description, all photos, condition, category, seller (name, id, join date, ratings), exact coordinates, delivery / shipping flags and status. Turn off for a faster run that keeps only what the search results show.

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

Maximum number of listings per search - every query x location combination and every search / category URL gets its own limit, so N searches return up to N x this value.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone"
  ],
  "locations": [
    "nyc"
  ],
  "startUrls": [],
  "requiredKeywords": [],
  "excludeKeywords": [],
  "includeDetails": true,
  "maxItems": 15
}
```

# Actor output Schema

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

Structured records extracted by Facebook Marketplace Scraper and stored in the run's default dataset.

# 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": [
        "iphone"
    ],
    "locations": [
        "nyc"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/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": ["iphone"],
    "locations": ["nyc"],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/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": [
    "iphone"
  ],
  "locations": [
    "nyc"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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