{"uid":"cap_fASwtLxR-bcIWMf_cNROw","slug":"latest-news-api-fetch-article-by-id-0b1284fb","name":"Latest News API – Fetch Article by ID","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/articles/%7Bid%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"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/"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JqxWRkJfdIsvth9h1nulQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Space mission briefing for agent","prompt":"Fetch the government news article with ID 'news_space_apollo_update' and give me the title, summary, and a link to the original NASA source so I can include it in my briefing."},{"title":"Climate policy update digest","prompt":"I have an article ID 'news_climate_2026_summit' — can you retrieve that open-government climate article and show me its summary, tags, and when it was published?"},{"title":"Technology news feed enrichment","prompt":"Look up the government technology article 'news_tech_ai_policy_2026' and return its full summary, category, and attribution so I can add it to my newsletter draft."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-12T18:30:01.684Z","isFirstParty":false}