> ## 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 Instagram Search & Hashtags Scraper settings

Configure your **Instagram Search & Hashtags 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                                                        |
| ---------------------------------- | ------- | ------- | ------------------------------------------------------------------ |
| **url**                            | string  | —       | Instagram hashtag, keyword, hashtag URL, or search keyword         |
| **get\_posts**                     | boolean | true    | Include image and carousel posts                                   |
| **get\_reels**                     | boolean | true    | Include video reels                                                |
| **search\_type**                   | string  | recent  | Which tab to scrape: 'recent' or 'top'                             |
| **max\_results**                   | integer | —       | Total posts/reels to collect per hashtag                           |
| **max\_unique\_results\_per\_run** | integer | —       | Max unique posts across all tasks in the run                       |
| **fetch\_since**                   | string  | —       | Only keep media published after this point (YYYY-MM-DD or 24h, 7d) |
| **fetch\_since\_timezone**         | string  | —       | Timezone for interpreting fetch\_since date                        |
| **enrich\_comments**               | boolean | false   | Collect up to 10 latest comments per post/reel                     |

<Note>
  Setting `enrich_comments: true` enables additional comment fields (`comment_1` through `comment_10`) in results.
</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 '{"params": {"get_posts": true, "get_reels": true, "search_type": "top", "max_results": 500}}'
  ```

  ```python Python theme={null}
  import requests
  requests.post("https://api.lobstr.io/v1/squids/YOUR_SQUID_HASH",
      headers={"Authorization": "Token YOUR_API_KEY", "Content-Type": "application/json"},
      json={"params": {"get_posts": true, "get_reels": true, "search_type": "top", "max_results": 500}})
  ```
</CodeGroup>

## Response

```json 201 theme={null}
{"params": {"get_posts": true, "get_reels": true, "search_type": "top", "max_results": 500}}
```
