{"uid":"cap_fm5bMTTmJ9_Lp1Oq7gIeO","slug":"alfred-x402-hacker-news-trending-6eb7391d","name":"ALFRED x402 Hacker News Trending","description":"Self-hosted personal-assistant paid tools via Lightning. Uses x402-shaped protocol (L402 lineage): HTTP 402 with a Lightning invoice in the response body + WWW-Authenticate header, retry with X-Payment-Hash: <hex> once paid. Results cached per payment_hash so legitimate retries don't cost twice.","url":"https://x402.wallace.us/x402/hackernews-trending","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"string","description":"(1-30, default 10)"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lOZlpZ74GOsg3rGaqGRYk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the top trending stories from Hacker News, payable per-call via Lightning/x402 protocol","exampleAgentPrompt":"What are the top 15 trending stories on Hacker News right now? Pay for it if needed.","exampleUseCases":null,"resultDescription":"A list of up to 30 trending Hacker News stories, likely including titles, URLs, scores, and ranking metadata, returned as a JSON object after payment via Lightning invoice (x402 protocol).","failureModes":["HTTP 402 returned if payment not yet made — requires paying Lightning invoice then retrying with X-Payment-Hash header","Invalid n parameter (outside 1-30 range) may return an error or default to 10","Payment hash not recognized or expired — requires initiating a new payment","Upstream Hacker News API unavailable — service may return 5xx","Cached result returned for same payment_hash on legitimate retry — expected behavior, not a failure"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call fetch of Hacker News trending stories without setting up a scraper or API key, and you're operating in an x402/L402 Lightning-payment-enabled agent environment. Prefer this over free alternatives when you want a self-hosted, privacy-respecting source with no rate-limit accounts required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:07.349Z","isFirstParty":false}