![Facebook Marketplace Scraper avatar](https://images.apifyusercontent.com/RNXNFvxhUH0iEz4Iix7JGmn6-o8yfwaWeVgpRm33QpQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS92WjJTeVgyNkdiWUszY2Q4eC84N1dTRlg1bTI3TnZTRFhMUC1GYWNlYm9va19NYXJrZXRwbGFjZV9jcmF3bC5wbmc.webp)
3 days trial then $39.00/month - No credit card required now
![Facebook Marketplace Scraper](https://images.apifyusercontent.com/RNXNFvxhUH0iEz4Iix7JGmn6-o8yfwaWeVgpRm33QpQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS92WjJTeVgyNkdiWUszY2Q4eC84N1dTRlg1bTI3TnZTRFhMUC1GYWNlYm9va19NYXJrZXRwbGFjZV9jcmF3bC5wbmc.webp)
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
Closed
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](https://apify-image-uploads-prod.s3.amazonaws.com/2xMbXnpx3CtybHYxz/XMqSyeRwzDSst8WR4-Facebook_Marketplace_crawl.png)
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
![inquisitive_sarangi avatar](https://apify-image-uploads-prod.s3.amazonaws.com/2xMbXnpx3CtybHYxz/XMqSyeRwzDSst8WR4-Facebook_Marketplace_crawl.png)
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" }
![inquisitive_sarangi avatar](https://apify-image-uploads-prod.s3.amazonaws.com/2xMbXnpx3CtybHYxz/XMqSyeRwzDSst8WR4-Facebook_Marketplace_crawl.png)
API Master (inquisitive_sarangi)
Okay, are you trying to search by searchUrls or by category?
![inquisitive_sarangi avatar](https://apify-image-uploads-prod.s3.amazonaws.com/2xMbXnpx3CtybHYxz/XMqSyeRwzDSst8WR4-Facebook_Marketplace_crawl.png)
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
![inquisitive_sarangi avatar](https://apify-image-uploads-prod.s3.amazonaws.com/2xMbXnpx3CtybHYxz/XMqSyeRwzDSst8WR4-Facebook_Marketplace_crawl.png)
API Master (inquisitive_sarangi)
Okay, let me check and get back to you asap.
Thanks
![inquisitive_sarangi avatar](https://apify-image-uploads-prod.s3.amazonaws.com/2xMbXnpx3CtybHYxz/XMqSyeRwzDSst8WR4-Facebook_Marketplace_crawl.png)
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.
- 29 monthly users
- 6 stars
- 99.4% runs succeeded
- 1 days response time
- Created in Sep 2023
- Modified 4 months ago