Overview
Web search tool using the BoCha AI-powered search API. Returns structured results with titles, URLs, summaries, and metadata.Required: A BoCha API key. Get one at bochaai.com. Install the extra:
pip install aiohttp.Quick Start — No Attributes
Call the factory function with only the required API key.Parameters
Function Parameters:| Parameter | Type | Default | Description |
|---|---|---|---|
| api_key | str | — | Your BoCha API key (required). |
| Parameter | Type | Default | Description |
|---|---|---|---|
| query | str | — | Search keywords. |
| freshness | str | "noLimit" | Time range — "noLimit", "oneDay", "oneWeek", "oneMonth", "oneYear", "YYYY-MM-DD", or "YYYY-MM-DD..YYYY-MM-DD". |
| summary | bool | True | Whether to include text summaries. |
| count | int | 10 | Number of results to return (1–50). |
| include | str | None | Domains to include, separated by | or ,. |
| exclude | str | None | Domains to exclude, separated by | or ,. |

