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

# WebFetchPlugin - Python SDK

> WebFetchPlugin method reference

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

## Fields

| Field                | Type                                                                                         | Required             | Description                                                                              |
| -------------------- | -------------------------------------------------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------- |
| `allowed_domains`    | List\[*str*]                                                                                 | :heavy\_minus\_sign: | Only fetch from these domains.                                                           |
| `blocked_domains`    | List\[*str*]                                                                                 | :heavy\_minus\_sign: | Never fetch from these domains.                                                          |
| `id`                 | [components.WebFetchPluginID](/client-sdks/python/api-reference/components/webfetchpluginid) | :heavy\_check\_mark: | N/A                                                                                      |
| `max_content_tokens` | *Optional\[int]*                                                                             | :heavy\_minus\_sign: | Maximum content length in approximate tokens. Content exceeding this limit is truncated. |
| `max_uses`           | *Optional\[int]*                                                                             | :heavy\_minus\_sign: | Maximum number of web fetches per request. Once exceeded, the tool returns an error.     |
