Skip to main content
POST
/
v1
/
tasks
Add Tasks
curl --request POST \
  --url https://api.lobstr.io/v1/tasks \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'

Documentation Index

Fetch the complete documentation index at: https://docs.lobstr.io/llms.txt

Use this file to discover all available pages before exploring further.

Add Pages Jaunes (French Yellow Pages) search URLs to your squid for scraping business directory listings. The scraper extracts company information including contact details, addresses, business registration numbers (SIRET/SIREN), and social media profiles from France’s largest business directory.

Headers

Authorization
string
required
Your API authentication token. Value: Token YOUR_API_KEY
Content-Type
string
required
Request body format. Value: application/json

Task Format

Each task should contain a URL from a Pages Jaunes search results page. Search for businesses by category and location on the website, then use those search URLs as tasks.

Supported URL Formats

The scraper supports Pages Jaunes search URLs:
Pages Jaunes URLs use department codes (e.g., ‘paris-75’ for Paris). Apply location filters on the website to get properly formatted URLs.
Search by specific business categories (boulanger, plombier, restaurant) to get targeted results for your industry research.

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": "https://www.pagesjaunes.fr/annuaire/paris-75/boulanger"
      }
    ]
  }'

Response

200
{
  "duplicated_count": 0,
  "tasks": [
    {
      "id": "82367f24d9450b2222080eed91662968",
      "created_at": "2025-07-17T09:06:47.287893",
      "is_active": true,
      "params": {
        "url": "https://www.pagesjaunes.fr/annuaire/paris-75/boulanger"
      },
      "module": 115,
      "object": "task"
    }
  ]
}