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

Facebook Marketplace Scraper
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.
Validation error even though sortBy doesn't exist in JSON
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]

API Master (inquisitive_sarangi)
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].
illuminating_finance
For me my input looks like this
illuminating_finance
I get the same error even if I put sortBuy

API Master (inquisitive_sarangi)
Please paste in your full json input here, so that I can test it on my end.
illuminating_finance
{ "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" }

API Master (inquisitive_sarangi)
Okay, are you trying to search by searchUrls or by category?

API Master (inquisitive_sarangi)
Because, in your json input you have "sortBy": "creation_time_ascend" but in search url you have provided sortBy=best_match
illuminating_finance
searchUrls

API Master (inquisitive_sarangi)
Okay, let me check and get back to you asap.
Thanks

API Master (inquisitive_sarangi)
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
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.
Actor Metrics
25 monthly users
-
8 bookmarks
92% runs succeeded
5.6 hours response time
Created in Sep 2023
Modified 14 days ago