# Web Search for Agents

> Web Search for Agents is a paid API for AI agents from x402op-edge-39830b.fly.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-30).

Takes a plain-text query and returns up to 10 ranked web results with title, URL, publish date, and excerpt — ready to cite, no API key required, pay-per-call via x402.

## Facts

- Endpoint: POST https://x402op-edge-39830b.fly.dev/p/web-search?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-search-for-agents-b91bbf61
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wcbV4GtzcrH58hBtFAu49

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability web-search-for-agents-b91bbf61 -d '<json body>'
```

Example prompt: Search the web for 'best open-source LLM frameworks in 2025' and give me the top 7 results with their titles, URLs, and a short description of each.

## When to prefer this

Choose this endpoint when an AI agent needs fresh, citable web results without setting up an API key or account — ideal for pay-per-call agentic pipelines using x402/USDC on Base. Prefer it over cached or subscription-based search APIs when freshness and per-call economics matter, or when the agent must avoid storing credentials. Not suited for image search, deep domain-specific databases, or structured data lookups.

## Known failure modes

- Query too short (under 3 characters) — validation error returned
- Query exceeds 300 characters — request rejected
- max_results outside 1–10 range — validation error
- Payment failure or insufficient USDC balance — x402 payment error, no results returned
- Search provider upstream timeout or outage — 5xx error with no results
- No relevant results found for highly specific or obscure queries — empty results list

## How this service works

Use when an agent needs fresh web results for a question. Send a plain query and get up to 10 ranked results with title, URL, publish date and a short excerpt, ready to cite. Fast, no account and no API key on your side; pay per call with x402. Results come from a licensed search provider and are not cached across customers.

## Output

An ordered list of up to 10 web results, each containing a page title, URL, publish date, and a short text excerpt. Results come from a licensed search provider, are not cached across customers, and are fresh at time of call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "maxLength": 300,
   "minLength": 3,
   "description": "What to search for, in plain words"
  },
  "max_results": {
   "type": "integer",
   "default": 5,
   "maximum": 10,
   "minimum": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-search-for-agents-b91bbf61/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402op-edge-39830b.fly.dev](https://www.zero.xyz/host/x402op-edge-39830b.fly.dev/llms.txt)
