> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Search

> Search the web and get URLs, snippets, or a sourced answer

> [!TIP]
>
> Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.

Search looks up the public web and returns ranked results, a sourced answer, or structured output. Use it when you need links and context before you [Fetch](https://docs.notte.cc/concepts/scraping.md) a page.

The REST endpoint is `POST /search`. See the [request parameters](#parameters) below.

## Quick start

```bash theme={null}
curl -X POST https://api.notte.cc/search \
  -H "Authorization: Bearer $NOTTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "notte browser automation", "depth": "standard", "outputType": "searchResults"}'
```

```python search.py theme={null}
import os

import requests

response = requests.post(
    "https://api.notte.cc/search",
    headers={"Authorization": f"Bearer {os.environ['NOTTE_API_KEY']}"},
    json={
        "q": "notte browser automation",
        "depth": "standard",
        "outputType": "searchResults",
    },
)
response.raise_for_status()
print(response.json())
```

## Parameters

**q** `string` *required*

The search query.

**depth** `string` (default: standard)

How thorough the search is: `standard`, `fast`, or `deep`.

**outputType** `string` (default: searchResults)

What to return:

* `searchResults`: ranked URLs with name and content snippets
* `sourcedAnswer`: a written answer plus source URLs
* `structured`: structured output when you also pass a schema

Extra fields are forwarded (for example `maxResults` or `includeDomains`).

## Response shapes

`searchResults` includes a `results` array. Each item has `url`, `name`, and `content`.

`sourcedAnswer` includes `answer` (string) and `sources` (list of supporting URLs).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.