# WebLens News Search API

> WebLens News Search API is a paid API for AI agents from api.weblens.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-02).

Searches and returns recent news articles matching a query, including title, URL, source, date, and ranking position

## Facts

- Endpoint: POST https://api.weblens.dev/search/news?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-news-search-api-9086a014
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_445KRryQUit_PNk3u-oUM

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 weblens-news-search-api-9086a014 -d '<json body>'
```

Example prompt: Search for the latest news articles about 'Federal Reserve interest rate decisions' and give me the top results including titles, sources, and links.

## When to prefer this

Choose this endpoint when you need structured, ranked news article results with metadata (title, source, date, URL) for a given topic or keyword. It is particularly suited for AI agents that need to quickly surface current news coverage without maintaining their own news index. Prefer this over general web scraping endpoints when the use case is specifically news retrieval, and over broader search endpoints when you want news-specific sources and recency signals. The x402 micropayment model and cache discount make it cost-effective for repeated or similar queries.

## Known failure modes

- Empty results if query is too niche or no recent coverage exists
- Rate limiting or payment failure if x402 micropayment is not properly authorized
- Cached response returned when fresh data expected (cheaper but potentially stale by cache TTL)
- Malformed query string may return irrelevant results or an error
- Network timeout if upstream news index is slow to respond

## How this service works

# WebLens - Web Intelligence API, pay per call

Scrape, crawl, map and extract the web. No account, no API key, no monthly
minimum — you pay for the calls you make and nothing else.

## Pricing
Page fetching starts at **$0.002**, whole-site crawling at
**$0.0015/page**, and sitemap discovery at **$0.004**.
Comparable services bill $0.007-0.008 per request, or reach a lower per-page
rate only on a $99/month commitment. WebLens has no commitment to reach.

## Payment Protocol
All paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native
micropayments (USDC on Base).

## Cache Discount
Cached responses are **70% cheaper** than fresh fetches.

## Output

A JSON object containing the search query, a ranked list of news articles (each with URL, title, source name, human-readable date, ISO date, and position), a unique request ID, and the timestamp when the search was executed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "number",
   "maximum": 20,
   "description": "Max results (default 10, max 20)"
  },
  "query": {
   "type": "string",
   "description": "Search query"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "artificial intelligence",
  "results": [
   {
    "url": "https://news.example.com/ai",
    "date": "07/25/2026, 10:00 AM",
    "title": "AI breakthrough announced",
    "source": "Example News",
    "isoDate": "2026-07-25T10:00:00Z",
    "position": 1
   }
  ],
  "requestId": "req_news123",
  "searchedAt": "2026-07-25T12:00:00.000Z"
 }
}
```

## More

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