{"uid":"cap_cdxOqRVb8P1aPGDoapcEO","slug":"weblens-discussions-search-api-d96d80fa","name":"WebLens Discussions Search API","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.","url":"https://api.weblens.dev/discussions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"sort":{"enum":["relevance","recent"],"type":"string","default":"relevance","description":"Rank by relevance (default) or newest first"},"limit":{"type":"number","default":10,"example":10,"maximum":50,"minimum":1,"description":"Stories to return (1-50, default 10)"},"query":{"type":"string","example":"cloudflare workers","maxLength":200,"minLength":1,"description":"What to search Hacker News for"}}},"responseSchema":{"type":"json","example":{"sort":"relevance","query":"cloudflare workers","source":"hackernews","stories":[{"url":"https://github.com/cloudflare/workerd","title":"Workerd: Open-source Cloudflare Workers runtime","author":"jgrahamc","points":689,"comments":133,"postedAt":"2022-09-27T14:00:00.000Z","discussionUrl":"https://news.ycombinator.com/item?id=32979198"}],"summary":{"lastSeen":"2026-07-30T00:00:00.000Z","returned":10,"firstSeen":"2018-03-12T00:00:00.000Z","topDomains":[{"count":3,"domain":"github.com"}],"totalMatches":1259,"pointsReturned":3421,"commentsReturned":2870},"requestId":"req_disc123","discussedAt":"2026-08-02T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WQMaF-edUHD0GlrRNtjKB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches and retrieves community discussions (e.g. Hacker News) matching a query, returning ranked stories with metadata and aggregate summary statistics","exampleAgentPrompt":"Search Hacker News discussions for 'cloudflare workers' and show me the top results sorted by relevance, including points and comment counts.","exampleUseCases":[{"title":"Track developer sentiment on a new release","prompt":"Search Hacker News for discussions about 'Bun 1.0' sorted by relevance — I want to see what the community is saying, how many points the top posts got, and which domains are most linked."},{"title":"Competitive research on a rival product","prompt":"Find all Hacker News discussions mentioning 'Vercel' sorted by relevance so I can see what developers are praising or complaining about over time."},{"title":"Discover community buzz around an open source project","prompt":"Look up Hacker News discussions about 'Rust async' and give me a summary of the top stories, including when they were posted and how many comments they generated."}],"resultDescription":"Returns a JSON object containing a list of matching discussion stories (each with URL, title, author, points, comment count, post timestamp, and direct discussion URL), plus a summary block with total matches, date range of results, number of stories returned, total points and comments across results, and top linked domains. Also includes a request ID and the timestamp of the search.","failureModes":["Invalid or unsupported source parameter returns an error","Empty or overly broad query may return low-relevance results","Payment failure via x402 protocol results in 402 Payment Required response","Rate limiting or network errors may cause transient failures","Very recent events may not yet be indexed, returning partial or empty results"],"whenToPreferThis":"Choose this endpoint when you need to search developer-community discussions (especially Hacker News) by keyword or topic, retrieve ranked story metadata with engagement signals (points, comments), and get aggregate statistics about community interest over time. Prefer it over general web scraping when the target is structured community discussion data rather than raw page content, and when you want pay-per-call pricing with no subscription commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T18:37:52.151Z","isFirstParty":false,"canonicalSlug":"weblens-discussions-search-api-d96d80fa"}