> ## 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 Yellow Pages Companies Search Export settings

Configure your **Yellow Pages Companies Search Export** 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  | —       | Yellow Pages search URL (use this OR keyword + location)                                     |
| **keyword**                        | string  | —       | What you are looking for on Yellow Pages                                                     |
| **location**                       | string  | —       | US city and state to search in, e.g. 'Austin, TX'                                            |
| **max\_unique\_results\_per\_run** | integer | —       | Max unique results across all tasks in a run                                                 |
| **max\_results**                   | integer | 3000    | Maximum results per task (Yellow Pages max \~3000)                                           |
| **sort**                           | string  | Default | How Yellow Pages orders results: Default, Distance, Best Match, Highest Rated, Most Reviewed |
| **min\_rating**                    | string  | —       | Only collect businesses with at least this rating                                            |
| **min\_reviews**                   | integer | —       | Only collect businesses with at least this many reviews                                      |
| **category\_match**                | boolean | false   | Only collect businesses whose categories contain your search term                            |
| **results\_details**               | boolean | false   | Visit each business page to collect lat/lng, email, description, social links                |

<Note>
  Setting `results_details: true` enables additional detail fields in results, including latitude, longitude, email, description, and social media links.
</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": {"keyword": "plumber", "location": "Austin, TX", "max_results": 100, "sort": "Highest Rated"}}'
  ```

  ```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": {"keyword": "plumber", "location": "Austin, TX", "max_results": 100, "sort": "Highest Rated"}})
  ```
</CodeGroup>

## Response

```json 201 theme={null}
{"params": {"keyword": "plumber", "location": "Austin, TX", "max_results": 100, "sort": "Highest Rated"}}
```
