{"uid":"cap_wKwBtFj0_l84gOBevs5Ln","slug":"latest-news-api-open-government-news-by-category-4fca9933","name":"Latest News API – Open Government News by Category","description":"x402-gated open-government news JSON API for AI agents. Categories: space, climate, technology, exploration, station, government.","url":"https://latest-news-api.latest-news.workers.dev/v1/news/%7Bcategory%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"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/"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YYIAbKQDOEb7HATF8Ypwi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"Pull the latest space news from the open-government news API and give me a summary of each article.","exampleUseCases":[{"title":"Daily space news briefing for agent","prompt":"Every morning, grab the latest space category news and read me the top headlines and summaries."},{"title":"Climate news digest for research tool","prompt":"Fetch the most recent climate news articles and list the titles, sources, and summaries so I can review what government agencies are reporting."},{"title":"Technology policy news roundup","prompt":"Get me the latest government technology news — I want titles and summaries for all the articles currently available."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T00:30:01.738Z","isFirstParty":false}