Skip to content
Examples

Add Tasks

Add LaCentrale search URLs to scrape vehicle listings using the lobstr.io API

The v1 API, for batchesSquids, tasks and runs: many calls on a schedule, delivered where you work. For one call that answers in seconds, use the API v2.
POSThttps://api.lobstr.io/v2/squid/{squid_id}/task

Add LaCentrale search or listing URLs as tasks to your squid. The scraper will extract all vehicle listings matching your search criteria from the French automotive marketplace.

Crawler ID: 665c260fd9139121a4530d23b35b26db

Headers

Authorizationstringheaderrequired

Your API authentication token. Value: Token YOUR_API_KEY

Content-Typestringheaderrequired

Request body format. Value: application/json

URL Format

Use LaCentrale listing URLs with your desired search filters:

https://www.lacentrale.fr/listing?yearMin=2025

https://www.lacentrale.fr/listing?makesModelsCommercialNames=PEUGEOT

Build your search on lacentrale.fr with filters (make, model, year, price, etc.) and copy the URL.

Request Body

Field Type Required Description
url string Yes LaCentrale search or category URL

Apply filters on lacentrale.fr (make, model, year, price range, location) to target specific vehicle segments.

LaCentrale limits search results to 347 pages maximum per URL. Use multiple filtered searches for comprehensive coverage.

Use the fetch_since setting to only scrape recently added listings for monitoring new inventory.

Code Examples

curl -X POST "https://api.lobstr.io/api/v2/squid/YOUR_SQUID_ID/task" \
  -H "Authorization: Token YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://www.lacentrale.fr/listing?yearMin=2024&makesModelsCommercialNames=PEUGEOT"
  }'

Response

200
{
  "id": "task_abc123def456",
  "status": "pending",
  "created_at": "2025-01-15T10:30:00Z",
  "url": "https://www.lacentrale.fr/listing?yearMin=2024&makesModelsCommercialNames=PEUGEOT"
}