# Facebook Marketplace Listings Scraper (`bakos_bence/facebook-marketplace-hu-re`) Actor

Scrape Facebook Marketplace listings worldwide without login. Export prices with currency, titles, cities, images, and listing URLs. Seller PII never written. Prefers Residential proxy in the target country. Unofficial — not affiliated with Meta or Facebook.

- **URL**: https://apify.com/bakos\_bence/facebook-marketplace-hu-re.md
- **Developed by:** [Bakos Bence](https://apify.com/bakos_bence) (community)
- **Categories:** Social media, E-commerce
- **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.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### What does Facebook Marketplace Listings Scraper do?

**Scrape [Facebook Marketplace](https://www.facebook.com/marketplace/) listings worldwide** without a Facebook login. Get **prices with currency, titles, cities, listing URLs, and images** from any category, keyword search, or pasted Marketplace URL. Seller names, phones, and profile URLs are **never written**.

**Unofficial.** Not affiliated with, endorsed by, or maintained by Meta or Facebook.

**Dashboards:** connect **Power BI**, **Tableau**, **Looker Studio**, or **Qlik** to the dataset API — see *Export to Power BI, Tableau, Looker Studio & Qlik* near the end. **AI agents:** paste this Actor’s Store page URL into an Apify-capable agent (MCP / Claude / Cursor with Apify), create an Apify account and API token once, and the agent can run the Actor and wire up the output.

#### Why this Actor?

- 🛒 Works across **Marketplace categories** (electronics, vehicles, home, apparel, property, and more)
- 🔗 Accepts **start URLs** (drop-in for the official Apify Marketplace scraper) or city / lat-lon filters
- 📍 Uses **map lat/lon + radius** feeds (more reliable than city slug URLs alone)
- 💱 Prices kept **with currency** when Facebook exposes them
- 🔒 **No login / cookies**; seller PII stripped by design
- 🛡️ Prefers Apify **Residential** proxy in your target country

#### How to run

1. Open this Actor in [Apify Console](https://console.apify.com/).
2. Click **Start** on the prefilled New York electronics sample (`maxResults` 5).
3. Set Residential proxy country to match your market (US, GB, HU, …).
4. Export the dataset or pull via API.

```json
{
  "cities": "newyork",
  "categories": "electronics",
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

#### How much does it cost?

**Pay per event (PPE):** Actor start + each listing **result**. On Free, results are about **$2.00 / 1,000**; paid plans are lower (see the Pricing tab). Platform usage is included. Undercuts the official Apify Facebook Marketplace Scraper listing PPE.

#### Input

| Field | Description |
|-------|-------------|
| `startUrls` | Marketplace category / search / city URLs (optional) |
| `cities` / `location` | City labels with known map centers, or freeform slugs |
| `latitude` / `longitude` | Optional exact map center |
| `categories` | e.g. `electronics`, `vehicles`, `propertyforsale` |
| `searchKeyword` / `query` | Optional keyword search |
| `maxResults` / `resultsLimit` | Listing cap (prefill 5) |
| `usePriceBands` | Shard by price for deeper coverage (default off) |
| `radiusKm` | Optional search radius override |
| `proxyConfiguration` | Apify Residential + target country recommended |

#### Sample output

```json
{
  "listingId": "917807718069871",
  "title": "iPhone 14 Pro 128GB",
  "url": "https://www.facebook.com/marketplace/item/917807718069871",
  "category": "electronics",
  "price": 650,
  "currency": "USD",
  "city": "New York",
  "imageUrl": "https://scontent…",
  "scrapedAt": "2026-09-04T08:00:00+00:00"
}
```

#### Tips

- Prefer **Residential** proxy in the **same country** as the Marketplace region you target.
- City **slug** Marketplace URLs often rewrite to IP-local empty shells; this Actor prefers geo centers.
- Guest GraphQL pagination is optional and often rate-limited — turn on price-band sharding for deeper coverage.
- Seller personal data is never emitted.

#### Related Actors

- [Ingatlan.com Listings](https://apify.com/bakos_bence/ingatlan-com) — Hungary portal sale/rent
- [Zenga.hu Listings](https://apify.com/bakos_bence/zenga-listings) — OTP Otthon / zenga.hu
- [Otodom Listings](https://apify.com/bakos_bence/otodom-listings) — Poland property portal

#### Issues

Report bugs or empty-feed cases on the Actor’s [Issues](https://console.apify.com/actors/bakos_bence~facebook-marketplace-hu-re/issues) tab.

#### Export to Power BI, Tableau, Looker Studio & Qlik

Use the run’s **dataset API URL** (JSON/CSV) as a web data source in your BI tool. Schedule the Actor, then refresh the dataset connection on a matching cadence.

#### Disclaimer

This Actor is an **independent, unofficial** tool. Meta and Facebook are trademarks of their respective owners. Use scraped data in line with applicable law; do not use this Actor to collect personal data of natural persons.

# Actor input Schema

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

Paste Facebook Marketplace category, search, or city URLs (drop-in for the official Apify Marketplace scraper). Optional when location + category are set.

## `cities` (type: `string`):

City labels with known map centers (e.g. newyork, london, prague, budapest) or freeform Marketplace location slugs. Alias: location.

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

Drop-in alias for cities (curious\_coder / blackfalcon key).

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

Optional map-center latitude. When set with Longitude, overrides city lookup.

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

Optional map-center longitude. Pair with Latitude.

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

Comma-separated Marketplace categories: vehicles, propertyforsale, propertyrentals, apparel, electronics, entertainment, family, free, garden, hobbies, home, home-improvements, instruments, office-supplies, pets, sports, toys, classifieds.

## `searchKeyword` (type: `string`):

Optional keyword search (uses Marketplace search with your location). Alias: query.

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

Drop-in alias for searchKeyword.

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

Keep at 5 for a cheap first run. Alias: resultsLimit.

## `resultsLimit` (type: `integer`):

Drop-in alias for maxResults (official Apify Facebook Marketplace Scraper key).

## `usePriceBands` (type: `boolean`):

Turn on to deepen coverage via price shards (useful for large categories).

## `splitBands` (type: `boolean`):

Leave on to split bands that still report more pages (only when price bands are on).

## `multiSort` (type: `boolean`):

Turn on to also fetch price/distance sort variants.

## `tryGraphql` (type: `boolean`):

Leave off unless testing — often rate-limited for logged-out clients.

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

Leave empty for the default radius (about 40–65 km depending on city size).

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

Optional minimum price in the local Marketplace currency.

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

Optional maximum price in the local Marketplace currency.

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

Optional recency filter (e.g. 1, 7, 30).

## `delaySeconds` (type: `number`):

Pause between feed requests to reduce empty shells.

## `strictGeo` (type: `boolean`):

Turn on to skip feeds that look empty or junk-dominated.

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

Keep Apify Residential and set the country to match your Marketplace region (US, GB, HU, …).

## Actor input object example

```json
{
  "cities": "newyork",
  "categories": "electronics",
  "maxResults": 5,
  "usePriceBands": false,
  "splitBands": true,
  "multiSort": false,
  "tryGraphql": false,
  "delaySeconds": 0.6,
  "strictGeo": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

No description

# 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 = {
    "cities": "newyork",
    "categories": "electronics",
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bakos_bence/facebook-marketplace-hu-re").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 = {
    "cities": "newyork",
    "categories": "electronics",
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bakos_bence/facebook-marketplace-hu-re").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 '{
  "cities": "newyork",
  "categories": "electronics",
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call bakos_bence/facebook-marketplace-hu-re --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bakos_bence/facebook-marketplace-hu-re"
        }
    }
}

```

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/q1luDHGonVNSEBkQh/builds/FXPTUZ2wDtaPquibk/openapi.json
