# Cerwal Headlines API

> Cerwal Headlines API is a paid API for AI agents from cerwal.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Fetches current news headlines for a given topic, paid per-request in USDC via x402

## Facts

- Endpoint: POST https://cerwal.vercel.app/api/headlines
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cerwal-headlines-api-8e7a053d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UbX2VhyfGKiM9vpMY1aFv

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 cerwal-headlines-api-8e7a053d -d '<json body>'
```

Example prompt: Can you pull me the top 5 latest headlines about artificial intelligence right now?

## When to prefer this

Choose this endpoint when you need current, real-time news headlines for a specific topic without setting up API keys or subscriptions — ideal for AI agents that need pay-as-you-go news retrieval via USDC micropayments. Best suited for lightweight headline fetching rather than full article content extraction.

## Known failure modes

- Missing required 'topic' field returns an error response
- Payment not fulfilled via x402 protocol results in 402 Payment Required
- Invalid or non-string topic may yield empty or unexpected results
- Network or scraping failure on upstream news sources may return partial or empty data
- Count parameter ignored or capped if value is out of supported range

## How this service works

Web scraping and search for AI agents. No auth, no subscriptions. Pay per request in USDC via x402.

## Output

Returns a JSON object with a success boolean and a data object containing the fetched news headlines for the requested topic, typically including article titles and related metadata scraped from the web.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "topic"
 ],
 "properties": {
  "count": {
   "type": "number",
   "description": "Number of headlines"
  },
  "topic": {
   "type": "string",
   "description": "News topic"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cerwal-headlines-api-8e7a053d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cerwal.vercel.app](https://www.zero.xyz/host/cerwal.vercel.app/llms.txt)
