Examples
Add Tasks
Add Leboncoin boutique directory URLs to scrape
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.
POST
https://api.lobstr.io/v1/tasksAdd Leboncoin boutique directory URLs to your Leboncoin Boutiques Scraper squid. Each task should be a Leboncoin boutiques category URL.
Crawler ID:
c6e88128aef71c079e58f0518687e10cHeaders
AuthorizationstringheaderrequiredYour API authentication token. Value: Token YOUR_API_KEY
Content-TypestringheaderrequiredRequest body format. Value: application/json
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| squid | string | Yes | Hash of your squid configured with the Leboncoin Boutiques Scraper |
| tasks | array | Yes | Array of task objects, each containing a url field |
Task Object
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | A Leboncoin boutiques directory URL (e.g. /boutiques/vehicules/toutes_categories or /boutiques/immobilier/toutes_categories) |
Browse to a Leboncoin boutiques category page, then copy the path (e.g. /boutiques/vehicules/toutes_categories). You can also pass the full URL.
Code Examples
curl -X POST "https://api.lobstr.io/v1/tasks" \ -H "Authorization: Token YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "squid": "YOUR_SQUID_HASH", "tasks": [ { "url": "/boutiques/vehicules/toutes_categories" } ] }'
Response
200
{ "duplicated_count": 0, "tasks": [ { "id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6", "created_at": "2026-06-09T10:00:00.000000", "is_active": true, "params": { "url": "/boutiques/vehicules/toutes_categories" }, "object": "task" } ] }