# Update Settings

Configure Twitter Profile Scraper settings including raw JSON output

Configure your Twitter Profile Scraper squid settings. Control output format, concurrency, and whether to return raw JSON data from Twitter's API.

## 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 |
| --- | --- | --- | --- |
| **json** | boolean | false | If true, returns the complete raw JSON payload for the user profile |

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

<Tip>
  Enable `json: true` to get the complete raw API response for advanced analysis or custom field extraction.
</Tip>

<Note>
  The raw JSON contains additional fields not included in the parsed output.
</Note>

## Code Examples

<CodeGroup>
```bash cURL
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": "Twitter Profile Scraper (2)",
    "concurrency": 1,
    "export_unique_results": true,
    "to_complete": false,
    "no_line_breaks": true,
    "params": {
      "json": true
    }
  }'
```

```python Python
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": "Twitter Profile Scraper (2)",
        "concurrency": 1,
        "export_unique_results": True,
        "to_complete": False,
        "no_line_breaks": True,
        "params": {
            "json": True  # Return raw JSON from Twitter API
        }
    }
)

print(response.json())
```
</CodeGroup>

## Response

```json 201
{
  "name": "Twitter Profile Scraper (2)",
  "no_line_breaks": true,
  "params": {
    "json": true
  },
  "to_complete": false,
  "export_unique_results": true
}
```
