{"slug":"api-weblens-dev-discussions-a2d645","title":"What Hacker News said about a topic","host":"api.weblens.dev","method":"POST","resource":"https://api.weblens.dev/discussions","category":"search","description":"What Hacker News said about a topic: matching stories with points, comment counts and links to the threads, plus aggregates — total matches, points and comments returned, the domains most often submitted, and the first/last time it was discussed.","price_listed":0.004,"price_asked":0.004,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":503,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"limit":10,"query":"cloudflare workers"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"limit":{"default":10,"description":"Stories to return (1-50, default 10)","example":10,"maximum":50,"minimum":1,"type":"number"},"query":{"description":"What to search Hacker News for","example":"cloudflare workers","maxLength":200,"minLength":1,"type":"string"},"sort":{"default":"relevance","description":"Rank by relevance (default) or newest first","enum":["relevance","recent"],"type":"string"}},"required":["query"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"discussedAt":{"type":"string"},"query":{"type":"string"},"requestId":{"type":"string"},"sort":{"type":"string"},"source":{"enum":["hackernews"],"type":"string"},"stories":{"description":"Each: title, url, points, comments, author, postedAt, discussionUrl","items":{"properties":{"author":{"type":"string"},"comments":{"type":"integer"},"discussionUrl":{"description":"Link to the HN thread","type":"string"},"points":{"type":"integer"},"postedAt":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"}},"type":"object"},"type":"array"},"summary":{"description":"totalMatches, returned, pointsReturned, commentsReturned, topDomains, firstSeen, lastSeen","properties":{"commentsReturned":{"description":"Summed over the RETURNED stories only","type":"integer"},"firstSeen":{"type":"string"},"lastSeen":{"type":"string"},"pointsReturned":{"description":"Summed over the RETURNED stories only","type":"integer"},"returned":{"type":"integer"},"topDomains":{"description":"Most-submitted domains among the returned stories","type":"array"},"totalMatches":{"description":"Stories HN matched overall, which may exceed those returned","type":"integer"}},"type":"object"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":503,"error":null}],"description_full":"What Hacker News said about a topic: matching stories with points, comment counts and links to the threads, plus aggregates — total matches, points and comments returned, the domains most often submitted, and the first/last time it was discussed.","last_updated":"2026-10-14T16:14:02.72Z","schemes":["exact"]}