# web-news

> web-news is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Keyword news search across Bing, DuckDuckGo, and Yahoo news engines with freshness, region, and safesearch filters

## Facts

- Endpoint: GET https://payai.agentstools.dev/search/news
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-news-0a0c8f67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HJAI9wG_V9BK597sGOTgu

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 web-news-0a0c8f67
```

Example prompt: Search news for 'Federal Reserve interest rates' from the past week using all engines, limit to 10 results, US English region.

## When to prefer this

Choose this endpoint when you need fresh, dated news headlines with source attribution across multiple search engines simultaneously. It is preferable over single-engine search APIs when broad coverage and freshness filtering (day/week/month/year) matter, and when you need region-specific or locale-aware news results without scraping individual news sites.

## Known failure modes

- Empty results if the query is too niche or no articles exist in the specified time window
- Rate limiting or upstream engine errors from Bing/DuckDuckGo/Yahoo causing partial or no results
- Invalid region locale code returns an error or falls back to default
- max_results exceeding 20 returns a validation error
- Backend engine name misspelled causes fallback or error

## How this service works

Keyword news search across web news engines (Bing/DuckDuckGo/Yahoo via ddgs). Returns dated headlines with title/url/snippet/source/image + freshness/region/safesearch filters.

## Output

A list of news articles, each containing a headline title, URL, text snippet, source name, publication date, and optional image URL. Results are ordered by relevance/recency and filtered by the specified freshness window, region, and safesearch level.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string"
      },
      "region": {
       "type": "string",
       "description": "Locale like 'us-en', 'uk-en', 'de-de' (default us-en)"
      },
      "backend": {
       "type": "string",
       "description": "auto (default multi-engine) or a specific news engine: bing/duckduckgo/yahoo, or a CSV of them"
      },
      "timelimit": {
       "enum": [
        "d",
        "w",
        "m",
        "y"
       ],
       "type": "string",
       "description": "Freshness/time filter: past day/week/month/year"
      },
      "safesearch": {
       "enum": [
        "on",
        "moderate",
        "off"
       ],
       "type": "string",
       "description": "SafeSearch level (default moderate)"
      },
      "max_results": {
       "type": "integer",
       "maximum": 20,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-news-0a0c8f67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
