{"uid":"cap_0sAdEj5gJluQwYez46pjt","slug":"saylor-innovations-hacker-news-search-5b57bebf","name":"Saylor Innovations Hacker News Search","description":"Hacker News search - stories or comments matching a query with points, comment counts, dates and links, newest or most relevant first","url":"https://saylorinnovations.com/api/hn/search?utm_source=zero.xyz","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","required":["q"],"properties":{"q":{"type":"string","description":"Words to search for"},"limit":{"type":"string","description":"optional 1-30, default 10"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["query","hits"],"properties":{"hits":{"type":"array","items":{"type":"object","properties":{"url":{"type":["string","null"],"description":"Canonical URL"},"title":{"type":["string","null"],"description":"Title"},"author":{"type":"string","description":"Author name"},"hn_url":{"type":"string","description":"Hn URL"},"points":{"type":["number","null"]},"comments":{"type":["number","null"]},"created_at":{"type":"string","description":"Created at (UTC unless a time zone is given)"}}}},"sort":{"type":["string","null"],"description":"Sort order applied"},"type":{"type":["string","null"],"description":"Type or kind"},"query":{"type":"string","description":"The query as the server interpreted it"},"source":{"type":["string","null"],"description":"Data source the values come from"},"returned":{"type":"number","description":"Number of items in this response"},"checked_at":{"type":["string","null"],"description":"Time the check was run (UTC)"},"window_days":{"description":"Number of days in the lookback window"},"total_matches":{"type":"number","description":"Total number of matches before any limit is applied"}}}}}}},"responseSchema":null,"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_s62ENacdaTNJjfpBlzV_2","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":"Search Hacker News stories and comments by keyword, returning titles, points, comment counts, dates, and links sorted by relevance or recency","exampleAgentPrompt":"Search Hacker News for the top 10 stories about 'WebAssembly' and show me the titles, points, comment counts, and links.","exampleUseCases":[{"title":"Track developer sentiment on a new tool","prompt":"Search Hacker News for posts about 'Bun runtime' and give me the top 15 results with their points and comment counts so I can see how the dev community is reacting to it."},{"title":"Research a company before a meeting","prompt":"Find me recent Hacker News discussions mentioning 'Anthropic' — I want to see what people are saying, how many upvotes the posts got, and links to the threads."},{"title":"Monitor AI news on HN","prompt":"Pull the latest 20 Hacker News stories about 'large language models' sorted by newest first, with titles, dates, and URLs."}],"resultDescription":"A JSON object containing the interpreted query string, sort order applied, data source, total match count, number of results returned, and an array of hit objects each with: story title, canonical article URL, HN thread URL, author name, points, comment count, and UTC creation timestamp.","failureModes":["Missing required 'q' parameter returns an error","Limit out of range (>30 or <1) may be clamped or rejected","Query returning zero results yields an empty hits array with total_matches: 0","Network or upstream HN/Algolia outage may cause 5xx errors","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need structured, queryable access to Hacker News content — stories or comments — with metadata like points and comment counts, without scraping HN directly. Ideal for agents monitoring developer community sentiment, researching how a technology or company is perceived in tech circles, or surfacing trending discussions. Prefer this over raw web scraping for reliability and structured output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:41:27.620Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-hacker-news-search-5b57bebf"}