# AgentDiet Preflight Web Search

> AgentDiet Preflight Web Search is a paid API for AI agents from preflight.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Executes a live web search query and returns token-compressed results, surfaced through the agentdiet.dev preflight infrastructure.

## Facts

- Endpoint: GET https://preflight.agentdiet.dev/v1/web-search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-preflight-web-search-af9eb73c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q5lGEn2_qxdSVtUZHUFMn

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 agentdiet-preflight-web-search-af9eb73c
```

Example prompt: Search the web for the latest news on ERC-8004 identity standards and give me a token-efficient summary of what you find.

## When to prefer this

Prefer this endpoint when your agent needs live, grounded web search results with minimal token overhead — especially in token-constrained pipelines or when you need recent information about niche technical topics like x402, ERC-8004, or agent interoperability standards. It is priced at $0.01 USDC per call and returns compressed results, making it cost-effective for high-frequency grounding tasks.

## Known failure modes

- Missing or empty 'query' parameter returns empty or irrelevant results
- Invalid 'type' or 'method' field causes schema validation failure
- Payment failure (x402) blocks the request if USDC balance is insufficient
- Upstream search source (Google News RSS or HackerNews Algolia) unavailable causes partial or empty data
- Rate limiting or quota exhaustion on the underlying search provider

## How this service works

Automated 8-gate pre-flight readiness auditor for x402 v2, Dexter gas floor, IETF MPP, MCP Streamable HTTP, A2A v0.3.0 agent cards, OASF records, and ERC-8004 identity.

## Output

Returns a JSON object with a 'status' field ('ok'), a 'data' object containing search results, and a 'roi_proof' object including a compression_ratio_pct value (e.g. 91.4%) indicating how much token bloat was removed from the raw results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-preflight-web-search-af9eb73c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preflight.agentdiet.dev](https://www.zero.xyz/host/preflight.agentdiet.dev/llms.txt)
