Scrape Facebook Marketplace

Marketplace is full of listings worth tracking, the title, the price, the location, the link. A bot can read them off the page into a sheet so you are not refreshing searches by hand. The catch is that Facebook fights scraping and it all sits behind a login, so this works small and slow, for your own research. There are three ways to start, with no code, with code, or with a Claude skill.

What I mean by scraping Facebook Marketplace


Scraping Facebook Marketplace means a bot reads the public details of listings into a sheet. The item title, the asking price, the location, the link to the listing. Point it at a search you care about, a category in your area, and it gathers each result so a page of listings becomes rows you can sort, filter, and watch over time.

Facebook fights scraping, and it is behind a login


Two things make Marketplace a careful job. Facebook does not want to be scraped, and it watches for it. And Marketplace sits behind a login, so the bot works from your own signed-in session, not an open page. Push too hard and Facebook throws checks and blocks, the same as anywhere on the site.

So keep it small and honest. A search or two, read slowly, for your own use, a deal hunt, a price check, a bit of market research. Take the listing details that are shown to everyone, and leave the seller's personal information alone. This is for tracking what is for sale, not for building a profile of who is selling it.

Who this is for


This is for the person watching Marketplace for their own reasons. A reseller tracking prices, a buyer hunting a deal, someone researching what a category sells for in their area. Low volume, your own research. If you want listings at scale, this is the wrong tool, and Facebook will tell you so. No-coders and coders both, since you can build it without code and drop into code when you want.

How I'd approach it


Open the search you want on your own logged-in session, scroll slowly so the listings load, and have the bot read the title, price, and location of each into a sheet. Put a real pause between pages, watch for any block, and stop if Facebook pushes back. Run it now and then, not on a tight loop.

A search or two, public details, slow and your own. I would lay out the first draft with Build with description.

Scrape Facebook Marketplace from a description


Describe the search in plain words in the Chrome extension and it builds the steps for you. Give it a few short lines, check what it made, and run it. Explore no-code.

To the right is an example. Describe the search and the fields you want, and the AI lays out the steps. Keep it slow.

Chrome extension
Describe your automation

Instructions

  • Open my Marketplace search and sign in38 / 500
  • Scroll slowly to load the listings34 / 500
  • Scrape the title, price, and location of each45 / 500
  • Grab the link to each listing29 / 500
  • Write them to a Google Sheet28 / 500

Scrape Facebook Marketplace in code


Build with code. You do not have to write the script by hand. Describe the scrape to our Claude skill and it generates a ready-to-run Node script you own, then debugs it with you, fixing a selector that stopped matching or a step that stalls, until the run is clean. Prefer to write it yourself? Explore the code tool. Either way, the script looks like this.

These are axiom's step functions, the same step library that powers the no-code builder, available as code. Describe the scrape to the Claude skill and it generates and debugs this script for you. It runs on our cloud Chromium, with nothing to manage.

Generate it with the Claude skill
facebook-marketplace.js
1import { AxiomApi } from "axiom-api";2 3const axiom = new AxiomApi(process.env.AXIOM_API_KEY);4 5await axiom.browserOpen();6try {7  await axiom.goto("https://www.facebook.com/marketplace/category/search?query=desk");8  const listings = await axiom.scrape("a[href*='/marketplace/item/']");9  console.log(listings); // write these to your sheet10} finally {11  await axiom.browserClose();12}13 

Build with a Claude skill

Build no-code or code bots with a skill.

Add the Claude skill and describe the Marketplace search you want. It builds the bot for you, no-code or code, reading public listings into a sheet, slowly.

Claude building a Facebook Marketplace scraper from a description

What can you scrape?


Public listing details, small and slow. A couple of lines to stay on the right side of.

Works well

  • Listing titles and prices
  • Locations and links
  • A search you watch over time
  • Tracking prices in a category
  • A handful of searches, spaced out

Harder

  • Anything at volume, which Facebook blocks
  • Listings that load as you scroll
  • Photos and full descriptions

Don't try

  • Scraping sellers' personal details
  • Hammering Facebook at scale
  • Anything against Facebook's terms

What I'd watch out for


Marketplace is behind a login and Facebook hunts for bots, so read this one carefully. Here is what I would watch for.

Leave the seller's details alone

Take the listing, not the person. The title, price, and location are the public detail you came for. A seller's name, profile, and contact are not yours to gather, and building a profile of them crosses a line.

When Facebook pushes back, stop

A block or a check means you have gone too fast. Slow down or stop, do not try to push through it. Space your searches out and run fewer.

Listings load as you scroll

Marketplace fills in as you go. Scroll slowly and wait for the cards to appear before you read, or you will catch a half-loaded page.

Use your own session

Sign in as yourself and store the cookies so the bot keeps the session. Pick what you read with the selector tool, since the layout shifts often.

"Axiom has completely transformed how I handle browser automation. The no-code interface is intuitive and powerful."

John Smith

"The best browser automation tool I've used. The AI features are game-changing for complex workflows."

Sarah Johnson

"Finally, a tool that makes browser automation accessible without compromising on power. Highly recommended!"

Michael Chen

"The support team is amazing, and the product just keeps getting better. Worth every penny."

Emma Davis

"I was skeptical about no-code automation, but Axiom proved me wrong. It's incredibly powerful."

David Wilson

"The visual builder is a dream come true. No more writing complex scripts!"

Lisa Anderson

"Axiom has saved me countless hours. The automation possibilities are endless."

Robert Taylor

Fast to build. Easy to run and scale. Outstanding support.

Start for free. No credit card required.