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

A facebook marketplace scraper: search listings by keyword and location, look up a single listing, or find place coordinates for your searches. Export JSON, CSV or Excel.

- **URL**: https://apify.com/icoe-man/facebook-marketplace-scraper.md
- **Developed by:** [Icoe Man](https://apify.com/icoe-man) (community)
- **Categories:** Social media, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

Give this Actor keywords and a location and it collects public Marketplace listings: title, price, photos and place. You can also look up one listing by link, or find the coordinates of a place. Results arrive as a clean table you can download or pass on to other tools.

### What it does

Pick a **Mode**, fill in the fields listed for it and start the run. Each run collects one kind of result; fields that belong to other modes are ignored. Links must be full addresses: short links are not accepted, so open them first and copy the full address. Pick **Live** under **Freshness** to always collect fresh data.

### Modes

#### Marketplace search

Searches public Marketplace listings by keyword around a latitude and longitude. Find coordinates with the Locations mode. Mode `marketplace-search`: fill in **Keywords** (up to 100 entries), and **Latitude**, **Longitude**. For each entry, the Actor collects up to **Max results per target** products (100 by default, at most 1000). Each product becomes one item in the dataset, charged as **Marketplace search**.

Each product looks like this:

```json
{
  "status": "ok",
  "type": "product",
  "platform": "facebook",
  "id": "1000000000000001",
  "url": "https://www.facebook.com/marketplace/item/1000000000000001/",
  "title": "A short example sentence for illustration.",
  "price": {
    "amount": 40
  },
  "seller": {},
  "images": [
    "https://scontent.xx.fbcdn.net/fixture/0a1b2c3d4e51.jpg"
  ],
  "details": {
    "facebook": {
      "locationText": null
    }
  },
  "collectedAt": "2026-11-11T05:33:07Z",
  "input": {
    "keyword": "bicycle",
    "latitude": "40.7142",
    "longitude": "-74.0064",
    "maxItems": 30
  }
}
```

#### Marketplace item

Looks up one public Marketplace listing by its link. Paste a listing link taken from a Marketplace search run. Mode `marketplace-item`: fill in **Listing links** (up to 100 entries). The Actor returns one product for each entry. Each product becomes one item in the dataset, charged as **Marketplace item**.

Each product looks like this:

```json
{
  "status": "ok",
  "type": "product",
  "platform": "facebook",
  "id": "1000000000000001",
  "url": "https://www.facebook.com/marketplace/item/1000000000000001/",
  "title": "A short example sentence for illustration.",
  "description": "Another short example sentence.",
  "price": {
    "amount": 40,
    "currency": "USD"
  },
  "seller": {},
  "images": [
    "https://scontent.xx.fbcdn.net/fixture/0a1b2c3d4e52.jpg",
    "https://scontent.xx.fbcdn.net/fixture/0a1b2c3d4e53.jpg",
    "https://scontent.xx.fbcdn.net/fixture/0a1b2c3d4e54.jpg"
  ],
  "details": {
    "facebook": {
      "locationText": "Newark, NJ"
    }
  },
  "collectedAt": "2026-11-11T05:35:40Z",
  "input": {
    "url": "https://www.facebook.com/marketplace/item/1000000000000001/",
    "maxItems": 1
  }
}
```

#### Locations

Finds Marketplace places by name and returns their coordinates, to use in Marketplace search. Mode `marketplace-locations`: fill in **Keywords** (up to 100 entries). For each entry, the Actor collects up to **Max results per target** places (100 by default, at most 100). Each place becomes one item in the dataset, charged as **Marketplace locations**.

Each place looks like this:

```json
{
  "status": "ok",
  "type": "place",
  "platform": "facebook",
  "id": "110334498996314",
  "url": null,
  "name": "Manhattan, NY 03501",
  "address": "Manhattan, NY 03501",
  "city": "New York",
  "latitude": 40.7779,
  "longitude": -73.9675,
  "details": null,
  "collectedAt": "2026-11-11T05:32:52Z",
  "input": {
    "keyword": "New York",
    "maxItems": 100
  }
}
```

### Use cases

- Price research: compare asking prices for an item across an area.
- Market monitoring: track how many listings appear for a product.
- Local demand: find what is offered around a city.
- Item checks: look up a listing by its link.

### Input

| Field | Title | Description |
| --- | --- | --- |
| `mode` | Mode | What to collect. Each run collects one kind of result; fill in the fields listed for that mode. |
| `keywords` | Keywords | Words to search Marketplace listings for, or place names to look up, like bicycle or New York. |
| `latitude` | Latitude | Latitude of the search centre, like 40.7128. Find coordinates with the Locations mode. |
| `longitude` | Longitude | Longitude of the search centre, like -74.0060. Find coordinates with the Locations mode. |
| `itemUrls` | Listing links | Full Marketplace listing links, like https://www.facebook.com/marketplace/item/1234567890123456/. |
| `maxItems` | Max results per target | The most results to collect for each target. Each mode caps it at its own maximum; leave it empty for the mode default. Single-lookup modes return one item per target, whatever this is set to: Marketplace item. |
| `freshness` | Freshness | Standard may return recently collected data, which is faster. Live always collects fresh data. |

Example:

```json
{
  "mode": "marketplace-search",
  "keywords": [
    "bicycle"
  ],
  "latitude": "40.7128",
  "longitude": "-74.0060",
  "maxItems": 20,
  "freshness": "standard"
}
```

### Output

Each mode has its own table view in the dataset; the item shapes are shown under **Modes**.

Every item carries a `status` field. A target that fails gives one item with `status: "error"` and an `error` object with a `code` and a `message`. A mode that is missing a field it needs gives one such item and collects nothing.

### Pricing

You pay per result. Prices are in USD per 1,000 results and depend on your Apify plan.

| Event | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Marketplace item | $4.687 | $3.750 | $3.375 | $2.500 | $2.500 | $2.500 |
| Marketplace locations | $4.687 | $3.750 | $3.375 | $2.500 | $2.500 | $2.500 |
| Marketplace search | $4.687 | $3.750 | $3.375 | $2.500 | $2.500 | $2.500 |

Errors and empty results are never charged, and the run stops when it reaches your spending limit.

Free plan: up to 10 results per run and 20 runs per day.

### FAQ

#### How do I find the latitude and longitude for a search?

Run the Locations mode with a place name such as New York. Each result carries the place name and its latitude and longitude, which you can paste into the Marketplace search mode.

#### What does each mode return?

Marketplace search gives listings for keywords around a location. Marketplace item looks up one listing by link. Locations finds places by name, with coordinates.

#### Do I need to log in or share a Facebook account?

No. The Actor collects only public information and needs no login or cookies.

#### How many results can I collect, and what do I pay?

Set the maximum number of results per target in the input. You pay only for the results delivered, and a run stops when it reaches your spending limit. Errors and empty results are not charged.

#### Is this Actor affiliated with Facebook?

No. It is an independent tool, not affiliated with, endorsed by or sponsored by Facebook or Meta. It collects only information that is shown publicly on Facebook.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by Facebook. All trademarks belong to their respective owners.

# Actor input Schema

## `mode` (type: `string`):

What to collect. Each run collects one kind of result; fill in the fields listed for that mode.

## `keywords` (type: `array`):

Words to search Marketplace listings for, or place names to look up, like bicycle or New York.

## `latitude` (type: `string`):

Latitude of the search centre, like 40.7128. Find coordinates with the Locations mode.

## `longitude` (type: `string`):

Longitude of the search centre, like -74.0060. Find coordinates with the Locations mode.

## `itemUrls` (type: `array`):

Full Marketplace listing links, like https://www.facebook.com/marketplace/item/1234567890123456/.

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

The most results to collect for each target. Each mode caps it at its own maximum; leave it empty for the mode default. Single-lookup modes return one item per target, whatever this is set to: Marketplace item.

## `freshness` (type: `string`):

Standard may return recently collected data, which is faster. Live always collects fresh data.

## Actor input object example

```json
{
  "mode": "marketplace-search",
  "keywords": [
    "bicycle"
  ],
  "latitude": "40.7128",
  "longitude": "-74.0060",
  "itemUrls": [
    "https://www.facebook.com/marketplace/item/1000000000000001/"
  ],
  "maxItems": 20,
  "freshness": "standard"
}
```

# Actor output Schema

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

All collected items in the 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 = {
    "mode": "marketplace-search",
    "keywords": [
        "bicycle"
    ],
    "itemUrls": [
        "https://www.facebook.com/marketplace/item/1000000000000001/"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/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 = {
    "mode": "marketplace-search",
    "keywords": ["bicycle"],
    "itemUrls": ["https://www.facebook.com/marketplace/item/1000000000000001/"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/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 '{
  "mode": "marketplace-search",
  "keywords": [
    "bicycle"
  ],
  "itemUrls": [
    "https://www.facebook.com/marketplace/item/1000000000000001/"
  ],
  "maxItems": 20
}' |
apify call icoe-man/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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