# Latest News API – Open Government News by Category

> Latest News API – Open Government News by Category is a paid API for AI agents from latest-news-api.latest-news.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Fetches recent open-government news articles (NASA, climate agencies, etc.) filtered by category (space, climate, technology, exploration, station, government) as structured JSON for AI agents.

## Facts

- Endpoint: GET https://latest-news-api.latest-news.workers.dev/v1/news/%7Bcategory%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/latest-news-api-open-government-news-by-category-4fca9933
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wKwBtFj0_l84gOBevs5Ln

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 latest-news-api-open-government-news-by-category-4fca9933
```

Example prompt: Pull the latest space news from the open-government news API and give me a summary of each article.

## When to prefer this

Choose this endpoint when you need structured, AI-agent-friendly news summaries sourced specifically from open US government sources (NASA, NOAA, etc.) across a fixed set of science and government categories. It is ideal when you want ready-made attribution and license metadata alongside article summaries. Prefer it over general news APIs when open-government provenance, public-domain licensing, and AI-optimized summaries are important. Not suitable for breaking commercial news, social media trends, or categories outside space, climate, technology, exploration, station, and government.

## Known failure modes

- Invalid or unsupported category value returns an error response
- Payment not provided or x402 handshake fails — request is rejected with 402 Payment Required
- Rate limiting or Cloudflare Worker quota exceeded — 429 or 503 response
- No articles currently available for a valid category — empty articles array
- Network timeout from the upstream government source during article fetching

## How this service works

x402-gated open-government news JSON API for AI agents. Categories: space, climate, technology, exploration, station, government.

## Output

Returns a JSON object with an array of news articles for the requested category. Each article includes an ID, title, source name, URL, AI-rewritten summary, original source URL, tags, category, published and fetched timestamps, license note, and attribution text. Also includes metadata like article count, generation timestamp, and discovery/OpenAPI links.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "articles": [
    {
     "id": "news_space_example",
     "url": "https://www.nasa.gov/",
     "tags": [
      "space",
      "nasa",
      "science"
     ],
     "title": "NASA mission update",
     "source": "NASA",
     "summary": "In space: agent note covering a NASA mission update. Read the original NASA article via source_url for full details.",
     "category": "space",
     "fetched_at": "2026-08-01T12:05:00.000Z",
     "source_url": "https://www.nasa.gov/",
     "attribution": "Source: NASA. Summary rewritten for AI agents; always open source_url for the original document.",
     "source_name": "NASA",
     "license_note": "U.S. federal government work (NASA). Generally public domain in the U.S.; credit NASA and link source_url.",
     "published_at": "2026-08-01T12:00:00.000Z"
    }
   ],
   "category": "space",
   "generated_at": "2026-08-01T12:05:00.000Z",
   "article_count": 1
  },
  "links": {
   "self": "https://latest-news-api.latest-news.workers.dev/v1/news/space",
   "openapi": "https://latest-news-api.latest-news.workers.dev/openapi.json",
   "discovery": "https://latest-news-api.latest-news.workers.dev/"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/latest-news-api-open-government-news-by-category-4fca9933/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from latest-news-api.latest-news.workers.dev](https://www.zero.xyz/host/latest-news-api.latest-news.workers.dev/llms.txt)
