> ## 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 Google Search Scraper parameters

Configure the scraper parameters to control how Google Search results are collected. These settings include pagination, location, language, and device type options.

## 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    | Description                                                                                       |
| ---------------------- | ------- | ------------------------------------------------------------------------------------------------- |
| **max\_pages**         | integer | Maximum search result pages to crawl per keyword. Google limits to \~300-400 total results.       |
| **results\_per\_page** | integer | Results per page: 10, 20, 30, 40, 50, or 100. Default: 10                                         |
| **country**            | string  | Sets IP origin country and Google domain (e.g., `google.fr` for France). Default: `United States` |
| **location**           | string  | Geographic bias for results (state, city). Use Get Geolocation to find valid values.              |
| **language**           | string  | Language for search results. Defaults to English for the chosen country.                          |
| **mobile\_results**    | boolean | If `true`, returns mobile device results; otherwise desktop results.                              |

<Tip>
  Use the Get Geolocation endpoint to discover valid `location` values.
</Tip>

<Note>
  Higher `max_pages` values will collect more results but use more credits.
</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": "Google Search Scraper",
      "concurrency": 1,
      "export_unique_results": true,
      "to_complete": false,
      "no_line_breaks": true,
      "params": {
        "country": "United States",
        "language": "English",
        "max_pages": 4,
        "mobile_results": false,
        "results_per_page": 10,
        "location": "Alabama"
      }
    }'
  ```

  ```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": "Google Search Scraper",
          "concurrency": 1,
          "export_unique_results": True,
          "to_complete": False,
          "no_line_breaks": True,
          "params": {
              "country": "United States",
              "language": "English",
              "max_pages": 4,
              "mobile_results": False,
              "results_per_page": 10,
              "location": "Alabama"
          }
      }
  )

  data = response.json()
  print(f"Updated: {data['name']}")
  print(f"Max pages: {data['params']['max_pages']}")
  print(f"Location: {data['params']['location']}")
  ```
</CodeGroup>

## Response

```json 201 theme={null}
{
  "name": "Google Search Scraper",
  "no_line_breaks": true,
  "params": {
    "country": "United States",
    "language": "English",
    "max_pages": 4,
    "mobile_results": false,
    "results_per_page": 10,
    "location": "Alabama"
  },
  "to_complete": false,
  "export_unique_results": true
}
```
