Facebook Marketplace Scraper avatar

Facebook Marketplace Scraper

Try for free

3 days trial then $39.00/month - No credit card required now

Go to Store
Facebook Marketplace Scraper

Facebook Marketplace Scraper

inquisitive_sarangi/facebook-marketplace-scraper
Try for free

3 days trial then $39.00/month - No credit card required now

Scrape facebook marketplace with highly targeted/customized search queries and filters. Export and download data to CSV/JSON etc.

CM

No output for search URL

Closed
camassadfasdfsad opened this issue
3 months ago
inquisitive_sarangi avatar

Hi there, thank you for reaching out. Let me have a look at it and get back to you.

inquisitive_sarangi avatar

Hi, thank you for you patience. I am looking into it. Meanwhile you can try replicating the search via categories and location(lat/lng/radius).

JO

joana124341

a month ago

same 0.466 usage already used but no results https://console.apify.com/view/runs/kZsEdMxcDqVdlWstK

inquisitive_sarangi avatar

Hi there, let me have a look at it and get back to you. Meanwhile, if you want you are try using categories items.

IN

instaflip2024

24 days ago

Not working for us as well. We are paying for the API every month please fix it as soon as possible

inquisitive_sarangi avatar

Hi there, thank you for using the facebook marketplace scraper. Could you please let me know the input are you currently and having issue with?

The search url feature currently only works with a limited url patterns so that be causing the issues. Please let me know.

Thanks

inquisitive_sarangi avatar

Update: Working on a fix for search urls.

Meanwhile, you can always using the category, lat/lng and radius to search within categories.

Thank you for your patience.

IN

instaflip2024

21 days ago

Checking in to see if you can provide an update on this. Our solution has stopped working because of this.

inquisitive_sarangi avatar

Working on a fix. Meanwhile, could you please provide me the details on the urls you are using?

Actually, it's technically not a fix though, as the search urls as of now only supports category urls and not all search urls. The primary way to search using the actor is using the category/location/radius and the options below it.

Thanks

inquisitive_sarangi avatar

Update: The search URL issue has been resolved. Currently, the search URLs field only accepts URLs following the specified pattern.

/^https://www.facebook.com/marketplace/(\d+|\w+)/(search|vehicles|propertyrentals|apparel|electronics|entertainment|family|free|garden|hobbies|home|home-improvements|instruments|office-supplies|pets|propertyforsale|sports|toys)/?(?query=.+)/

Eg.

1https://www.facebook.com/marketplace/105618626137781/search?sortBy=distance_ascend&query=rebuilt%20title%20car&exact=false
2https://www.facebook.com/marketplace/nyc/search/?maxPrice=7896&sortBy=distance_ascend&query=rebuilt%20title%20car&exact=false
3https://www.facebook.com/marketplace/category/search?deliveryMethod=shipping&query=bag
4https://www.facebook.com/marketplace/category/vehicles?deliveryMethod=shipping&sortBy=price_descend&vehicleExteriorColors=black&exact=false

Category-based search URLs (/category/) rely on the actor's lat/lng/radius settings to find location details, as these URLs lack embedded location information. They work in your browser because Facebook detects your location, but on a server, the location must be explicitly provided.

Important: Search URLs often return 0 results when using Apify residential proxies. Other providers (e.g., Oxylabs) tend to work better. If you encounter this issue, try switching to a third-party provider.

Thanks

inquisitive_sarangi avatar

Update:

Apart from the above, if your search urls doesn't fall under the supported pattern, I have added in a new field name search. Using this field you can do a custom search just like you do on Facebook marketplace.

inquisitive_sarangi avatar

There are 2 ways to provide input to the scraper.

Method 1: Using Search URLs

The scraper accepts search URLs as input. Not all patterns are supported.

Supported URL Pattern:

/^https://www.facebook.com/marketplace/(\\d+|\\w+)/(search|vehicles|propertyrentals|apparel|electronics|entertainment|family|free|garden|hobbies|home|home-improvements|instruments|office-supplies|pets|propertyforsale|sports|toys)/?(?query=.+)/

Please refer docs for supported search url examples.

Notes:

  • Apify proxies may perform poorly with search URLs; consider using other residential proxy providers.
  • For category-based URLs (/category/), the scraper uses lat/lng/radius settings from the search section.

Method 2: Search Section Feature (🌟 New)

Instead of providing URLs directly, you can construct your search in the dashboard.

Custom Search

Use this field when URLs aren't supported. It accepts search queries in {location}/{query} format.
Example:

  • query: ps5, lat/lng values from the search section are used.
  • location/query: nyc/ps5 or mexicocity/cell-phones

Note: Non empty Custom search ignores the category field.

Required Settings:

  1. Proxy: Must be residential to avoid blocking.
  2. Max Page Limit: Enter 0 for no limit or set a max value.
  3. Custom Search: Enter a query (e.g., mexicocity/cell-phones). If no location is provided, the scraper uses lat/lng values from the search section.
inquisitive_sarangi avatar

Please feel free to reopen the issue if you have any additional questions/suggestion etc.

Developer
Maintained by Community

Actor Metrics

  • 25 monthly users

  • 8 bookmarks

  • 92% runs succeeded

  • 5.6 hours response time

  • Created in Sep 2023

  • Modified 14 days ago