# Facebook Marketplace Scraper - Prices, Locations & Sellers (`socialscrapers/facebook-marketplace-scraper`) Actor

Facebook Marketplace scraper, no login: listings by keyword or category in any city, with price, previous price, location, photos, seller and date listed; description, condition and map position on request. Price, condition and date filters. JSON, CSV, Excel. $0.45 per 1,000 listings.

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

## Pricing

from $0.36 / 1,000 listings

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

This **Facebook Marketplace Scraper** extracts listings from Facebook Marketplace: title, price and previous price, currency, city and state, photos, seller, when it was listed and the link, plus, on request, the full description, every photo, condition, category and map position. Search any city or coordinates by keyword or category, filter by price, condition, date listed and delivery, and download clean data as JSON, CSV or Excel. **No Facebook account, no login, no cookies.** It costs **$0.45 per 1,000 listings**, and $0.93 per 1,000 more for listings with details.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does Facebook Marketplace Scraper do?

- 🔎 **Search by keyword**: any search term, in any city, ZIP area or around coordinates, with a radius from 1 to 500 km.
- 🗂️ **Browse a category**: Vehicles, Property for rent, Electronics, Home goods, Free stuff and every other Marketplace category, alone or combined with search terms.
- 🎛️ **Marketplace's own filters**: minimum and maximum price, condition (new, like new, good, fair), listed in the last N days, local pickup or shipping, and the sort order (newest first, price, distance).
- ♾️ **As many listings as you need**: a cap per search, or every listing a search gives, page after page.
- 📝 **Full listing details on request**: description, all photos, condition, category name, exact map position and the seller's join date.
- 🔗 **Marketplace links work too**: paste a search or category link with its filters, or single listing links for their details. Share links from the Facebook app are followed.
- 📍 **Many places in one run**: list several cities; each search term runs in each of them.
- 🧹 **Clean, deduplicated data**: a listing that several searches find is saved and charged once.
- 💸 **Pay only for listings saved**: no charge for searches that find nothing, unknown places or removed listings, and the run stops cleanly at the spending limit you set.

Because it runs on the Apify platform, you also get the API, scheduling, integrations, monitoring and proxies without writing any code.

### What data can you extract from Facebook Marketplace?

One dataset item per listing. Every field is always present: `null` (or an empty list) means Marketplace shows nothing for it. Fields marked *details* are filled when **Include listing details** is on, and always for listing links.

| Field | Type | Description |
|---|---|---|
| `id` | string | Listing number. |
| `url` | string | Link to the listing. |
| `title` | string | Listing title. |
| `price` | number | Asking price as a number; `0` for free items. |
| `currency` | string | Currency code: `USD`, `CAD`, `EUR`, `GBP`, … |
| `priceFormatted` | string | The price as Marketplace shows it: `$850`, `FREE`. |
| `previousPrice` | number or null | The earlier price, when the seller lowered it (shown struck through). |
| `isSold`, `isPending` | boolean | Marked as sold or pending. |
| `location` | object | `city`, `state`, `cityName` (the city Marketplace files it under); with details also `text`, `latitude` and `longitude`. |
| `primaryPhotoUrl` | string | The main photo. |
| `photos` | array | The main photo, or with details every photo: `url`, `width`, `height`, `caption`. |
| `hasVideo` | boolean or null | Whether the listing has a video. |
| `description` | string or null | The seller's description (*details*). |
| `condition` | string or null | `New`, `Used – like new`, `Used – good`, `Used – fair` (*details*). |
| `category` | object | `id`; with details also `name` and `slug` (`Bicycles`, `bicycles`). |
| `attributes` | array | Facts the listing page lists, such as condition (*details*). |
| `subtitles` | array | Short lines under the title, such as mileage for vehicles. |
| `deliveryTypes` | array | `IN_PERSON`, `PUBLIC_MEETUP`, `DOOR_PICKUP`, `SHIPPING`, … |
| `seller` | object or null | `id`, `name`, `type` (`User` or `Page`) and, with details, `joinedAt`. |
| `createdAt` | string | When the listing was posted, ISO 8601 in UTC. |
| `search` | object or null | The search that found it: `query`, `category`, `location`, `latitude`, `longitude`, `radiusKm`, `url`. |
| `inputUrl` | string or null | The listing link it was asked for by. |
| `detailsScraped` | boolean | Whether the details are included. |
| `scrapedAt` | string | When it was scraped. |

### How to scrape Facebook Marketplace

1. Click **Try for free** (or **Start**) on this page.
2. In **Search terms**, add what you are looking for, such as `road bike`, one per line. Or pick a **Category** to browse it whole.
3. In **Locations**, add one or more cities with their state or country (`Austin, Texas`, `London, United Kingdom`) or coordinates (`30.2672, -97.7431`), and set the **Radius**.
4. Set **Max listings per search** (for example `500`, or `0` for every listing), the filters you want, and turn on **Include listing details** if you need descriptions and all photos.
5. Click **Start**, and download the listings from the **Output** tab as JSON, CSV, Excel or HTML, or read them through the API.

Already set up a search on Marketplace? Paste its link into **Marketplace links** instead: the scraper keeps the place and filters in the link.

### How much does it cost to scrape Facebook Marketplace?

**$0.45 per 1,000 listings**, platform usage and residential proxies included. Listings saved with their details cost **$0.93 per 1,000 more**. You pay one `listing` event per listing saved, plus one `listing-details` event per listing saved with details:

| Your Apify plan | Per 1,000 listings | Per 1,000 listings with details |
|---|---|---|
| Free and Starter (Bronze) | $0.45 | $1.38 |
| Scale (Silver) | $0.405 (−10%) | $1.242 |
| Business (Gold) | $0.36 (−20%) | $1.104 |

Each run also carries a start charge of $0.002.

Three examples:

- **The newest 1,000 road bikes in New York** = 1,000 listings = **$0.45**.
- **500 used cars in Houston with descriptions and every photo** = 500 listings with details = **$0.69**.
- **10 searches in 5 cities checked every morning**, about 40 new listings each (`daysSinceListed: 1`) = 2,000 listings = **$0.90 a day**.

Searches that find nothing, places Marketplace does not know and removed listings produce no items and cost nothing. To cap a run's cost, set **Maximum cost per run** in the run options: the scraper stops cleanly once it is reached and keeps everything scraped so far. Apify's free plan comes with monthly usage credit, enough to try this scraper on thousands of listings.

### Input example

```json
{
  "searchQueries": ["road bike", "gravel bike"],
  "locations": ["Austin, Texas", "Denver, Colorado"],
  "radiusKm": 40,
  "maxListingsPerSearch": 200,
  "minPrice": 100,
  "maxPrice": 1500,
  "itemCondition": ["used_like_new", "used_good"],
  "daysSinceListed": 7,
  "sortBy": "creation_time_descend",
  "includeListingDetails": false
}
```

| Field | Type | Description |
|---|---|---|
| `searchQueries` | array | Search terms, each searched in each location. |
| `locations` | array | Cities (`Austin, Texas`, `Austin, TX`, `London, United Kingdom`), US ZIP codes (`10001`) or `latitude, longitude`. Required for search terms and categories. |
| `radiusKm` | integer, default `40` | Search radius around each location, 1 to 500 km. |
| `category` | string, optional | A Marketplace category: `vehicles`, `propertyrentals`, `propertyforsale`, `electronics`, `home`, `apparel`, `free`, `garden`, `hobbies`, `home-improvements`, `instruments`, `office-supplies`, `pets`, `sports`, `toys`, `entertainment`, `family`, `classifieds`, or a sub-category name from a Marketplace link such as `bicycles`. |
| `maxListingsPerSearch` | integer, default `100` | Listings to save per search (each term in each location, and each search link). `0` = every listing. |
| `includeListingDetails` | boolean, default `false` | Also read each listing's page: description, every photo, condition, category, map position. |
| `startUrls` | array, optional | Marketplace links: listing links (always with details), search links or category links (with the filters in the link). |
| `minPrice`, `maxPrice` | integer, optional | Price range, in the local currency. |
| `itemCondition` | array, optional | Any of `new`, `used_like_new`, `used_good`, `used_fair`. |
| `daysSinceListed` | integer, default `0` | Only listings posted in the last N days (`1`, `7`, `30`, …); `0` = any time. |
| `deliveryMethod` | string, default `all` | `all`, `local_pickup` or `shipping`. |
| `sortBy` | string, default `best_match` | `best_match`, `creation_time_descend` (newest first), `price_ascend`, `price_descend`, `distance_ascend`. |
| `proxyConfiguration` | object, default Apify Proxy `RESIDENTIAL` | Proxy settings. Keep the residential default. |

### Output example

A real listing from a `road bike` search in New York, with details, the seller's name and id replaced by placeholders and photo links shortened:

```json
{
  "id": "2223969548170744",
  "url": "https://www.facebook.com/marketplace/item/2223969548170744/",
  "title": "Bianchi Veloce Road Bike",
  "price": 350,
  "currency": "USD",
  "priceFormatted": "$350",
  "previousPrice": null,
  "previousPriceFormatted": null,
  "isSold": false,
  "isPending": false,
  "location": {
    "city": "Brooklyn",
    "state": "NY",
    "cityName": "New York, New York",
    "text": "Brooklyn, NY",
    "latitude": 40.597229003906,
    "longitude": -73.976440429688
  },
  "primaryPhotoUrl": "https://scontent.xx.fbcdn.net/v/…/899648157_2160742301181126_1452739868972940660_n.jpg",
  "photos": [
    { "url": "https://scontent.xx.fbcdn.net/v/…/899648157_2160742301181126_1452739868972940660_n.jpg", "width": 720, "height": 540, "caption": "No photo description available." },
    { "url": "https://scontent.xx.fbcdn.net/v/…/898462904_1122148920603205_1298931446220388994_n.jpg", "width": 720, "height": 540, "caption": "No photo description available." }
  ],
  "hasVideo": false,
  "description": "Celeste green Bianchi Veloce road bike has a steel frame with a matching fork. It is equipped with drop handlebars wrapped in blue tape, a blue and green saddle, and silver components. The bike has green tires and includes two bottle cages.",
  "condition": "Used – good",
  "category": { "id": "1658310421102081", "name": "Bicycles", "slug": "bicycles" },
  "attributes": [{ "name": "Condition", "value": "used_good", "label": "Used – good" }],
  "subtitles": [],
  "deliveryTypes": ["IN_PERSON"],
  "seller": { "id": "<seller-id>", "name": "<seller name>", "type": "User", "joinedAt": "2023-12-14T15:23:11.000Z" },
  "createdAt": "2026-11-11T01:32:00.000Z",
  "search": {
    "query": "road bike",
    "category": null,
    "location": "New York, New York",
    "latitude": 40.7142,
    "longitude": -74.0064,
    "radiusKm": 40,
    "url": null
  },
  "inputUrl": null,
  "detailsScraped": true,
  "scrapedAt": "2026-11-13T09:12:41.208Z"
}
```

### Use cases

- **Price research**: see what used items, cars and rentals really sell for in a city, and how prices drop over time (`previousPrice`).
- **Deal alerts**: run a search every hour with `daysSinceListed: 1` and newest first, and send new listings to Slack, email or a sheet.
- **Resellers and flippers**: watch the categories and brands you buy, across many cities at once.
- **Market and inventory analysis**: count listings by category, condition, place and price band.
- **Car and property listings**: vehicles with mileage, rentals and homes for sale, with map positions for mapping.
- **Datasets**: titles, descriptions and photos of second-hand goods for classification or pricing models.

### Use Facebook Marketplace Scraper via API, Python, JavaScript and integrations

Run the scraper from your own code with the [Apify API](https://docs.apify.com/api/v2) or an Apify client:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'MY-APIFY-TOKEN' });
const run = await client.actor('socialscrapers/facebook-marketplace-scraper').call({
    searchQueries: ['road bike'],
    locations: ['Austin, Texas'],
    maxListingsPerSearch: 200,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

```python
from apify_client import ApifyClient

client = ApifyClient("MY-APIFY-TOKEN")
run = client.actor("socialscrapers/facebook-marketplace-scraper").call(
    run_input={"searchQueries": ["road bike"], "locations": ["Austin, Texas"], "maxListingsPerSearch": 200}
)
for listing in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(listing["price"], listing["title"], listing["url"])
```

- **Schedules**: check for new listings every hour or every day with an Apify schedule and `daysSinceListed: 1`.
- **Integrations**: send listings to Google Sheets, Slack, Airtable, Make, Zapier or n8n, or trigger your own webhook when a run finishes.
- **AI agents**: call the scraper as a tool through the Apify MCP server.

### Limits

- **What a logged-out visitor sees.** The scraper never logs in, so it sees what Marketplace shows anyone who is not signed in. Seller ids are Facebook's own opaque ids, which can change over time.
- **Place names.** Give a city with its state or country (`Portland, Oregon`, not just `Portland`), or coordinates. The log says which place each location was read as.
- **A category with search terms** limits each term to the kinds of listings the category holds in that place; a category on its own lists everything in it.
- **A location's front page is not a search.** Links such as `facebook.com/marketplace/nyc/` need a search term or a category.
- **Residential proxy required.** Facebook rarely serves data-center IP addresses, so keep the default Apify Proxy `RESIDENTIAL` setting.
- **Photo links expire.** Photo URLs point to Facebook's CDN, which expires links after a while; download photos promptly if you need them.

### FAQ

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

This scraper only reads public listings, the way Marketplace shows them to anyone who isn't logged in. You are responsible for using the data lawfully. Listings include sellers' names, which are personal data under laws such as the GDPR (EU) and the CCPA (California), so collect only what you need for a legitimate purpose. Apify explains the basics in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

#### Do I need a Facebook account or cookies?

No. Facebook Marketplace Scraper reads only what Marketplace shows to visitors who are not logged in, so no account of yours is ever at risk.

#### How many listings can I get from one search?

As many as Marketplace gives for it: hundreds or thousands in a big city. Set **Max listings per search** to `0` for all of them. For more, widen the radius, add nearby cities, or split one search into price ranges.

#### What do I get without details, and when do I need them?

Without details every listing has its title, price, previous price, city and state, main photo, seller, delivery types, category id and the date it was listed. Turn on **Include listing details** for the description, every photo, the condition, the category name, the exact map position and the seller's join date.

#### Why did my run finish with fewer listings, or none?

The search found fewer listings in that place (try a wider radius or fewer filters), the place was not recognised (write it as City, State or City, Country), or a listing was removed. The run still ends **Succeeded**, its status message says which, and nothing is charged for inputs that gave nothing.

If the input has nothing the scraper can use (no search term or category, search terms without a location, or links that are not Marketplace listings or searches), the run ends **Succeeded** right away with a status message that starts "Nothing to scrape:" and says what to change; no results are charged. A run ends **Failed** only when Facebook refused every one of 3 or more searches and a well-known public Marketplace search is refused too, because that means the scraper itself is being blocked right now.

#### Which currency are prices in?

In the listing's local currency, as Marketplace shows it; `currency` gives its code (`USD`, `CAD`, `GBP`, …). `price` is always a plain number.

#### Can I scrape Marketplace in any country?

Yes, wherever Facebook Marketplace runs: give a city with its country, or coordinates.

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |

# Actor input Schema

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

What to search for, one term per line, e.g. <code>road bike</code> or <code>iphone 15</code>. Each term is searched in each location below. Leave empty to browse the whole category chosen below.

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

Where to search, one per line: a city with its state or country (<code>Austin, Texas</code>, <code>Austin, TX</code>, <code>London, United Kingdom</code>), a US ZIP code (<code>10001</code>), or latitude and longitude (<code>30.2672, -97.7431</code>). Required for search terms and categories; Marketplace links carry their own location.

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

How far around each location to search, in kilometres (1 to 500). Marketplace's own choices are 1, 2, 5, 10, 20, 40, 60, 80, 100, 250 and 500 km.

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

A Marketplace category. Without search terms, every listing in the category is read; with search terms, each term is searched within it. Pick one, or type the category name from a Marketplace link, e.g. <code>bicycles</code> from <code>facebook.com/marketplace/nyc/bicycles</code>.

## `maxListingsPerSearch` (type: `integer`):

How many listings to save from each search (each term in each location, and each search link), for example 500. 0 = every listing the search gives, page after page.

## `includeListingDetails` (type: `boolean`):

Also open each listing found by a search for its description, every photo, condition, category name, exact map position and the seller's join date. Charged as an extra event per listing (see Pricing). Marketplace links to single listings always come with details.

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

Links copied from Marketplace. A listing link (<code>https://www.facebook.com/marketplace/item/1234567890/</code>) gives that listing with all its details. A search or category link (<code>https://www.facebook.com/marketplace/nyc/search/?query=kayak\&maxPrice=600</code>, <code>https://www.facebook.com/marketplace/austin/vehicles/</code>) is searched with the filters in the link. Share links from the Facebook app are followed too.

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

Only listings at this price or above, in the local currency, e.g. <code>100</code>.

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

Only listings at this price or below, in the local currency, e.g. <code>500</code>.

## `itemCondition` (type: `array`):

Only listings in these conditions. Leave empty for any condition.

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

Only listings posted in the last N days: <code>1</code> = last 24 hours, <code>7</code> = last week, <code>30</code> = last month. 0 = any time.

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

Local pickup, shipping, or both.

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

The order Marketplace lists results in. With a cap per search, it decides which listings you get: e.g. Date listed (newest first) for the latest ones.

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

Apify Proxy RESIDENTIAL (the default) is strongly recommended: Facebook rarely serves data-center IP addresses. Apify Proxy without the RESIDENTIAL group is switched to RESIDENTIAL (your country is kept); residential traffic is included in the price. Your own proxy URLs are used as given.

## Actor input object example

```json
{
  "searchQueries": [
    "road bike"
  ],
  "locations": [
    "New York, New York"
  ],
  "radiusKm": 40,
  "maxListingsPerSearch": 20,
  "includeListingDetails": false,
  "daysSinceListed": 0,
  "deliveryMethod": "all",
  "sortBy": "best_match",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchQueries": [
        "road bike"
    ],
    "locations": [
        "New York, New York"
    ],
    "maxListingsPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialscrapers/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": ["road bike"],
    "locations": ["New York, New York"],
    "maxListingsPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("socialscrapers/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": [
    "road bike"
  ],
  "locations": [
    "New York, New York"
  ],
  "maxListingsPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call socialscrapers/facebook-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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