$ man web-search
/web-search
PRICE / CALL
$0.006
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
data
STATUS
● live
NAME
web-search — live web search and web answer engine retrieval api for agents that need ranked sources before writing an answer
SYNOPSIS
POST https://x402.agentutility.ai/web-search
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Live web search and web answer engine retrieval API for agents that need ranked sources before writing an answer. Send a query and optional recency filter; receive ranked web results with title, URL, snippet, and domain, not an LLM-written response. Successful results are cached, and provider rate limits trigger a short circuit breaker plus a clearly marked recent public-news fallback. Use it as a web answer engine source API, live web search API, web search MCP tool, RAG source-discovery feed, or source search tool. For fetched page text or cited synthesis, use answer-web or scrape-to-json.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| query | string | Search query or research question. 1-500 chars. | required |
| num_results | number | Number of results to return. Default 10, max 20. | optional |
| limit | number | Alias for num_results. If both are supplied, num_results wins. | optional |
| include_text | boolean | Accepted for compatibility. This route always returns ranked result metadata with include_text: false; use scrape-to-json for page text. | optional |
| recency | string | Optional freshness filter. Default 'any'. enum: day · week · month · year · any | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| query | string | — |
| results | string | — |
| source | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/web-search \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the web-search tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- web-probewebsearchweb-searchsearch-apiweb-search-apiranked-resultsagent-research
- methods
- POST
- cluster
- webprobe
- price
- $0.006 USDC per call
ADJACENT — other endpoints in webprobe
| endpoint | description | price |
|---|---|---|
| google-search | Ranked Google organic results via Decodo Google Search. | $0.006 |
| mentions | Monitors public X mentions of a brand, handle, URL, ticker, or phrase by searching recent posts and returning matches with author and met… | $0.006 |
| public-post-search | Searches recent public posts on X/Twitter with public metrics and author expansion. | $0.006 |
| recent-tweet-search | Run a saved X search on a schedule and compare post IDs and timestamps with the last response to spot new public mentions. | $0.006 |
| search | Returns ranked Decodo Google web results. | $0.006 |
| search-site | Site/domain-scoped search via Decodo Google results. | $0.006 |
| search-web | Answer engine retrieval API for finding live web sources before an agent writes its own response. | $0.006 |
| serp-search | Pull ranked Decodo Google results for any query. | $0.006 |
SEE ALSO