# agent402.tools News Search

> agent402.tools News Search is a paid API for AI agents from agent402.tools, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Searches a live, independent news index and returns ranked recent articles with title, URL, snippet, age, source, and breaking flag as clean JSON

## Facts

- Endpoint: GET https://agent402.tools/api/search-news
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-news-search-c9a3c992
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C70IcoFYRW_eprXVAszN5

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 agent402-tools-news-search-c9a3c992
```

Example prompt: Search the news for articles about the Federal Reserve interest rate decision from the past week and give me the top 5 results with titles, sources, and how recent they are.

## When to prefer this

Prefer this endpoint when you need fresh, ranked news articles from an independent index rather than a general web search — especially for current-events queries where a web index may lag. Choose this over a general web search endpoint when the user specifically wants news coverage, headline-style results, breaking news flags, and source attribution rather than general web pages.

## Known failure modes

- Empty result set if query matches no recent indexed articles
- Rate limiting or payment failure returning 402 if x402 payment header is missing or invalid
- Query exceeding 400 characters returns a validation error
- Invalid freshness value (not pd/pw/pm/py) returns an error
- Invalid country code may return unexpected results or an error
- count outside 1-50 range returns a validation error

## How this service works

Live news search as clean JSON: recent articles ranked with title, URL, snippet, age, source and a breaking flag, with a freshness filter. Use it for current events and headlines where a general web index lags.

## Output

A JSON array of ranked news articles, each containing: article title, URL, text snippet, age/recency indicator, source name, and a boolean breaking news flag. Results are ordered by relevance and freshness, filtered according to the specified freshness window (past day/week/month/year).

## 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",
       "description": "Search query (max 400 chars)"
      },
      "count": {
       "type": "number",
       "description": "Results to return, 1-50 (default 10)"
      },
      "country": {
       "type": "string",
       "description": "Optional 2-letter country code (default US)"
      },
      "freshness": {
       "type": "string",
       "description": "Optional: pd, pw, pm, or py (past day/week/month/year)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "count",
      "results"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "query": {
       "type": "string"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "age": {
          "type": "string"
         },
         "url": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "source": {
          "type": "string"
         },
         "breaking": {
          "type": "boolean"
         },
         "description": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "query": "Federal Reserve interest rate decision",
  "results": [
   {
    "age": "2 hours ago",
    "url": "https://example.com/article",
    "title": "Fed holds rates steady",
    "source": "example.com",
    "breaking": false,
    "description": "Policymakers voted…"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-news-search-c9a3c992/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
