POST
/v1/tasksAdd Tasks
Add Leboncoin search URLs to scrape listingsAdd Leboncoin search result pages to scrape by providing search URLs. The scraper will extract all classified listings from the specified search pages.
Leboncoin search URLs can include filters for region, department, category, and page number. You can copy search URLs directly from the Leboncoin website after applying your desired filters.
Headers
| Key | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_KEY | Yes |
| Content-Type | application/json | Yes |
Request Body
squid
Type:
string
Required:
Yes
Description:
Hash of your squid configured with the Leboncoin Listings Search Export crawler
tasks
Type:
array
Required:
Yes
Description:
Array of task objects, each containing a `url` field
Task Object
url
Type:
string
Required:
Yes
Description:
Leboncoin search URL (e.g., `https://www.leboncoin.fr/annonces/offres/provence_alpes_cote_d_azur/`)
Pro Tip
Apply filters on Leboncoin first, then copy the URL. All filter parameters (region, category, price range) will be preserved.
Note
You can include page numbers in URLs (e.g., `/p-2`) to start from a specific page.