# Aayat AI News Search

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

Searches and merges recent news stories from Hacker News, Reddit, GDELT, and major RSS outlets on any topic, returning de-duplicated results sorted newest-first with links, scores, and comment counts.

## Facts

- Endpoint: GET https://aayatai.com/news?utm_source=zero.xyz
- Price: $0.01/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-news-search-8271cb35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RjTfInIjjFm1dr07_0IIH

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-news-search-8271cb35
```

Example prompt: Search for news about 'open source LLMs' from the past 7 days across Hacker News and RSS feeds, and show me the top 20 results with links and comment counts.

## When to prefer this

Choose this endpoint when you need to aggregate developer and tech news across Hacker News, Reddit, GDELT, and major RSS outlets in a single call with deduplication and unified sorting — especially useful when you want community engagement signals (upvotes, comment counts, discussion links) alongside article metadata. Prefer it over single-source scrapers or generic search APIs when the query is tech/developer-oriented and freshness within the last 1-30 days matters. Use the companion /news/brief endpoint instead if you need an AI-written narrative summary with citations rather than a raw list.

## Known failure modes

- Missing required 'q' parameter returns a 400 error
- Query string under 2 or over 200 characters is rejected by schema validation
- GDELT live search may time out or return fewer results when selected as a source
- days value outside 1-30 range is rejected
- Payment not sent or insufficient USDC triggers a 402 Payment Required response
- Slow live sources (news, lemmy, dev) may increase latency significantly

## How this service works

Research any topic across Hacker News, Reddit, worldwide news sites (GDELT) and major outlets' headlines in one call: recent stories merged, de-duplicated and sorted newest first, with links, discussion threads, points, comment counts and outlets. Pass ?q=topic&days=7. For an AI-written summary with citations use /news/brief. No API keys needed.

## Output

A JSON object containing the query string, the number of days searched, a total count of matched items, a sources array showing which sources responded and how many results each contributed, and an items array where each entry includes the article title, URL, source platform (hackernews/lemmy/dev/news/rss), outlet name, publication timestamp, HN or Reddit score, comment count, discussion thread URL, and an optional text snippet — all sorted newest first and de-duplicated.

## 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": 200,
       "minLength": 2,
       "description": "Topic or search words, e.g. x402 payments."
      },
      "days": {
       "type": "integer",
       "default": 7,
       "maximum": 30,
       "minimum": 1,
       "description": "How many days back to search (1-30)."
      },
      "limit": {
       "type": "integer",
       "default": 30,
       "maximum": 100,
       "minimum": 1,
       "description": "Most items to return."
      },
      "detail": {
       "enum": [
        "full",
        "brief"
       ],
       "type": "string",
       "default": "full",
       "description": "brief = key fields only (same price)"
      },
      "sources": {
       "type": "string",
       "maxLength": 30,
       "description": "Comma list of hn, rss (stored headlines from major outlets, Lobsters, Lemmy and DEV), and the slower live searches news (GDELT), lemmy and dev. Default: hn,rss."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "days",
      "items",
      "total",
      "sources"
     ],
     "properties": {
      "days": {
       "type": "integer"
      },
      "items": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string"
         },
         "score": {
          "type": [
           "integer",
           "null"
          ]
         },
         "title": {
          "type": "string"
         },
         "outlet": {
          "type": [
           "string",
           "null"
          ]
         },
         "source": {
          "enum": [
           "hackernews",
           "lemmy",
           "dev",
           "news",
           "rss"
          ],
          "type": "string"
         },
         "snippet": {
          "type"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "days": 7,
  "items": [
   {
    "url": "https://x402.org",
    "score": 312,
    "title": "x402: an open payment protocol for the web",
    "outlet": "x402.org",
    "source": "hackernews",
    "snippet": null,
    "comments": 140,
    "publishedAt": "2026-09-27T10:15:00Z",
    "discussionUrl": "https://news.ycombinator.com/item?id=1"
   }
  ],
  "query": "x402 payments",
  "total": 1,
  "sources": [
   {
    "ok": true,
    "name": "hn",
    "count": 1
   },
   {
    "ok": true,
    "name": "reddit",
    "count": 0
   },
   {
    "ok": true,
    "name": "news",
    "count": 0
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-news-search-8271cb35/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)
