> ## 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 Facebook Comments Scraper settings

Configure your **Facebook Comments Scraper** squid settings.

## Headers

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

<ParamField header="Content-Type" type="string" required>
  Must be application/json. Value: `application/json`
</ParamField>

## Squid Parameters

| Parameter                      | Type    | Default       | Description                                                       |
| ------------------------------ | ------- | ------------- | ----------------------------------------------------------------- |
| rows                           | integer | —             | Number of rows returned per API page                              |
| max\_unique\_results\_per\_run | integer | —             | Max unique comments across all tasks in the run                   |
| max\_results                   | integer | —             | Total comments per post (top-level + replies combined)            |
| sort\_by                       | string  | all\_comments | Comment order: `most_relevant` or `all_comments`                  |
| include\_replies               | boolean | false         | Also collect replies of every top-level comment                   |
| max\_replies                   | integer | —             | Max replies collected per top-level comment                       |
| fetch\_since                   | string  | —             | Stop scraping when comments older than this threshold are reached |
| fetch\_since\_timezone         | string  | —             | Timezone for fetch\_since                                         |

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.lobstr.io/v1/squids/3cf27be3402dbc529ed0db7d18135e8c \
    -H "Authorization: Token YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "max_results": 500,
      "sort_by": "all_comments",
      "include_replies": true,
      "max_replies": 50
    }'
  ```

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

  response = requests.post(
      "https://api.lobstr.io/v1/squids/3cf27be3402dbc529ed0db7d18135e8c",
      headers={
          "Authorization": "Token YOUR_API_KEY",
          "Content-Type": "application/json",
      },
      json={
          "max_results": 500,
          "sort_by": "all_comments",
          "include_replies": True,
          "max_replies": 50
      }
  )
  print(response.json())
  ```
</CodeGroup>

## Response

```json 201 theme={null}
{"params": {"max_results": 500, "sort_by": "all_comments", "include_replies": true, "max_replies": 50}}
```
