> ## 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 Threads Scraper settings

Configure your **Threads 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                                                                    |
| ------------------------------ | ------- | ------- | ------------------------------------------------------------------------------ |
| sort                           | string  | top     | Ranking for keyword/tag searches: top (most relevant) or recent (newest first) |
| include\_replies               | boolean | false   | Only applies to single post URLs — if true, also returns replies               |
| fetch\_since                   | string  | —       | Only collect posts published after this point                                  |
| fetch\_since\_timezone         | string  | —       | Timezone for interpreting an absolute fetch\_since date                        |
| max\_results                   | integer | —       | Max posts per input                                                            |
| max\_unique\_results\_per\_run | integer | —       | Max unique posts across all inputs in the run                                  |

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.lobstr.io/v1/squids/7308ae543e6abc70438d6b968d3a1b38 \
    -H "Authorization: Token YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "sort": "recent",
      "include_replies": false,
      "max_results": 500
    }'
  ```

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

  response = requests.post(
      "https://api.lobstr.io/v1/squids/7308ae543e6abc70438d6b968d3a1b38",
      headers={
          "Authorization": "Token YOUR_API_KEY",
          "Content-Type": "application/json",
      },
      json={
          "sort": "recent",
          "include_replies": False,
          "max_results": 500,
      },
  )
  print(response.json())
  ```
</CodeGroup>

## Response

```json 201 theme={null}
{"params": {"sort": "recent", "include_replies": false, "max_results": 500}}
```
