# httpay.xyz NewsAPI Gateway

> httpay.xyz NewsAPI Gateway is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Proxies requests to the NewsAPI news aggregator service via a pay-per-call x402 gateway, enabling news article search and aggregation without managing API keys.

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/newsapi/%7B*path%7D
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-newsapi-gateway-5a692a5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WQgEIKzKn8iSCS5Is1yMe

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 httpay-xyz-newsapi-gateway-5a692a5c -d '<json body>'
```

Example prompt: Can you fetch me the latest top headlines about artificial intelligence from the US, in English, from the past 7 days using NewsAPI?

## When to prefer this

Use this endpoint when you need to query NewsAPI for news articles or headlines without managing your own NewsAPI key, and when you are comfortable paying micro-transactions in USDC via the x402 protocol on Base. Ideal for agents that need on-demand news retrieval as part of a larger workflow without pre-provisioned credentials.

## Known failure modes

- Invalid NewsAPI path results in 404 or gateway error
- Payment not processed leads to 402 Payment Required response
- Malformed query parameters cause NewsAPI to return error status
- Rate limits or quota exceeded on the underlying NewsAPI account returns an error
- Unsupported country code or language code returns empty results or error
- Network timeout from upstream NewsAPI service

## How this service works

API Gateway: NewsAPI news aggregator

## Output

Returns a JSON response from NewsAPI containing an array of news articles with fields such as title, description, URL, source name, author, published date, and full article content snippets, along with article count and status information.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-newsapi-gateway-5a692a5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
