{"uid":"cap_W9NX0S62onV8JFeSHOwWh","slug":"latest-news-api-open-government-6a1403c8","name":"Latest News API (Open Government)","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","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"dataset":{"id":"open-gov-news","name":"Open Government News","license":"U.S. federal / open-government sources with source_url attribution","categories":["space","climate","technology","exploration","station","government"],"description":"Structured headlines for AI agents from open/public-sector sources.","schema_version":"2.0.0"},"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"}],"categories":["space","climate","technology","exploration","station","government"],"by_category":{"space":[{"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"}]},"generated_at":"2026-08-01T12:05:00.000Z","article_count":1},"links":{"self":"https://latest-news-api.latest-news.workers.dev/v1/news","openapi":"https://latest-news-api.latest-news.workers.dev/openapi.json","discovery":"https://latest-news-api.latest-news.workers.dev/"},"cached":false,"pricing":{"paid":true,"pay_to":"0x0000000000000000000000000000000000000000","network":"eip155:8453","protocol":"x402"},"request_id":"00000000-0000-0000-0000-000000000000","api_version":"1.0.0","cache_ttl_seconds":300}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zqe6oCsLmIqxdijadT8Hw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns structured, AI-agent-ready headlines from open U.S. government sources across categories like space, climate, technology, exploration, station, and government.","exampleAgentPrompt":"Pull the latest open-government news headlines across space, climate, and technology — I need structured summaries with source links I can trust.","exampleUseCases":[{"title":"Daily space mission briefing","prompt":"Give me today's latest space and NASA news from official government sources — structured summaries with links to the original articles."},{"title":"Climate policy news digest","prompt":"Fetch the most recent climate headlines from open government sources so I can include them in my weekly environmental policy newsletter."},{"title":"Tech news from public sector","prompt":"What are the latest technology news items published by federal or open-government agencies? I need titles, summaries, and source URLs."}],"resultDescription":"A JSON object containing a dataset descriptor (id, name, license, categories, schema version), a flat list of articles, and a by_category map. Each article includes id, title, summary, source name, source URL, category, tags, fetched_at, published_at, attribution, and license note. Also includes a generated_at timestamp, article count, and self/openapi links.","failureModes":["Payment not completed (x402 payment required — HTTP 402 returned if USDC micropayment not sent)","Invalid or missing category parameter returns all categories by default","Network/edge timeout from Cloudflare Workers may return 5xx","Empty article list if no new articles have been fetched for a category","Truncated summaries if upstream government sources are unavailable"],"whenToPreferThis":"Choose this endpoint when you need structured, AI-agent-ready news from open U.S. government sources (NASA, federal agencies) with proper attribution and license metadata. It is ideal for pipelines that require legally clear public-domain content with source_url attribution. Prefer it over general news APIs when the domain must be restricted to official government or public-sector sources across space, climate, technology, exploration, station, or government categories.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:32:20.383Z","isFirstParty":false}