{"uid":"cap_cdxOqRVb8P1aPGDoapcEO","slug":"weblens-discussions-search-api-d96d80fa","name":"WebLens Discussions Search API","description":"# WebLens - Web Intelligence API, pay per call\n\nScrape, crawl, map and extract the web. No account, no API key, no monthly\nminimum — you pay for the calls you make and nothing else.\n\n## Pricing\nPage fetching starts at **$0.002**, whole-site crawling at\n**$0.0015/page**, and sitemap discovery at **$0.004**.\nComparable services bill $0.007-0.008 per request, or reach a lower per-page\nrate only on a $99/month commitment. WebLens has no commitment to reach.\n\n## Payment Protocol\nAll paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native\nmicropayments (USDC on Base).\n\n## Cache Discount\nCached responses are **70% cheaper** than fresh fetches.","url":"https://api.weblens.dev/discussions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"sort":{"enum":["relevance","recent"],"type":"string","description":"Ranking (default relevance)"},"limit":{"type":"number","maximum":50,"description":"Stories to return (1-50, default 10)"},"query":{"type":"string","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-10-02T12:39:48.000Z","isFirstParty":false,"canonicalSlug":"weblens-discussions-search-api-d96d80fa"}