> ## 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 LinkedIn Profile Scraper settings including email enrichment

Configure your LinkedIn Profile Scraper squid settings. The main configurable option is email enrichment, which uses lobstr.io's enrichment service to find email addresses for the profiles you scrape.

## 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                                                                                                  |
| --------------------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------ |
| **email\_enrichment** | boolean | true    | Enable email enrichment to find email addresses for profiles (9 credits per profile where an email is found) |

## Squid Settings

Configure general squid settings:

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

## Email Enrichment

When email enrichment is enabled, lobstr.io will attempt to find the email address associated with each LinkedIn profile.

**Pricing:** 9 credits per profile enriched. No email found = 0 credits charged.

The enrichment service returns:

* `email`: The discovered email address (if found)
* `email_status`: Validation status of the email (valid, invalid, catch-all, etc.)

<Warning>
  Email enrichment is enabled by default. Disable it before running if you don't need email data to avoid unexpected credit usage.
</Warning>

<Tip>
  If you don't need email addresses, disable enrichment to reduce costs: set `email_enrichment` to `false`.
</Tip>

<Note>
  **Backward compatibility:** The old function name `email` is still accepted but deprecated. Migrate to `email_enrichment`.
</Note>

## 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": "LinkedIn Profile Scraper (1)",
      "concurrency": 1,
      "export_unique_results": true,
      "to_complete": false,
      "no_line_breaks": true,
      "params": {
        "email_enrichment": true
      }
    }'
  ```

  ```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"

  # Update scraper settings
  response = requests.post(f"{BASE_URL}/squids/{squid_id}",
      headers=headers,
      json={
          "name": "LinkedIn Profile Scraper (1)",
          "concurrency": 1,
          "export_unique_results": True,
          "to_complete": False,
          "no_line_breaks": True,
          "params": {
              "email_enrichment": True  # 9 credits per profile with email found
          }
      }
  )

  data = response.json()
  print(f"Settings updated: {data['name']}")
  print(f"Email enrichment: {data['params']['email_enrichment']}")
  ```
</CodeGroup>

## Response

```json 201 theme={null}
{
  "name": "LinkedIn Profile Scraper (1)",
  "concurrency": 1,
  "export_unique_results": true,
  "to_complete": false,
  "no_line_breaks": true,
  "params": {
    "email_enrichment": true
  }
}
```
