fb-marketplace-scraper
Pricing
from $4.00 / 1,000 results
Pricing
from $4.00 / 1,000 results
Rating
0.0
(0)
Developer
Tor
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
2
Monthly active users
9 days ago
Last modified
Categories
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:
| Field | Description |
|---|---|
title | Listing title |
price | Listed price (raw string, e.g. "฿4,500" or "$120") |
location | General location shown on the listing |
imageUrl | Primary listing photo |
listingUrl | Direct link to the Facebook listing |
sellerName | Seller's display name |
postedAt | Time posted (e.g. "2 hours ago") |
description | Item 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
- Click the EditThisCookie extension icon in your Chrome toolbar (puzzle piece → EditThisCookie)
- Click the Export button (looks like a box with an arrow)
- 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:
- Go to facebook.com/marketplace
- Search for what you want — use the filters (location, price range, category, condition)
- Once the results load, copy the URL from your browser address bar
- Paste it into the Search URLs field in the Actor
Example URLs:
# Search for iPhones in Bangkokhttps://www.facebook.com/marketplace/bangkok/search/?query=iphone# Search for cars under ฿300,000 in Bangkokhttps://www.facebook.com/marketplace/bangkok/vehicles/?maxPrice=300000# Search for furniture in Londonhttps://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
| Field | Required | Description |
|---|---|---|
| Search URLs | ✅ Yes | One or more Facebook Marketplace search URLs |
| Max Listings Per Search | No | How many results to collect per URL. Default: 50. Max: 1,000 |
| Facebook Session Cookies | ✅ Yes | Your exported browser cookies (see guide above) |
| Proxy Configuration | No | Defaults 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
| Listings | Estimated 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 Searchfield 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
Legal
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.