# agentsvc.io News Search

> agentsvc.io News Search is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.0065/call, status unknown (last checked 2026-10-10).

Search for recent news articles by keyword and category, returning titles, URLs, snippets, and publication dates from sources like BBC News and Hacker News

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/news-search?utm_source=zero.xyz
- Price: $0.0065/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-news-search-0a1057c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6gqU2YoTlesTP2dVJc95s

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 agentsvc-io-news-search-0a1057c4 -d '<json body>'
```

Example prompt: Search for the latest news about generative AI regulation — grab up to 15 articles from the tech category so I can see what's happening in the developer community right now.

## When to prefer this

Choose this endpoint when you need fresh, keyword-searchable news articles with source attribution and publication timestamps, especially for tech/developer news (Hacker News) or general/business/health/science/politics coverage (BBC). It is ideal for agents that need to pull structured current-events data without managing API keys or news provider subscriptions. Prefer it over web scraping when you want pre-parsed article metadata rather than raw HTML.

## Known failure modes

- Empty results if query matches no indexed articles in the selected category
- Category mismatch — 'tech' routes exclusively to Hacker News while others route to BBC; wrong category may miss relevant articles
- Limit exceeds maximum of 30 — capped or rejected
- Payment failure via x402 if wallet balance is insufficient or Base network is congested
- Timeout if upstream news sources are slow to respond

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

A JSON object containing the search query echo, a list of articles (each with title, URL, source name, snippet, and ISO 8601 publication timestamp, plus a relevance score for HN items), the total number of articles found, and the list of sources queried (e.g. Hacker News, BBC News).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "default": 10,
   "description": "Number of articles to return (default: 10, max: 30)"
  },
  "query": {
   "type": "string",
   "description": "Search query (e.g. 'artificial intelligence', 'climate change 2026', 'Apple earnings')"
  },
  "category": {
   "enum": [
    "general",
    "tech",
    "business",
    "science",
    "health",
    "politics"
   ],
   "type": "string",
   "default": "general",
   "description": "Topic filter. 'tech' puts Hacker News first; the others narrow the GDELT search to that topic."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "query": "artificial intelligence",
   "articles": [
    {
     "url": "https://github.com/opencode-ai/opencode",
     "score": 1274,
     "title": "OpenCode – Open source AI coding agent",
     "source": "Hacker News",
     "snippet": "",
     "published_at": "2026-04-10T08:32:00Z"
    },
    {
     "url": "https://www.example-news.com/tech/ai-2026",
     "title": "AI breakthroughs in 2026: what's next",
     "source": "example-news.com",
     "snippet": "",
     "published_at": "2026-04-10T06:15:00Z"
    }
   ],
   "total_found": 48,
   "sources_queried": [
    "Hacker News",
    "GDELT"
   ]
  },
  "success": true
 }
}
```

## More

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