# Latest News API – Fetch Article by ID

> Latest News API – Fetch Article by ID is a paid API for AI agents from latest-news-api.latest-news.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-12).

Retrieves a single open-government news article by its ID, returning an AI-optimized summary with attribution, tags, and source URL across categories like space, climate, and technology.

## Facts

- Endpoint: GET https://latest-news-api.latest-news.workers.dev/v1/articles/%7Bid%7D
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/latest-news-api-fetch-article-by-id-0b1284fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fASwtLxR-bcIWMf_cNROw

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-fetch-article-by-id-0b1284fb
```

Example prompt: Can you pull up the open-government news article with ID 'news_space_example' — I want the summary, category, tags, and the original source link so I can read the full NASA piece.

## When to prefer this

Choose this endpoint when you have a specific article ID and need to retrieve structured, AI-optimized news content from open-government sources (NASA, federal agencies) with proper attribution and licensing metadata included. It is ideal for AI agent pipelines that need citable, public-domain news summaries without scraping. Prefer this over general web search when you need structured JSON with category tags, publish timestamps, and license notes in a single call.

## Known failure modes

- Invalid or non-existent article ID returns a 404 or error response
- Missing or invalid x402 payment header results in a 402 Payment Required response before content is served
- Malformed ID format may return a validation error
- Temporary Cloudflare Worker outage could return a 503 Service Unavailable

## 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 ok:true and a data.article object containing the article's ID, title, AI-optimized summary, category (space/climate/technology/exploration/station/government), tags array, source name, source URL, publication timestamp, fetch timestamp, attribution statement, and license note. Also includes HATEOAS links to the article itself, OpenAPI spec, and the discovery endpoint.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "article": {
    "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"
   }
  },
  "links": {
   "self": "https://latest-news-api.latest-news.workers.dev/v1/articles/news_space_example",
   "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-fetch-article-by-id-0b1284fb/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)
