Skip to main content
TutorialsNovember 26, 2026 · 9 min read

How to scrape Facebook marketplace listings: Deal monitoring inside the signed-out limit

Scrape public Facebook Marketplace listings with Python, compare asking prices, and track new items and price drops without a Facebook login.

How to scrape Facebook marketplace listings: Deal monitoring inside the signed-out limit

Facebook Marketplace listings can tell you what people are asking for used furniture, electronics, and other goods in a particular city. Collecting those prices by hand works for a few items, but it becomes difficult when you're building a product that needs to check listings regularly.

This tutorial uses Spidra and Python to collect public Marketplace listings, compare asking prices within a search, and save snapshots so you can detect new items and price changes. We'll also look at the part of Marketplace that isn't available without signing in, because that limit affects what your application can promise.

What can you get from Facebook Marketplace without logging in?

Marketplace search pages expose a limited set of listings to signed-out visitors. In the November 24, 2026 research behind this tutorial, a standing-desk search returned 15 listings in Austin and 15 in Chicago. An iPhone 13 search in Austin returned 9. A separate signed-out category page displayed 24.

These are observed results, not a fixed platform-wide limit. Spidra's Facebook Marketplace documentation describes retrieving the listings from the first page load. It does not promise access to every listing matching a query or unlimited pagination.

That matters if you're building an alerting or analytics product. A listing that isn't in the returned set cannot appear in your dashboard or trigger an alert. A missing item also isn't necessarily sold. It could have moved out of the visible results, changed category, or been removed.

There is no generally available Meta Graph API endpoint for arbitrary Marketplace listing searches. Meta does include Marketplace listings in its Content Library API, but that is a restricted research product, not a self-serve commercial listing feed. For applications using accessible public pages, an external scraping service is a different route, subject to Meta's terms and applicable law.

Choose what to collect: search results or individual listings

A search page is enough to identify candidates and compare asking prices. Spidra returns a listing ID, title, price, numeric amount, location, photo, link, and availability flags when those fields are present. It can also return a seller name, but you don't need to retain that for the workflow below.

A single listing page can provide more context, including condition, description, category, attributes, additional photos, and coordinates. Don't assume those details are available from every search result.

The difference showed up clearly in a full-details pull of 15 standing-desk listings in Austin:

Field from individual listings

Records containing it

Condition

15 of 15

Category and attributes

15 of 15

Listing date

15 of 15

Coordinates

15 of 15

Seller name

14 of 15

Description

14 of 15

Earlier, struck-through price

3 of 15

Those counts describe one snapshot, not a guarantee for future searches. The distinction is useful for cost control: collect search results first, then request details only for listings that meet your criteria.

Collect Marketplace listings with Python

Create a Spidra account, generate an API key, and install the Python SDK:

pip install spidra
export SPIDRA_API_KEY="spd_YOUR_API_KEY"

Start with the facebook-marketplace-listings template. It accepts a Marketplace city slug and search phrase. The SDK waits for the template run, so you don't need to implement polling.

# marketplace_listings.py
import os
from spidra import Spidra

client = Spidra(api_key=os.environ["SPIDRA_API_KEY"])
run = client.run_template(
    "facebook-marketplace-listings",
    {"city": "austin", "query": "standing desk"},
)
if run.status not in {"completed", "partial"}:
    raise RuntimeError(f"Search failed: {run.status}")
rows = run.rows
print(run.status, len(rows))

The November 24 Austin run completed with 15 rows:

completed 15

Your count will change as listings appear, disappear, or move in the results. If a run is partial, inspect its failed items rather than treating the rows as complete coverage.

Each row is structured data. For example, a separate live Spidra sample of New York electronics listings returned this shortened record:

{
  "id": "1097079526336032",
  "title": "Nikon N50 Camera",
  "price": "$150",
  "amount": 150,
  "city": "Bronx",
  "state": "NY",
  "isSold": false,
  "isPending": false,
  "url": "https://www.facebook.com/marketplace/item/1097079526336032/"
}

This example is from Spidra's published Marketplace scraper sample, not the Austin standing-desk run. Note the difference between the display price ("$150") and numeric amount (150). Use the latter for calculations, but keep the currency context.

You can also send a Marketplace search or item URL directly to Spidra's regular Scrape API with JSON output. That is useful when you already have a URL. The template is convenient when your application starts with a city and query or needs optional full details. Both are described in the Facebook site guide.

Compare asking prices without confusing them with resale value

A first screening rule is to flag listings priced well below the median asking price in the same search. Python's statistics.median() handles an odd or even number of results correctly.

Add this to the script above:

from statistics import median

seen, priced = set(), []
for row in rows:
    key = row.get("id") or row.get("url")
    amount = row.get("amount")
    if not key or key in seen or row.get("isSold") or row.get("isPending"):
        continue
    seen.add(key)
    if isinstance(amount, (int, float)) and not isinstance(amount, bool) and amount >= 0:
        priced.append(row)
if not priced:
    raise ValueError("No usable asking prices in this search")
local_median = median(row["amount"] for row in priced)
candidates = [r for r in priced if r["amount"] <= 0.6 * local_median]
print("Median asking price:", local_median)
print("Price-screening candidates:", len(candidates))

In the supplied November 24 research, the Austin standing-desk snapshot had a $50 median asking price. A 40%-below-median screening threshold therefore selected listings priced at $30 or less.

That doesn't make them profitable deals. One of the inexpensive desks explicitly mentioned a missing part. Condition, size, model, included accessories, pickup distance, and comparable completed sales can change the economics. Use the local median to prioritize a closer look, not as an estimated resale value.

This distinction matters even more for broad searches. A basic desk and an adjustable electric standing desk shouldn't be valued as equivalent products simply because they match the same keyword. For a resale-pricing product, narrow searches to similar items and check sold-price comparables before calculating a margin.

Request listing details only when you need them

Use the fullDetails option when you need condition, a longer description, or listing attributes for the results in a search:

full_run = client.run_template(
    "facebook-marketplace-listings",
    {
        "city": "austin",
        "query": "standing desk",
        "fullDetails": True,
    },
)

Spidra also provides the facebook-marketplace-item-details template for a list of specific Marketplace item URLs or IDs. That is a better fit when you already have candidates and only want to inspect those items. The full-details option performs additional page reads, so check the estimate before running it across a large set.

Don't assume a struck-through price is evidence of a recent price change between your own checks. It is a price history displayed by the seller's listing. For a product that alerts on changes, you need your own previous snapshot.

Save snapshots and detect new items or price drops

A recurring listing product needs persistent state. If you only request the latest results and discard them, you can't distinguish an item you've seen before from a newly discovered one or tell when a displayed amount has fallen.

The companion marketplace_watch.py script included with this tutorial builds on the same template and stores each check in a local SQLite database. It uses the listing ID rather than the title as the primary key. The code also handles missing prices, duplicate IDs, and sold or pending listings.

Run it with:

python marketplace_watch.py --city austin --query "standing desk"

The first run saves a baseline. Running the same command later compares the results with the previous stored values and reports newly seen listings and price reductions. It keeps dated observations, which you can later use for a chart or product dashboard.

A few choices in the script are intentional:

  • Match on listing ID. Different sellers can publish the same title, and a seller can edit a title without creating a new listing.
  • Deduplicate before calculating a median. The same listing can appear twice within a returned set; deduplicate each set before evaluating prices. If you later combine searches across nearby areas, deduplicate that combined set too.
  • Record the observation time. A price is a snapshot, not a permanent attribute of a listing.
  • Don't mark missing items as sold. They may simply have fallen out of the first visible results.
  • Avoid collecting unnecessary personal data. The script stores listing IDs, prices, titles, URLs, and timestamps, not seller names or contact information.

The SQLite comparison code was checked locally with published example records and controlled changes. Its live results will depend on the listing data available when you run it.

Set up recurring checks

Spidra's Monitors can run a template on a schedule and notify you when matching items are new or changed. The first check establishes the baseline; subsequent checks compare against it. Monitor intervals depend on your plan, and alerts are not real-time guarantees.

For an application that needs its own price history or custom valuation, continue saving the results of your checks to your database, as the Python script does. Monitoring alerts and a permanent analytics dataset serve different purposes.

Start with a daily schedule while testing your filters. Increase frequency only if the use case warrants it, and estimate the cost using the actual template inputs. Searching additional cities, opening full listing details, or checking more often will increase the amount of work performed.

Limits you should account for in your application

Incomplete search coverage. The signed-out results are a first-page sample, not the complete inventory of Marketplace. Changing keywords or searching nearby cities may improve coverage, but it won't guarantee that you see every eligible listing.

Changes in search results. A listing can disappear from one query because of ranking, location, availability, or removal. Avoid treating absence as proof of a sale.

Missing fields. Search results may not include condition, description, or a currency code. Listing pages provide more detail when available. Null values should remain missing rather than being filled with guesses.

Different currencies and locations. A numeric amount without a reliable currency isn't safe to combine with values from another country. Keep the search location and original displayed price in your data model. Marketplace's location results can also extend beyond the named city.

No private seller access. This workflow does not read private profiles, send messages, or contact sellers. Public listing data still calls for care because names and approximate locations can be personal information.

Terms and legal restrictions. Meta's Automated Data Collection Terms require express written permission for automated collection. Public accessibility is not the same as permission to collect or commercialize data. Review the restrictions and applicable privacy laws before deploying a commercial product. For more background, see Is web scraping legal?.

If you only need to check an occasional listing manually, the Facebook interface may be enough. If you're building a repeatable data pipeline, start with a small search, validate the listing fields, and then add persistence and monitoring. You can try Spidra's Facebook Marketplace scraper with your own search and inspect the returned records before integrating it into your application.

Frequently asked questions

Meta does not provide a generally available commercial API for reading arbitrary Marketplace listings. Its restricted Content Library API includes Marketplace data for approved researchers, while Spidra can retrieve public listing information through its web data API. Meta's terms and applicable laws still govern collection and use.

Share this article

You build the product.
Spidra handles the data work.

Start with 300 free credits, about 300 pages. No credit card required.