{"uid":"cap_C8BRhYQLQnNg81ZFnXEW3","slug":"toll402-hacker-news-top-stories-9af619eb","name":"Toll402 Hacker News Top Stories","description":"Top N Hacker News stories (title, url, score) via https://hacker-news.firebaseio.com/v0/topstories.json and /v0/item/<id>.json","url":"https://toll402.dev/v1/t/hn_top","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["n"],"properties":{"n":{"type":"integer","maximum":30,"minimum":1}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_90Kc37Jc4UDRqxlDdpQBz","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":"Returns the top N Hacker News stories (title, URL, and score) by fetching from the official HN Firebase API","exampleAgentPrompt":"What are the top 10 stories on Hacker News right now — give me the title, link, and score for each?","exampleUseCases":[{"title":"Daily tech briefing for developers","prompt":"Grab the top 5 Hacker News stories this morning so I can skim what's trending in tech before my standup."},{"title":"Newsletter content curation","prompt":"Pull the top 15 Hacker News posts right now — I want the titles, URLs, and scores so I can pick the best ones for my weekly newsletter."},{"title":"Trending topic monitoring","prompt":"What are the top 30 stories on Hacker News at this moment? I want to see titles and scores to spot what topics are getting the most attention today."}],"resultDescription":"A list of up to N Hacker News stories, each containing the story title, the original URL, and the current upvote score, sourced live from the HN Firebase API.","failureModes":["n out of range (must be integer 1–30) — request rejected with validation error","HN Firebase API unavailable — upstream timeout or empty response","n not provided — required field missing causes schema validation failure","Network timeout reaching hacker-news.firebaseio.com — partial or no results returned"],"whenToPreferThis":"Use this endpoint when you need a quick, live snapshot of what's currently trending on Hacker News without managing Firebase API calls yourself. It abstracts the two-step HN API pattern (top story IDs + individual item fetches) into a single call. Prefer it over scraping HN directly or maintaining your own Firebase client when you need titles, URLs, and scores in a clean structured response with a pay-per-call model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:04:18.030Z","isFirstParty":false}