Facebook Marketplace Scraper avatar
Facebook Marketplace Scraper

Pricing

$39.00/month + usage

Go to Store
Facebook Marketplace Scraper

Facebook Marketplace Scraper

Developed by

API Master

API Master

Maintained by Community

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

0.0 (0)

Pricing

$39.00/month + usage

10

Total users

392

Monthly users

33

Runs succeeded

98%

Issues response

1.6 days

Last modified

3 months ago

IF

Validation error even though sortBy doesn't exist in JSON

Closed

illuminating_finance opened this issue
a year 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

a year ago

For me my input looks like this

IF

illuminating_finance

a year 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

a year 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

a year 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.