Facebook Marketplace Scraper avatar
Facebook Marketplace Scraper
Try for free

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

View all Actors
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.

IF

Validation error even though sortBy doesn't exist in JSON

Closed

illuminating_finance opened this issue
2 months ago

Could not finish the crawl. Error: Validation error: ValidationError: "sortBy" must be one of [price_ascend, price_descend, creation_time_ascend, creation_time_descend, distance_ascend, distance_descend, mileage_ascend, mileage_descend, year_ascend, year_descend]

inquisitive_sarangi avatar

Hi there, it seems in your input, value corresponding to "sortBy" key is empty. It expects one of [price_ascend, price_descend, creation_time_ascend, creation_time_descend, distance_ascend, distance_descend, mileage_ascend, mileage_descend, year_ascend, year_descend].

IF

illuminating_finance

2 months ago

For me my input looks like this

IF

illuminating_finance

2 months ago

I get the same error even if I put sortBuy

inquisitive_sarangi avatar

Please paste in your full json input here, so that I can test it on my end.

IF

illuminating_finance

2 months ago

{ "extendItem": false, "isC2CListingOnly": false, "lat": "44.498", "lng": "-118.037", "local": false, "maxConcurrency": 5, "maxPage": 0, "maxRequestsPerMinute": 200, "minPrice": 75000, "proxy": { "useApifyProxy": true, "apifyProxyGroups": [ "RESIDENTIAL" ], "apifyProxyCountry": "US" }, "radius": "500", "searchUrls": [ "https://www.facebook.com/marketplace/113093802034968/search?minPrice=75000&daysSinceListed=7&sortBy=best_match&query=caterpillar&exact=false" ], "sortBy": "creation_time_ascend" }

inquisitive_sarangi avatar

Okay, are you trying to search by searchUrls or by category?

inquisitive_sarangi avatar

Because, in your json input you have "sortBy": "creation_time_ascend" but in search url you have provided sortBy=best_match

IF

illuminating_finance

2 months ago

searchUrls

inquisitive_sarangi avatar

Okay, let me check and get back to you asap.

Thanks

inquisitive_sarangi avatar

In case you may want to scrape by searchUrls, the sortBy query parameter in your search url must be one of the supported types

eg

https://www.facebook.com/marketplace/113093802034968/searchminPrice=75000&daysSinceListed=7&sortBy=creation_time_ascend&query=caterpillar

in the above search url as you can see we have used sortBy=creation_time_ascend

For this particular searchUrl I couldn't find any result maybe try with different urls or please try the category search instead for better results.

Please feel to reach out in case of any help.

Thank you.

Developer
Maintained by Community
Actor metrics
  • 29 monthly users
  • 6 stars
  • 99.4% runs succeeded
  • 1 days response time
  • Created in Sep 2023
  • Modified 4 months ago