cd /news/ai-agents/introducing-the-web-search-api-on-am… · home › topics › ai-agents › article
[ARTICLE · art-168034] src=aws.amazon.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Introducing the Web Search API on Amazon Bedrock AgentCore

Amazon Web Services announced the Web Search API on Amazon Bedrock AgentCore, letting developers call the InvokeWebSearch operation on the bedrock-agentcore data plane with a single API call instead of setting up an AgentCore Gateway and MCP client. The API returns ranked results from a web index Amazon operates, each with a text extract and, when available, page title, URL and publication time, and requests are signed with AWS Signature Version 4 using standard IAM credentials, so no API key or secret is needed. AWS said the API runs on the same search infrastructure that powers Alexa+, Kiro, Quick and other Amazon products, and targets custom orchestration frameworks such as LangChain and LlamaIndex, non-agent use cases like fact-checking pipelines and monitoring systems, and applications that want to manage retries and caching themselves.

by read7 min views1 publishedNov 11, 2026
Introducing the Web Search API on Amazon Bedrock AgentCore
Image: AWS ML Blog

Artificial Intelligence #

AI agents and applications that answer questions about recent events, product releases, prices, or regulations need information newer than their model’s training data. Until now, Web Search on Amazon Bedrock AgentCore delivered that information to agents through AgentCore Gateway, a capability of Amazon Bedrock AgentCore. That means creating a gateway and a web search target and calling the tool from an MCP client. The setup fits platform teams that share one search policy across many agents, but it’s more than you need when your own code only requires search results.

Today, we’re announcing the Web Search API on Amazon Bedrock AgentCore. With it, your own code can search the web with a single API call. It returns ranked results from a web index that Amazon operates, each with a text extract and, when available, the page title, URL, and publication time. You call it from the AWS SDKs or the AWS Command Line Interface (AWS CLI), signed with the same AWS Identity and Access Management (IAM) credentials you use for your other AWS services. There are no resources to create first. Authenticate, call, and get results. Use it in an application, an agent loop you write yourself, or a data pipeline.

Why a standalone API? #

The AgentCore Gateway is the recommended path for most agentic workloads. It gives agents one secure Model Context Protocol (MCP) endpoint that combines web search with your other tools. It also handles inbound and outbound authentication, semantic tool selection, and optional MCP sessions. But developers told us they also need a lower-level integration point for scenarios where the gateway is not the right fit:

  • Custom orchestration frameworks – Developers building their own agent loops, or using frameworks like LangChain or LlamaIndex, want to call web search directly as a tool within their orchestration logic rather than routing through a gateway.
  • Non-agent use cases – Not every application that needs web grounding is an agent. Search-powered dashboards, fact-checking pipelines, content enrichment workflows, and monitoring systems all benefit from real-time web results without requiring agent infrastructure.
  • Tighter control over the request lifecycle – Some developers want to manage retries, caching, and error handling themselves rather than delegating to the gateway.
  • Simpler integration for existing applications – Applications that already have their own API layer can call the Web Search API directly, adding web grounding without adopting the full AgentCore Gateway stack.

The Web Search API complements the gateway. It runs on the same search infrastructure that powers Alexa+, Kiro, Quick, and other Amazon products, with the same quality and compliance posture, exposed as a direct API operation.

How it works #

The Web Search API is the InvokeWebSearch operation on the bedrock-agentcore data plane, the same endpoint that other AgentCore tools such as AgentCore Browser, a capability of Amazon Bedrock AgentCore, use. Requests are signed with AWS Signature Version 4 (SigV4) from your standard AWS credentials, so there’s no API key or secret to manage.

The numbered steps are:

  1. Your application calls InvokeWebSearch with the AWS SDKs or the AWS CLI, which sign the request with SigV4 using its AWS credentials. From a virtual private cloud (VPC), the call can go through an interface VPC endpoint.
  2. The API checks with AWS Identity and Access Management (IAM) that the caller has bedrock-agentcore:InvokeWebSearch on the AWS managed web search tool.
  3. The API applies the filters in the request: the domains to include or exclude and the publication time range.
  4. The API searches a web index that Amazon operates. Queries are served inside AWS and aren’t sent to a third-party search engine.
  5. The API returns up to maxResults ranked results, each with a text extract and, when available, the page title, URL, and publication time.

The calling identity needs one IAM permission on an AWS managed resource. It’s the same action and resource that a gateway’s service role uses for web search, so one policy covers both routes. For details, see Grant permission to call the API.

A first search request

The following example searches two trusted domains for pages published in 2026, in the US West (Oregon) Region (us-west-2), with the AWS SDK for Python (Boto3):

Every result has a text extract. The title, URL, and publication date come back when the index has them, so read them with get. One result from a live call, shortened:

That’s the full integration. If your code runs on AWS Lambda, Amazon Elastic Container Service (Amazon ECS), Amazon Elastic Compute Cloud (Amazon EC2), or Amazon Elastic Kubernetes Service (Amazon EKS), the execution role provides credentials automatically. Add the permission to that role, and the same code runs unchanged.

Key API features

  • Domain filtering – Include or exclude specific domains to scope search results to trusted sources (for example, only aws.amazon.com and kubernetes.io for an assistant focused on AWS). Each list holds up to 100 domain names, and a root domain also matches its subdomains.
  • Date filtering – Restrict results to a publication time range withpublishedAfter andpublishedBefore , given as RFC 3339 date-times in UTC such as 2026-01-01T00:00:00Z. Both bounds are inclusive.
  • Configurable result count – Request between 1 and 25 results per query. If you don’t setmaxResults , the API returns up to 25. The search text,searchQuery , can be up to 200 characters.
  • Results with text extracts – Each result includes a text extract and, when available, the page title, URL, and publication time, ready to feed into your model’s context window.

Getting started in under 5 minutes #

Here are two ways to get a first result:

Option 1: AWS CloudShell (no local setup)

  1. Open AWS CloudShell in your browser. It uses the credentials of your console session.
  2. Your role will have the bedrock-agentcore:InvokeWebSearch permission, from the preceding policy or from the broader AWS managed policyBedrockAgentCoreFullAccess .
  3. Run:

Option 2: Local development

  1. Install the AWS CLI, or the AWS SDK for your language. For Python, use Boto3 1.43.127 or later.
  2. Create an IAM role with the preceding policy.
  3. Get credentials for that role: assume it from your application or an AWS CLI profile, or sign in with it through your identity provider.
  4. Run the preceding Python example, or call the API from any AWS SDK.

There’s no resource to create and no API key to manage. Authenticate, call, and get results.

Using the Web Search API with agent frameworks #

The Web Search API fits naturally into popular agent frameworks. LangChain agents get it through the AgentCore web search tool in langchain-aws 1.9.3 and later:

The tool can also hold rules that the model can’t change, such as domains to exclude, a date floor, and a search budget. It returns its results as data that your code can check. For a complete example, see the daily dependency watch sample. It researches three package ecosystems in parallel with LangGraph, and checks every finding against its sources before it reports anything.

If you prefer to wrap the call yourself, a plain LangChain tool works too: Without a framework, the WebSearchClient in the AgentCore Python SDK wraps the same call and returns results with parsed dates. langchain-aws 1.9.3 and the AgentCore Python SDK 1.26.0 add Web Search API support, so install those versions or later.

Enterprise controls, built in #

Because the Web Search API uses standard IAM authentication, you get enterprise controls from the first call:

  • IAM policies. Grant or deny bedrock-agentcore:InvokeWebSearch per user, group, or role. Useservice control policies (SCPs) to enforce guardrails across accounts.
  • AWS CloudTrail logging. CloudTrail records InvokeWebSearch requests as data events. Data events aren’t logged by default, so add an event selector for theAWS::BedrockAgentCore::WebSearch resource type to a trail or event data store. Events record the web search tool andmaxResults , not the search text or filters. For details, seeLog AgentCore Web Search API calls with AWS CloudTrail .
  • VPC support. Use AWS PrivateLink to route API calls over your private network rather than the public internet. For setup and endpoint policies, see Private connectivity with AWS PrivateLink later in this post.
  • Compliance. For a list of compliance programs that cover AgentCore, see Compliance validation for Amazon Bedrock AgentCore .
  • Searches stay in AWS. Queries are served from a web index that Amazon operates and aren’t sent to a third-party search engine.
  • Acceptable use. The Web Search Tool terms also apply to API results, including the requirement to retain and display the source citations and links that come with each result. For details, see the Web Search API Acceptable Use documentation .

Quotas apply per account. For the defaults and how to request an increase, see Quotas for Amazon Bedrock AgentCore.

By default, each account can send up to 10 requests per second in each Region, and you can request an increase. For details, see Age

── more in #ai-agents 4 stories · sorted by recency
── more on @amazon web services 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/introducing-the-web-…] indexed:0 read:7min 2026-11-11 · —