POST/v1/tasks

Add Tasks

Add Leboncoin search URLs to scrape listings

Add 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

KeyValueRequired
AuthorizationToken YOUR_API_KEYYes
Content-Typeapplication/jsonYes

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

Pro Tip

Apply filters on Leboncoin first, then copy the URL. All filter parameters (region, category, price range) will be preserved.
Note

Note

You can include page numbers in URLs (e.g., `/p-2`) to start from a specific page.