# Facebook Marketplace Price Intelligence & Deal Finder (`alpha-scraper/facebook-marketplace-price-intelligence-deal-finder`) Actor

\[ 1k/1.49$ ] Facebook Marketplace Price Intelligence & Deal Finder samples Marketplace search results into market insight: price statistics with outlier removal, a deal score and label per listing (deal, fair, overpriced) and one summary per search. Best deals can be enriched.

- **URL**: https://apify.com/alpha-scraper/facebook-marketplace-price-intelligence-deal-finder.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 Price Intelligence & Deal Finder

**Facebook Marketplace Price Intelligence & Deal Finder** turns a Facebook Marketplace search into market intelligence. Give Facebook Marketplace Price Intelligence & Deal Finder a keyword such as `iphone 15 pro` and a city such as `nyc`, and it collects a sample of public Facebook listings, removes price outliers, and scores every listing against the median price.

Facebook Marketplace Price Intelligence & Deal Finder gives each Facebook listing a deal score and a label such as `deal`, `fair`, `overpriced` or `suspiciously_low`. Each search also returns one summary record with price statistics and the top deals. No Facebook account, login or API key is needed.

> **📌 At a glance**
>
> - **Input:** keywords, cities or coordinates, price and condition filters, title keyword rules
> - **Analysis:** median, mean and percentiles, outlier removal, deal score and deal label
> - **Output:** one summary record per search plus listing records, highest deal score first
> - **Control:** `maxItems` limits the listings returned and `sampleSize` sets how many listings feed the statistics

Resellers, buyers and market analysts use Facebook Marketplace Price Intelligence & Deal Finder to see what a fair price looks like on Facebook before they buy, sell or source stock.

### 🔹 Facebook Marketplace Price Intelligence & Deal Finder – Key Features

Facebook Marketplace Price Intelligence & Deal Finder focuses on pricing signals instead of raw listing dumps.

- **Price statistics:** Facebook Marketplace Price Intelligence & Deal Finder reports count, min, max, median, mean, percentiles, standard deviation and IQR for every Facebook search.
- **Outlier removal:** choose `iqr`, `mad` or `none` so scam prices and placeholders on Facebook do not distort the median.
- **Deal score and label:** Facebook Marketplace Price Intelligence & Deal Finder compares every listing with the outlier-free median.
- **Adjustable thresholds:** Facebook Marketplace Price Intelligence & Deal Finder lets you decide how far below the median counts as a deal and how far above counts as overpriced.
- **Clean samples:** required and excluded title words keep accessories and broken units out of the Facebook comparison.
- **Top deals enriched:** Facebook Marketplace Price Intelligence & Deal Finder can open the strongest deals for description, condition, seller and photos.
- **Deals-only mode:** Facebook Marketplace Price Intelligence & Deal Finder can return just the Facebook listings flagged as deals.

> **✅ Why use this Actor**
>
> Facebook Marketplace Price Intelligence & Deal Finder replaces manual price checking. Facebook Marketplace Price Intelligence & Deal Finder collects the sample, does the statistics and ranks the Facebook listings for you.

### 🔍 What Data Does Facebook Marketplace Price Intelligence & Deal Finder Extract?

The Facebook Marketplace Price Intelligence & Deal Finder dataset holds two record types, told apart by the `type` field.

| Record | Key fields | What you get |
|---|---|---|
| `summary` | `priceStats`, `outlierBounds`, `thresholds`, `dealsFound`, `bestDeals` | One Facebook market overview per keyword and location |
| `listing` | `price`, `dealScore`, `dealLabel`, `priceVsMedianPct`, `rank`, `market` | One scored Facebook Marketplace listing |

Listing records also carry the usual Facebook Marketplace fields: `id`, `url`, `title`, `category`, `postedAt`, `location`, `photos`, `delivery`, `availability` and `seller`. The fields `description`, `condition` and `attributes` are added for enriched top deals.

### 🚀 How to Use Facebook Marketplace Price Intelligence & Deal Finder

Running Facebook Marketplace Price Intelligence & Deal Finder takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Marketplace Price Intelligence & Deal Finder and go to the Input tab.
- **Step 2 – Add the Facebook search:** fill `searchQueries` and `locations`, or set `latitude` and `longitude`.
- **Step 3 – Clean the sample:** adjust `requiredKeywords` and `excludeKeywords` for your product.
- **Step 4 – Set sizes:** use `sampleSize` for the statistics and `maxItems` for the records returned.
- **Step 5 – Run and export:** download the results as JSON, CSV or Excel, or read them through the Apify API.

> **💡 Tip:** the form is prefilled for iPhones, with `15 pro` as a required keyword and accessory words in `excludeKeywords`. Change both before you analyse another product.

### 📥 Facebook Marketplace Price Intelligence & Deal Finder Input

Facebook Marketplace Price Intelligence & Deal Finder has 24 input fields. All are optional, but `searchQueries` is needed to run a search.

| Field | Type | Description |
|---|---|---|
| `searchQueries` | array | Facebook Marketplace keywords to analyse. Each query runs separately in every location. Prefilled with `iphone 15 pro`. |
| `locations` | array | Facebook city slugs, city names or numeric city ids. Default `["nyc"]`. Ignored when both coordinates are set. |
| `latitude` | number | Latitude from -90 to 90. Use with `longitude` instead of `locations`. |
| `longitude` | number | Longitude from -180 to 180. Use with `latitude`. |
| `radiusKm` | number | Search radius in km, minimum 0. Empty uses the Facebook default. |
| `category` | string | Optional category slug or id, such as `electronics`. If it cannot be resolved, all categories are searched. |
| `minPrice` | number | Only Facebook listings at or above this price. |
| `maxPrice` | number | Only Facebook listings at or below this price. |
| `condition` | array | `new`, `like_new`, `good` or `fair`. Empty keeps all Facebook conditions. |
| `sortBy` | string | `best_match`, `creation_time_descend`, `creation_time_ascend`, `price_ascend`, `price_descend`, `distance_ascend`, `distance_descend`, `vehicle_mileage_ascend`, `vehicle_mileage_descend`, `vehicle_year_descend` or `vehicle_year_ascend`. The sample uses the first listings in this order. |
| `daysSinceListed` | integer | Only Facebook listings posted in the last N days, minimum 1. |
| `deliveryMethod` | string | `local_pick_up` or `shipping`. |
| `requiredKeywords` | array | The title must contain all of these words or phrases. Prefilled with `15 pro`. |
| `excludeKeywords` | array | Facebook listings whose title contains any of these are dropped. Defaults to a list of accessory and broken-item words. |
| `outlierMethod` | string | `iqr`, `mad` or `none`. Default `iqr`. Needs at least 5 priced listings. |
| `outlierK` | number | Width of the accepted band. Empty uses 1.5 for `iqr` and 3 for `mad`. Larger values remove fewer outliers. |
| `ignorePricesBelow` | number | Prices below this are treated as placeholders and excluded from the statistics. Default 1. Use 0 to keep all. |
| `dealThresholdPct` | number | Percent below the median that flags a deal. Default 20. |
| `overpricedThresholdPct` | number | Percent above the median that flags an overpriced listing. Default 25. |
| `onlyDeals` | boolean | Return only deals, plus the summary record. Default `false`. |
| `enrichDeals` | boolean | Open top deals for description, condition, seller and photos. Default `true`. |
| `sampleSize` | integer | Facebook listings used for the statistics, minimum 1. Never smaller than `maxItems`. Use 100-300 for a robust sample. |
| `maxDealDetails` | integer | How many top deals are enriched from their Facebook pages. Default 10, minimum 1. |
| `maxItems` | integer | Facebook listings returned per search and location. Default 30, minimum 1. |

Here is a sample input that studies used consoles in one city:

```json
{
  "searchQueries": ["ps5 console"],
  "locations": ["chicago"],
  "radiusKm": 40,
  "minPrice": 100,
  "maxPrice": 700,
  "condition": ["like_new", "good"],
  "sortBy": "creation_time_descend",
  "daysSinceListed": 14,
  "requiredKeywords": ["ps5"],
  "excludeKeywords": ["controller only", "for parts"],
  "outlierMethod": "iqr",
  "dealThresholdPct": 20,
  "sampleSize": 150,
  "maxItems": 30
}
```

### 📤 Facebook Marketplace Price Intelligence & Deal Finder Output

Facebook Marketplace Price Intelligence & Deal Finder writes one `summary` record per search and location, followed by `listing` records. This is a sample summary:

```json
{
  "type": "summary",
  "searchQuery": "ps5 console",
  "location": { "input": "chicago", "slug": "chicago", "latitude": 41.88, "longitude": -87.63, "radiusKm": 40, "resolvedBy": "facebook city slug" },
  "category": null,
  "currency": "USD",
  "listingsInSample": 150,
  "listingsWithValidPrice": 146,
  "listingsWithoutValidPrice": 4,
  "outliersRemoved": 5,
  "outlierMethod": "iqr",
  "outlierBounds": { "low": 180.5, "high": 620.5 },
  "priceStats": { "count": 141, "min": 190, "p10": 280, "p25": 340, "median": 400, "mean": 408.3, "p75": 470, "p90": 540, "max": 610, "stdev": 96.4, "iqr": 130 },
  "thresholds": { "dealThresholdPct": 20, "overpricedThresholdPct": 25, "ignorePricesBelow": 1 },
  "dealsFound": 18,
  "overpricedFound": 9,
  "suspiciouslyLowCount": 3,
  "bestDeals": [
    { "id": "100000000000201", "title": "PS5 disc console with controller", "price": "$250", "priceAmount": 250, "priceVsMedianPct": -37.5, "dealScore": 88, "url": "https://www.facebook.com/marketplace/item/100000000000201/" }
  ],
  "pagesFetched": 11,
  "stopReason": "maxItems reached",
  "searchUrl": "https://www.facebook.com/marketplace/chicago/search?query=ps5%20console",
  "scoringNote": "dealScore = clamp(50 - priceVsMedianPct, 0, 100); median taken after outlier removal",
  "scrapedAt": "2026-11-07T10:05:00.000Z"
}
```

A scored listing record looks like this:

```json
{
  "type": "listing",
  "rank": 1,
  "id": "100000000000201",
  "url": "https://www.facebook.com/marketplace/item/100000000000201/",
  "title": "PS5 disc console with controller",
  "price": { "amount": 250, "currency": "USD", "currencySymbol": "$", "formatted": "$250" },
  "category": { "id": "1557869527812749", "slug": "video-games", "name": "Video games", "topLevel": "Electronics" },
  "postedAt": "2026-11-06T18:20:00.000Z",
  "location": { "text": "Chicago, IL", "city": "Chicago", "state": "IL" },
  "availability": "available",
  "seller": { "name": "Sample Seller", "id": "100000000000001", "type": "User", "joinedFacebookYear": 2016 },
  "condition": "Used - good",
  "detailsFetched": true,
  "priceValid": true,
  "isOutlier": false,
  "outlierSide": null,
  "priceVsMedianAmount": -150,
  "priceVsMedianPct": -37.5,
  "pricePercentile": 2.1,
  "dealScore": 88,
  "isDeal": true,
  "isOverpriced": false,
  "dealLabel": "deal",
  "market": { "medianPrice": 400, "meanPrice": 408.3, "sampleCount": 141, "currency": "USD" },
  "searchQuery": "ps5 console",
  "scrapedAt": "2026-11-07T10:05:00.000Z"
}
```

#### 🧾 Output field guide

- `priceStats` describes the outlier-free sample, and `priceStatsBeforeOutlierRemoval` shows the same numbers with outliers kept.
- `outlierBounds` is the accepted price band, and `outliersRemoved` counts the prices cut.
- `dealsFound`, `overpricedFound` and `suspiciouslyLowCount` count labelled Facebook listings.
- `dealLabel` is `deal`, `fair`, `overpriced`, `suspiciously_low`, `outlier_high` or `no_valid_price`.
- `dealScore` is 0 to 100 and stays `null` for outliers, so outliers never rank as top deals.
- `priceVsMedianPct` and `priceVsMedianAmount` show how far the price sits from the median.
- `rank` is the position among the Facebook listings returned, and `market` repeats the median and sample size.

### 🧮 How to Find Underpriced Facebook Marketplace Listings with a Deal Score

To find underpriced Facebook Marketplace listings, Facebook Marketplace Price Intelligence & Deal Finder compares each price with the median of the outlier-free sample. A price 20 percent below the median becomes a `deal` with the default `dealThresholdPct`. With outlier removal on, a price far below the whole market becomes `suspiciously_low`, which often points to a wrong item or placeholder.

Raise `sampleSize` to 100-300 for steadier medians, and tighten `requiredKeywords` so unrelated results stay out of the Facebook sample.

### 🎯 Facebook Marketplace Price Intelligence & Deal Finder Use Cases

Facebook Marketplace Price Intelligence & Deal Finder supports several pricing workflows.

- **Resale sourcing:** spot Facebook listings priced well below the local median.
- **Price setting:** use Facebook Marketplace Price Intelligence & Deal Finder to check the median and percentiles before you list your own item on Facebook.
- **Market reports:** schedule runs to track median Facebook prices by city over time.
- **Buyer research:** see whether a Facebook asking price is fair, high or low.
- **Scam screening:** review listings labelled `suspiciously_low` with care.
- **Category analysis:** compare Facebook medians across cities or product variants.

### 💰 Pricing

Facebook Marketplace Price Intelligence & Deal Finder 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:** a larger `sampleSize` makes Facebook Marketplace Price Intelligence & Deal Finder read more Facebook pages, and `enrichDeals` opens extra pages. Start with a small `sampleSize` and a low `maxDealDetails`, then scale up.

### 💡 Tips and Best Practices

- **Use precise keywords:** a clean Facebook sample matters more than a large one.
- **Match the thresholds to the market:** raise `dealThresholdPct` in Facebook Marketplace Price Intelligence & Deal Finder for volatile products.
- **Keep outlier removal on:** `iqr` suits most products, and `mad` suits skewed prices.
- **Mind the sort order:** the sample uses the first Facebook listings in the chosen `sortBy` order.
- **Expect public data only:** Facebook Marketplace Price Intelligence & Deal Finder reads what a logged-out visitor sees on Facebook.
- **Schedule regular runs:** run Facebook Marketplace Price Intelligence & Deal Finder on a schedule and compare summaries to see Facebook price trends.

> **⚠️ 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 Price Intelligence & Deal Finder?

Facebook Marketplace Price Intelligence & Deal Finder is an Apify Actor that analyses public Facebook Marketplace prices. It returns price statistics, a deal score and a deal label for each listing.

#### 🧭 How do I find the average price on Facebook Marketplace?

Enter a keyword and city, then run Facebook Marketplace Price Intelligence & Deal Finder. The `summary` record shows the median, mean and percentiles.

#### 🏷️ How is the deal score calculated?

Facebook Marketplace Price Intelligence & Deal Finder sets the score to 50 minus the percent difference from the median, limited to 0-100. Lower prices score higher.

#### 🧹 What does outlier removal do?

Facebook Marketplace Price Intelligence & Deal Finder cuts extreme prices, such as placeholders or scam prices, before it computes the median. Outlier removal needs at least 5 priced listings.

#### 🔐 Does Facebook Marketplace Price Intelligence & Deal Finder need a Facebook login?

No. Facebook Marketplace Price Intelligence & Deal Finder reads publicly visible Facebook listings, so no account, cookies or API key are required.

#### 📦 What data does Facebook Marketplace Price Intelligence & Deal Finder return?

Summary records with statistics and top deals, and listing records with price, deal label, location, photos and seller details.

#### 🧩 Can I only return deals?

Yes. Set `onlyDeals` to `true` and Facebook Marketplace Price Intelligence & Deal Finder returns only the Facebook deals. The summary record is still returned for every search.

#### 🔢 How large should the sample be?

Use 100-300 for `sampleSize` and Facebook Marketplace Price Intelligence & Deal Finder builds a robust median. The sample is never smaller than `maxItems`.

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

Facebook Marketplace Price Intelligence & Deal Finder collects public Facebook content only. You are responsible for how you use the data, so check Facebook's terms and local privacy rules.

### 📞 Support

If you have questions about Facebook Marketplace Price Intelligence & Deal Finder, ideas for new fields or a search that looks wrong, send the input you used.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

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

Marketplace search keywords, e.g. iphone 15 pro. Every query is analysed separately for every location.

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

Facebook city slug, city name or numeric city-page id, e.g. nyc. Ignored when both 'Latitude' and 'Longitude' are set.

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

Search around explicit coordinates instead of 'Locations'. Needs 'Longitude' as well; when both are set, 'Locations' is ignored.

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

Longitude for the coordinate search. Needs 'Latitude' as well.

## `radiusKm` (type: `number`):

Search radius around the location or coordinates. Leave empty for Facebook's default radius.

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

Optional Marketplace category slug or id that keeps the comparison set clean, e.g. electronics. If the category cannot be resolved the search runs over all categories.

## `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 these conditions. Leave empty for all conditions.

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

Order of the Marketplace results. The statistics are computed on the first listings in this order, so the order changes which listings land in the sample. Leave empty for Facebook's default order.

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

Only listings posted within the last N days.

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

Only listings offering this delivery method. Leave empty for all.

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

The listing title must contain ALL of these words or phrases (case-insensitive, whole words; a plural s/es also matches). Keeps unrelated hits out of the sample.

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

Listings whose title contains ANY of these words or phrases are dropped from the sample, e.g. accessories or broken units.

## `outlierMethod` (type: `string`):

How outlier prices are removed before the median and the deal scores are computed. Outlier removal needs at least 5 priced listings. Outliers are never ranked as best deals.

## `outlierK` (type: `number`):

Width of the accepted price band: the IQR multiplier (1.5 when empty) or the MAD multiplier (3 when empty). Larger values remove fewer outliers.

## `ignorePricesBelow` (type: `number`):

Prices below this amount are treated as placeholders ($0, free, 'contact me') and excluded from the statistics. Set 0 to keep every price.

## `dealThresholdPct` (type: `number`):

A listing is flagged as a deal when its price is at least this many percent below the (outlier-free) median. 0 uses the default of 20.

## `overpricedThresholdPct` (type: `number`):

A listing is flagged as overpriced when its price is at least this many percent above the median. 0 uses the default of 25.

## `onlyDeals` (type: `boolean`):

Return only the listings flagged as deals. The summary record of each search is still returned.

## `enrichDeals` (type: `boolean`):

Open the listing page of the best deals (one extra request each) to add description, condition, seller and photos.

## `sampleSize` (type: `integer`):

Number of listings used for the price statistics. Empty uses 'Max items'; it is never smaller than 'Max items'. Use 100-300 for a robust sample. Only listings that pass the keyword filters count.

## `maxDealDetails` (type: `integer`):

How many of the best deals are enriched from their listing pages when 'Enrich best deals' is on.

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

Maximum number of listings returned per search and location, best deals first. Each search and location also returns one extra summary record.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone 15 pro"
  ],
  "locations": [
    "nyc"
  ],
  "requiredKeywords": [
    "15 pro"
  ],
  "excludeKeywords": [
    "case",
    "cover",
    "screen protector",
    "charger",
    "box only",
    "for parts",
    "parts only",
    "broken",
    "cracked",
    "icloud locked"
  ],
  "outlierMethod": "iqr",
  "ignorePricesBelow": 1,
  "dealThresholdPct": 20,
  "overpricedThresholdPct": 25,
  "onlyDeals": false,
  "enrichDeals": true,
  "maxDealDetails": 10,
  "maxItems": 15
}
```

# Actor output Schema

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

Structured records extracted by Facebook Marketplace Price Intelligence & Deal Finder 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 15 pro"
    ],
    "locations": [
        "nyc"
    ],
    "requiredKeywords": [
        "15 pro"
    ],
    "excludeKeywords": [
        "case",
        "cover",
        "screen protector",
        "charger",
        "box only",
        "for parts",
        "parts only",
        "broken",
        "cracked",
        "icloud locked"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-marketplace-price-intelligence-deal-finder").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 15 pro"],
    "locations": ["nyc"],
    "requiredKeywords": ["15 pro"],
    "excludeKeywords": [
        "case",
        "cover",
        "screen protector",
        "charger",
        "box only",
        "for parts",
        "parts only",
        "broken",
        "cracked",
        "icloud locked",
    ],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/facebook-marketplace-price-intelligence-deal-finder").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 15 pro"
  ],
  "locations": [
    "nyc"
  ],
  "requiredKeywords": [
    "15 pro"
  ],
  "excludeKeywords": [
    "case",
    "cover",
    "screen protector",
    "charger",
    "box only",
    "for parts",
    "parts only",
    "broken",
    "cracked",
    "icloud locked"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/facebook-marketplace-price-intelligence-deal-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/facebook-marketplace-price-intelligence-deal-finder"
        }
    }
}
```

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/rAwSEwIH9ce4CdrOm/builds/FLcIfgzt7ZVVG7TWq/openapi.json
