# Aayat AI Search & Answer

> Aayat AI Search & Answer is a paid API for AI agents from aayatai.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-02).

Searches Wikipedia, Hacker News, DuckDuckGo, and Stack Overflow, reads top result pages, and returns a concise cited markdown answer in a single call

## Facts

- Endpoint: GET https://aayatai.com/search/answer?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-search-answer-451e4f4e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VnVH6YIgHIICnui174006

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 aayat-ai-search-answer-451e4f4e
```

Example prompt: Search and summarize what the HTTP 402 status code is used for — read the top 3 pages you find and give me a cited answer.

## When to prefer this

Choose this endpoint when you need a single-call research answer that combines search, page reading, and summarization across open sources like Wikipedia, Hacker News, DuckDuckGo, and Stack Overflow. It is ideal for factual lookups, technical questions, and topic research where inline citations matter and you don't want to manage multi-step search-then-scrape pipelines. Prefer it over raw search APIs when you want a synthesized prose answer rather than a raw list of links, and over general LLMs when you need up-to-date sourced information rather than training-data recall.

## Known failure modes

- Query too short (under 3 chars) or too long (over 300 chars) returns validation error
- Robots.txt blocks reading on top pages, reducing answer quality or citing fewer sources
- No relevant results found for highly niche or obscure queries
- Network timeout when reading slow external pages
- Premium index not connected — falls back to open-source tier only (Wikipedia, HN, DDG, Stack Overflow)
- pages parameter out of range (must be 1–5) returns validation error

## How this service works

Search, read and summarise in one call (open-sources tier): finds pages via Wikipedia, Hacker News, DuckDuckGo and Stack Overflow, reads the top ones (robots.txt respected) and writes a concise cited answer, plus pages read and all results. Upgrades itself to full-web search (and price) when a premium index is connected. ?q=question&pages=3

## Output

A JSON object containing: a markdown-formatted answer with inline numeric citations (e.g. [1], [2]), an array of pages actually read (with URL, title, and whether reading succeeded), a full list of search results with source index, snippet, and publish date, the search provider used (open or premium), and a timestamp of when the answer was generated.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "maxLength": 300,
       "minLength": 3,
       "description": "Question or topic to research."
      },
      "pages": {
       "type": "integer",
       "default": 3,
       "maximum": 5,
       "minimum": 1,
       "description": "How many top result pages to read (1-5)."
      },
      "detail": {
       "enum": [
        "full",
        "brief"
       ],
       "type": "string",
       "default": "full",
       "description": "brief = key fields only (same price)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "answer",
      "pagesRead",
      "results",
      "provider"
     ],
     "properties": {
      "query": {
       "type": "string"
      },
      "trust": {
       "type": "object",
       "description": "Third-party text, cleaned: read trust.notice; removed = what we stripped."
      },
      "answer": {
       "type": "string",
       "description": "Markdown answer; [n] cites pagesRead with that n."
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "source": {
          "type": "string",
          "description": "Which index found it."
         },
         "snippet": {
          "type": "string"
         },
         "publishedAt": {
          "type": [
           "string",
           "null"
          ]
         }
        }
       }
      },
      "sources": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "provider": {
       "type": "string",
       "description": "Which index found the pages: brave, serper, exa, tavily or open."
      },
      "pagesRead": {
       "typ
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "What is the HTTP 402 status code used for?",
  "answer": "HTTP 402 Payment Required was reserved for digital payments [1] and is now used by the x402 protocol for pay-per-call APIs [2].",
  "results": [
   {
    "url": "https://en.wikipedia.org/wiki/HTTP_402",
    "title": "HTTP 402",
    "source": "wikipedia",
    "snippet": "HTTP 402 Payment Required is a status code reserved for digital payment systems.",
    "publishedAt": "2026-09-01T10:00:00Z"
   }
  ],
  "sources": [
   {
    "ok": true,
    "name": "wikipedia",
    "count": 1
   }
  ],
  "provider": "open",
  "pagesRead": [
   {
    "n": 1,
    "url": "https://en.wikipedia.org/wiki/HTTP_402",
    "read": true,
    "title": "HTTP 402"
   }
  ],
  "answeredAt": "2026-09-28T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-search-answer-451e4f4e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
