{"uid":"cap_8WeeWVEYcEaSZXKlQdMU1","slug":"hacker-news-top-stories-feed-0c368adf","name":"Hacker News Top Stories Feed","description":"Current Hacker News top stories with score, author, comment count, and links. For tech-trend, sentiment, and news-monitoring agents. Live from the Hacker News API.","url":"https://x402-agent-store.rileycraig14.workers.dev/hn/top","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"top":{"type":"number","description":"1-20, default 10"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"count":{"type":"number"},"stories":{"type":"array"}}}}}}},"responseSchema":{"type":"json","example":{"count":10,"stories":[{"url":"https://...","score":250,"title":"Show HN: ..."}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.09","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.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5Fbj-IAAoWUug5C2rlTwP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the current top stories from Hacker News, returning titles, scores, and URLs for up to 20 stories per call","exampleAgentPrompt":"What are the top 15 stories on Hacker News right now? Show me their titles and scores.","exampleUseCases":null,"resultDescription":"A JSON object containing a count field and a stories array, where each story has a title, URL, and score — representing the current top-ranked posts on Hacker News front page, sorted by HN ranking.","failureModes":["Payment not received or insufficient USDC — HTTP 402 returned","top parameter out of range (must be 1-20) — validation error","HN API upstream unavailability causing empty or partial response","Network timeout from the Cloudflare Worker"],"whenToPreferThis":"Use this endpoint when you need real-time Hacker News front page data without managing API keys or subscriptions — ideal for AI agents that need a pay-per-call, zero-signup feed of top tech stories to summarize, monitor, or route to users. Prefer this over scraping HN directly or maintaining your own polling infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:33:13.613Z","isFirstParty":false}