> ## 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.

# Update Settings

> Configure the Pages Jaunes Companies Search Export scraper parameters and enrichment options

Configure your Pages Jaunes Companies Search Export squid settings to control pagination and enable detailed company information enrichment. Enable functions to collect email addresses, social media profiles, and official business registration numbers.

## Headers

<ParamField header="Authorization" type="string" required>
  Your API authentication token. Value: `Token YOUR_API_KEY`
</ParamField>

<ParamField header="Content-Type" type="string" required>
  Request body format. Value: `application/json`
</ParamField>

## Scraper Parameters

Set these parameters in the `params` object:

| Parameter                          | Type    | Default   | Description                                                                                                                                                        |
| ---------------------------------- | ------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **max\_pages**                     | integer | unlimited | Maximum number of search result pages to scrape                                                                                                                    |
| **max\_unique\_results\_per\_run** | integer | unlimited | Maximum unique results across all tasks in the run                                                                                                                 |
| **functions.collect\_contacts**    | boolean | true      | Visit each company's detail page to collect enriched data: opening hours, images, social links, payment methods, services, reviews and more (1 credit per company) |
| **functions.results\_details**     | boolean | true      | Collect official business registration details: SIRET, SIREN, NAF codes, legal form, and other registry data (1 credit per company)                                |

## General Settings

Standard squid settings that apply to all scrapers:

| Setting                     | Type    | Description                                      |
| --------------------------- | ------- | ------------------------------------------------ |
| **name**                    | string  | Display name for your squid configuration        |
| **concurrency**             | integer | Number of parallel scraping threads (default: 1) |
| **export\_unique\_results** | boolean | Export only unique results (deduplicated)        |
| **to\_complete**            | boolean | Run until all tasks complete                     |
| **no\_line\_breaks**        | boolean | Remove line breaks from results                  |

<Warning>
  Enabling `functions.collect_contacts` or `functions.results_details` increases run time due to additional HTTP requests per listing.
</Warning>

<Tip>
  SIRET numbers are valuable for B2B verification and can be used to look up official company information in French government databases.
</Tip>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://api.lobstr.io/v1/squids/YOUR_SQUID_HASH" \
    -H "Authorization: Token YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Pages Jaunes Companies Search Export (2)",
      "concurrency": 1,
      "export_unique_results": true,
      "to_complete": false,
      "no_line_breaks": true,
      "params": {
        "functions": {
          "collect_contacts": true,
          "results_details": true
        },
        "max_pages": 3
      }
    }'
  ```

  ```python Python theme={null}
  import requests

  API_KEY = "YOUR_API_KEY"
  BASE_URL = "https://api.lobstr.io/v1"
  headers = {"Authorization": f"Token {API_KEY}"}

  squid_id = "YOUR_SQUID_HASH"

  # Configure scraper with enrichment functions
  response = requests.post(f"{BASE_URL}/squids/{squid_id}",
      headers=headers,
      json={
          "name": "Pages Jaunes Companies Search Export (2)",
          "concurrency": 1,
          "export_unique_results": True,
          "to_complete": False,
          "no_line_breaks": True,
          "params": {
              "functions": {
                  "collect_contacts": True,   # Enriched detail page data
                  "results_details": True     # Official registry data (SIRET, SIREN, NAF)
              },
              "max_pages": 3
          }
      }
  )

  data = response.json()
  print(f"Squid updated: {data['name']}")
  print(f"Max pages: {data['params']['max_pages']}")
  print(f"Collect additional details: {data['params']['functions']['collect_additional_details']}")
  print(f"Collect emails from website: {data['params']['functions']['collect_emails_from_website']}")
  ```
</CodeGroup>

## Response

```json 201 theme={null}
{
  "name": "Pages Jaunes Companies Search Export (2)",
  "concurrency": 1,
  "export_unique_results": true,
  "to_complete": false,
  "no_line_breaks": true,
  "params": {
    "functions": {
      "collect_contacts": true,
      "results_details": true
    },
    "max_pages": 3
  }
}
```
