> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# WebSearchPlugin - Go SDK

> WebSearchPlugin type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

## Fields

| Field            | Type                                                                                                             | Required             | Description                                                                                                                                    | Example                                                                                                                    |
| ---------------- | ---------------------------------------------------------------------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `Enabled`        | `*bool`                                                                                                          | :heavy\_minus\_sign: | Set to false to disable the web-search plugin for this request. Defaults to true.                                                              |                                                                                                                            |
| `Engine`         | [\*components.WebSearchEngine](/client-sdks/go/api-reference/models/websearchengine)                             | :heavy\_minus\_sign: | The search engine to use for web search.                                                                                                       | exa                                                                                                                        |
| `ExcludeDomains` | \[]`string`                                                                                                      | :heavy\_minus\_sign: | A list of domains to exclude from web search results. Supports wildcards (e.g. "\*.substack.com") and path filtering (e.g. "openai.com/blog"). | \[<br />"example.com",<br />"\*.substack.com",<br />"openai.com/blog"<br />]                                               |
| `ID`             | [components.WebSearchPluginID](/client-sdks/go/api-reference/models/websearchpluginid)                           | :heavy\_check\_mark: | N/A                                                                                                                                            |                                                                                                                            |
| `IncludeDomains` | \[]`string`                                                                                                      | :heavy\_minus\_sign: | A list of domains to restrict web search results to. Supports wildcards (e.g. "\*.substack.com") and path filtering (e.g. "openai.com/blog").  | \[<br />"example.com",<br />"\*.substack.com",<br />"openai.com/blog"<br />]                                               |
| `MaxResults`     | `*int64`                                                                                                         | :heavy\_minus\_sign: | N/A                                                                                                                                            |                                                                                                                            |
| `MaxUses`        | `*int64`                                                                                                         | :heavy\_minus\_sign: | Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). |                                                                                                                            |
| `SearchPrompt`   | `*string`                                                                                                        | :heavy\_minus\_sign: | N/A                                                                                                                                            |                                                                                                                            |
| `UserLocation`   | optionalnullable.OptionalNullable\[[components.UserLocation](/client-sdks/go/api-reference/models/userlocation)] | :heavy\_minus\_sign: | N/A                                                                                                                                            | `{"city": "San Francisco","country": "US","region": "California","timezone": "America/Los_Angeles","type": "approximate"}` |
