fb-marketplace-scraper avatar

fb-marketplace-scraper

Pricing

from $4.00 / 1,000 results

Go to Apify Store
fb-marketplace-scraper

fb-marketplace-scraper

Better scraper for FB Marketplace

Pricing

from $4.00 / 1,000 results

Rating

0.0

(0)

Developer

Tor

Tor

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

2

Monthly active users

9 days ago

Last modified

Share

Facebook Marketplace Scraper

Extract listings from Facebook Marketplace at scale — prices, titles, images, seller info, and more. Search any location, any category, without writing a single line of code.

What it does

This Actor lets you scrape Facebook Marketplace search results and save them as structured data (JSON, CSV, Excel). Give it one or more search URLs, and it will collect every listing it finds — including items that don't appear until you scroll down.

Typical use cases:

  • Price research and market comparisons
  • Inventory monitoring (check if specific items are available)
  • Lead generation for resellers and flippers
  • Academic research on secondhand markets
  • Real estate and vehicle listing aggregation

What you get

Each scraped listing includes:

FieldDescription
titleListing title
priceListed price (raw string, e.g. "฿4,500" or "$120")
locationGeneral location shown on the listing
imageUrlPrimary listing photo
listingUrlDirect link to the Facebook listing
sellerNameSeller's display name
postedAtTime posted (e.g. "2 hours ago")
descriptionItem description (where available)

Before you start — you need Facebook session cookies

Facebook Marketplace requires you to be logged in. This Actor uses your browser session cookies to authenticate — no password is ever stored or sent to us.

Follow these steps to get your cookies (takes ~2 minutes):

Step 1 — Install EditThisCookie

Install the free EditThisCookie Chrome extension: 👉 https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg

Alternative: Cookie-Editor works the same way.

Step 2 — Log in to Facebook

Go to facebook.com and log in normally. Make sure you're fully logged in and can see your feed.

Step 3 — Export your cookies

  1. Click the EditThisCookie extension icon in your Chrome toolbar (puzzle piece → EditThisCookie)
  2. Click the Export button (looks like a box with an arrow)
  3. Your cookies are now copied to your clipboard as JSON

Step 4 — Paste into the Actor

In the Facebook Session Cookies field, paste the JSON you just copied.

⚠️ Security note: Your cookies give access to your Facebook account — treat them like a password. We recommend creating a dedicated Facebook account used only for scraping. Never share your cookies publicly.


How to build a search URL

Instead of typing a URL from scratch, just use Facebook's own search:

  1. Go to facebook.com/marketplace
  2. Search for what you want — use the filters (location, price range, category, condition)
  3. Once the results load, copy the URL from your browser address bar
  4. Paste it into the Search URLs field in the Actor

Example URLs:

# Search for iPhones in Bangkok
https://www.facebook.com/marketplace/bangkok/search/?query=iphone
# Search for cars under ฿300,000 in Bangkok
https://www.facebook.com/marketplace/bangkok/vehicles/?maxPrice=300000
# Search for furniture in London
https://www.facebook.com/marketplace/london/search/?query=sofa&exact=false

You can add multiple URLs to scrape several searches in a single run.


Input configuration

FieldRequiredDescription
Search URLs✅ YesOne or more Facebook Marketplace search URLs
Max Listings Per SearchNoHow many results to collect per URL. Default: 50. Max: 1,000
Facebook Session Cookies✅ YesYour exported browser cookies (see guide above)
Proxy ConfigurationNoDefaults to Residential proxies — recommended for reliability

Tips for best results

  • Start small: Run with 10–20 results first to verify your cookies are working before scaling up
  • Residential proxies are required: Facebook blocks datacenter IPs. The default proxy setting handles this automatically
  • Refresh cookies every few days: Facebook sessions expire. If you get errors, re-export your cookies

Proxy usage

This Actor defaults to Residential proxies, which are required for Facebook Marketplace. Datacenter proxies will be blocked.

Residential proxy usage is charged separately based on traffic consumed. For most searches, expect roughly 50–150 MB per 1,000 listings.


Cost estimation

ListingsEstimated cost
50 (default)~$0.01–0.05
500~$0.10–0.30
5,000~$1.00–3.00

Costs vary based on how many images load and how heavily Facebook rate-limits your session.


Output example

{
"title": "iPhone 13 Pro Max 256GB",
"price": "฿28,500",
"location": "Bangkok, Thailand",
"imageUrl": "https://scontent.xx.fbcdn.net/v/...",
"listingUrl": "https://www.facebook.com/marketplace/item/123456789/",
"sellerName": "John D.",
"postedAt": "3 hours ago",
"description": "Used for 1 year, no scratches, comes with original box and charger."
}

Results are available in the Dataset tab after the run. You can download them as JSON, CSV, Excel, or XML.


Limitations

  • Facebook's terms of service: Scraping Facebook is against their ToS. Use this tool responsibly and only for legitimate research purposes.
  • Login required: Facebook Marketplace is not accessible without an account. You must provide valid session cookies.
  • Rate limiting: Facebook may temporarily limit results if you scrape too aggressively. Use the Max Listings Per Search field to stay reasonable.
  • Dynamic content: Listings load dynamically as you scroll — the Actor handles this automatically, but very large result sets may take several minutes.
  • Location availability: Marketplace is available in most countries but not all. Some categories and filters vary by region.

Troubleshooting

❌ "No results found" or Actor finishes instantly → Your cookies have expired. Re-export them from your browser and update the input.

❌ Actor runs but returns empty listings → Try reducing Max Listings Per Search to 20 and re-running. Facebook may be rate-limiting your session.

❌ "Blocked" or captcha errors → Make sure Residential proxies are enabled (the default). Datacenter proxies won't work.

❌ Cookie export looks wrong → Make sure you're exporting from facebook.com (not messenger.com or another subdomain). The JSON should be an array starting with [.


Need help?

Open an issue in the Issues tab or contact us through the Apify platform. Please include:

  • The search URL you were using
  • The error message or unexpected behavior
  • Whether your cookies were freshly exported

This tool is provided for research and personal use. You are responsible for complying with Facebook's Terms of Service and applicable laws in your jurisdiction. The author does not condone scraping for spam, harassment, or any illegal purpose.