# AgentDiet Realtime Search

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

Performs a real-time web search query and returns compressed, token-efficient results via a pay-per-call API settled in USDC on Base.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/realtime-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-realtime-search-35c8236e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qm7PuLTa4GYya7HsFZ8gE

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-realtime-search-35c8236e
```

Example prompt: Search for the latest news on AI regulation using AgentDiet's realtime search — I need the results as compact as possible to save on context tokens.

## When to prefer this

Choose this endpoint when an AI agent needs real-time web search results but must stay within tight context window limits — the built-in compression (up to ~91% ratio) makes it ideal for agentic pipelines where token budget is a primary constraint. Prefer it over generic search APIs when operating in a pay-per-call micropayment environment settled on Base (USDC via x402/L402), or when you need a provable compression ratio attached to the response.

## Known failure modes

- Missing or empty 'query' param returns empty or unhelpful data object
- Payment not settled in USDC on Base causes 402 rejection before search executes
- Invalid 'type' or 'method' values in input object cause schema validation failure
- Query returns no results if search index has no matches for niche or highly specific terms
- Rate limiting or node unavailability may return non-200 status

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a 'data' field containing search results, a 'status' field (e.g. 'ok'), and an 'roi_proof' object that includes a 'compression_ratio_pct' value (e.g. 91.4%) proving how aggressively the response was token-compressed relative to 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-realtime-search-35c8236e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
