---
title: "AgentCore Web Search API: Pricing, Code & Limits (Nov 2026)"
description: "AWS made web search a standalone API on Amazon Bedrock AgentCore in November 2026. How InvokeWebSearch works, IAM setup, a boto3 example validated against the SDK, filters, $7 per 1,000 pricing with 5,000 free, limits, and how it compares."
category: "guides"
url: https://keirolabs.cloud/blog/agentcore-web-search-api
published: 2026-11-24
updated: 2026-11-24
---

# AgentCore Web Search API: AWS's new search API for agents, pricing, code and limits

## The 60-second version

**AWS now sells web search as a standalone API: the Web Search API on Amazon Bedrock AgentCore, generally available since November 2026.** One `InvokeWebSearch` call, signed with your normal AWS credentials, returns up to 25 ranked results from a web index Amazon operates. Before this, web search on AgentCore was only an MCP tool behind AgentCore Gateway.

| | AgentCore Web Search API |
|---|---|
| **Operation** | `InvokeWebSearch` (tool ID `web-search.v1`) |
| **Auth** | AWS Signature Version 4 with IAM; no API key |
| **Results** | Up to 25 per call (`maxResults` 1 to 25), no pagination |
| **Each result** | `text` (an extract from the page, always present), plus `title`, `url`, `publishedAt` when known |
| **Filters** | Include or exclude up to 100 domains; published-after and published-before dates |
| **Query limit** | 1 to 200 characters |
| **Price** | $7 per 1,000 queries; first 5,000 queries per month free |
| **Regions** | US East (N. Virginia, Ohio), US West (Oregon), Europe (Ireland), Asia Pacific (Sydney, Tokyo) |
| **Privacy** | Queries are served inside AWS, not sent to a third-party search engine |

Sources: AWS's [launch announcement](https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-bedrock-agentcore-web-search-api/), [free tier announcement](https://aws.amazon.com/about-aws/whats-new/2026/11/bedrock-agentcore-free-web-search-queries/), the [AgentCore Web Search developer guide](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/web-search-api.html) and its [request and response reference](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/web-search-api-reference.html), checked November 24, 2026.

## What is the AgentCore Web Search API?

**It's AWS's own search engine, exposed as an API for agents and data pipelines.** Amazon Bedrock AgentCore is AWS's platform for building and running agents. Its web search has two front doors:

- **Web Search Tool (Gateway connector):** an MCP tool your agents discover and call through AgentCore Gateway.
- **Web Search API (`InvokeWebSearch`):** a direct API call from your own code, with no gateway.

**AWS's guidance:** use the API when your code consumes the results, and the Gateway connector when your agents call tools over MCP. Both cost the same per query, and the API has no gateway charges.

## How do I call it?

**Grant the permission first.** An IAM principal needs `bedrock-agentcore:InvokeWebSearch` on the AWS-managed tool, whose ARN uses the literal account value `aws`:

```text
arn:aws:bedrock-agentcore:<Region>:aws:tool/web-search.v1
```

**Then call it from boto3.** The field names below come from the AWS SDK's service model; we validated this call against boto3 1.44.10 (older versions, such as 1.42, don't include the operation):

```python
from datetime import datetime, timezone
import boto3

client = boto3.client("bedrock-agentcore", region_name="us-east-1")

def agentcore_search(query: str, n: int = 10, include=None, after=None) -> list[dict]:
    filters = {}
    if include:
        filters["domainFilter"] = {"include": include}          # also: "exclude"
    if after:
        filters["publishedDateFilter"] = {"publishedAfter": after}  # also: "publishedBefore"
    resp = client.invoke_web_search(webSearchId="web-search.v1", searchQuery=query[:200],
                                    maxResults=n, **({"filters": filters} if filters else {}))
    return [{"title": r.get("title"), "url": r.get("url"), "text": r["text"],
             "published": r.get("publishedAt")} for r in resp["results"]]

results = agentcore_search("PostgreSQL 18 release", 5, include=["postgresql.org"],
                           after=datetime(2026, 1, 1, tzinfo=timezone.utc))
```

**Rules worth knowing from the reference:**

- **Domain filters take bare domains** (`example.net`, no scheme or path), and a root domain matches its subdomains.
- **Dates are UTC timestamps.** To include a whole day in `publishedBefore`, use its last second, such as `2026-01-31T23:59:59Z`.
- **Only `searchQuery`, `maxResults` and `filters` are allowed in the body;** anything else fails with a `ValidationException`.
- **`title`, `url` and `publishedAt` are optional in responses.** Only `text` is guaranteed, so handle missing URLs before showing citations.

## How much does AgentCore web search cost?

**$7 per 1,000 queries, after 5,000 free queries a month.** The free allowance applies automatically, is shared across Regions and across all accounts in an AWS Organization, and resets monthly.

| Monthly queries | AgentCore cost |
|---|---|
| 5,000 | $0 |
| 50,000 | $315 |
| 500,000 | $3,465 |
| 5,000,000 | $34,965 |

**Agents search a lot.** A research task can run 10 to 50 searches, and multi-agent systems more ([Claude deep research](/blog/claude-deep-research)), so per-query price dominates at scale. Compare against your real volume ([search API cost per query](/blog/search-api-cost-per-query-latency)).

## When AgentCore web search is a good fit

- **You're all-in on AWS** and want search under IAM, billed on your AWS invoice.
- **You need private networking:** calls from your VPC through AWS PrivateLink, logged as CloudTrail data events.
- **Your policy forbids third-party search engines:** queries stay inside AWS.
- **You're already building on AgentCore,** with LangChain (the `langchain-aws` integration) or your own loop.

## Limits to plan around

- **No full page content.** Each result has a text extract; to read a page in full, you need a separate fetch or extraction step.
- **25 results maximum, no pagination.** Fine for agents, limiting for bulk research.
- **200-character queries.** Long natural-language questions need rewriting into search queries first ([query rewriting](/blog/query-rewriting-hyde)).
- **Six Regions.** Calls from elsewhere add cross-Region latency.
- **AWS credentials everywhere.** Simple inside AWS; more work for apps, edge functions or local tools outside it.
- **New index, new behavior.** Test result quality on your own queries before switching ([how to choose a web search API](/blog/how-to-choose-web-search-api)).

## AgentCore Web Search vs a search API like Keirolabs

| | AgentCore Web Search API | Keirolabs |
|---|---|---|
| **Search price** | $7 per 1,000 after 5,000 free per month | `/search/lite` from $0.03 to $0.10 per 1,000 on plans |
| **Auth** | AWS SigV4 + IAM | One bearer API key, works anywhere |
| **Page content** | Text extracts only | `/search/content` returns full page text with results; `/extract` reads any URL |
| **Deep research** | Build it yourself | `/deep` in one call (96.5% on SimpleQA) |
| **Privacy** | Stays inside AWS | `"zdr": true` on paid plans: nothing about the query is retained |
| **Free start** | 5,000 queries a month | Up to 2,000 free credits, no card |

**Choose AgentCore** if IAM, PrivateLink and a single AWS bill matter most. **Choose a search API** if you want much lower per-query cost at agent volumes, full page content in the same call, or a simple key you can use from any cloud. Either way, keep your search behind one function, so switching later is a one-line change.

New Keirolabs accounts get up to 2,000 free credits with no card ([get a key](https://platform.keirolabs.cloud/register)).
