{"name":"WebLens","version":"2.0.0","tagline":"Give your AI agents web superpowers","description":"Premium Web Intelligence API - Give your AI agents web superpowers with x402 micropayments. No API keys, no accounts, just pay per request with USDC on Base.","baseUrl":"https://api.weblens.dev","protocol":{"name":"x402","version":2,"network":"base","token":"USDC","facilitator":"payai+cdp","bazaarListed":false},"documentation":{"interactive":"https://api.weblens.dev/docs","openapi":"https://api.weblens.dev/openapi.json","llms":"https://api.weblens.dev/llms.txt","mcp":"https://api.weblens.dev/mcp/info"},"whyChooseUs":["Zero friction - No accounts, API keys, or subscriptions","AI-optimized - Structured outputs designed for autonomous agents","Instant settlement - Payments settle in ~1-2 seconds on Base","No fees - x402 protocol has 0 platform fees","Bazaar listed - Discoverable via Coinbase Bazaar","MCP support - Native Model Context Protocol integration","Cache discount - 70% off for cached responses","Free previews - POST /preview returns the price and a real response sample before you pay","ERC-8004 ready - Off-chain registration document, per-call receipts, and hosted feedback documents"],"capabilities":["web-scraping","javascript-rendering","screenshot-capture","web-search","news-search","image-search","local-business-data","shopping-search","academic-search","keyword-autocomplete","trend-analysis","youtube-transcripts","grounded-answers","deep-research","cited-research","bulk-page-contents","site-mapping","sitemap-discovery","web-crawling","data-extraction","ai-powered-analysis","pdf-extraction","url-monitoring","persistent-memory","batch-operations","url-comparison","autonomous-context-verification","truth-oracle","web-intelligence","cryptographic-proofs","reputation-aware","free-previews","endpoint-previews","erc-8004","agent-reputation","call-receipts"],"useCases":["AI agent web browsing and research","Multi-step cited research with source attribution","Automated fact-checking and verification","Content aggregation and monitoring","Whole-site crawling and knowledge base ingestion","Competitive intelligence gathering","Lead generation and data mining","Visual testing and archiving","Document processing and extraction","Multi-source comparison analysis","Persistent agent memory across sessions","Evaluating an endpoint's price and response shape before paying","Citable payment receipts and ERC-8004 feedback for agent reputation"],"services":[{"endpoint":"/fetch/basic","method":"POST","name":"Fetch Webpage (Basic)","description":"Fast webpage to markdown conversion without JavaScript rendering","price":"$0.002","tags":["web-scraping","markdown","fast","static-content"],"latency":"1-3 seconds","rateLimit":"100/minute"},{"endpoint":"/fetch/pro","method":"POST","name":"Fetch Webpage (Pro)","description":"Full JavaScript rendering with headless Chromium for SPAs and dynamic content","price":"$0.006","tags":["web-scraping","javascript","spa","dynamic-content"],"latency":"3-8 seconds","rateLimit":"50/minute"},{"endpoint":"/fetch/resilient","method":"POST","name":"Resilient Fetch (Agent Prime)","description":"Multi-tier fetch with automatic fallback: native scraper, then headless Chromium for JS-rendered or bot-walled pages.","price":"$0.008","tags":["web-scraping","resilient","fallback","premium"],"latency":"2-10 seconds","rateLimit":"50/minute"},{"endpoint":"/screenshot","method":"POST","name":"Screenshot Capture","description":"High-quality PNG screenshots with custom viewports and element targeting","price":"$0.008","tags":["screenshot","visual","image","archiving"],"latency":"2-5 seconds","rateLimit":"50/minute"},{"endpoint":"/search","method":"POST","name":"Web Search","description":"Real-time web search with ranked results via SerpAPI. Set includeContent to also fetch the top result pages as markdown (+$0.0015/result).","price":"$0.015","tags":["search","google","real-time","information-retrieval"],"latency":"1-2 seconds","rateLimit":"100/minute"},{"endpoint":"/search/news","method":"POST","name":"News Search","description":"Real-time news search via Google News. Returns ranked articles with source, date, and thumbnail.","price":"$0.015","tags":["search","news","news-search","real-time"],"latency":"1-2 seconds","rateLimit":"100/minute"},{"endpoint":"/search/images","method":"POST","name":"Image Search","description":"Google Images search. Returns direct image URLs with dimensions, thumbnails, and source pages.","price":"$0.015","tags":["search","images","image-search","visual"],"latency":"1-2 seconds","rateLimit":"100/minute"},{"endpoint":"/search/places","method":"POST","name":"Places Search","description":"Local business search via Google Local. Returns names, addresses, ratings, reviews, phone numbers, websites, and coordinates.","price":"$0.045","tags":["search","places","local-business-data","maps"],"latency":"1-3 seconds","rateLimit":"100/minute"},{"endpoint":"/search/shopping","method":"POST","name":"Shopping Search","description":"Google Shopping product search. Returns products with prices, sellers, ratings, and links.","price":"$0.015","tags":["search","shopping","products","e-commerce"],"latency":"1-2 seconds","rateLimit":"100/minute"},{"endpoint":"/search/scholar","method":"POST","name":"Scholar Search","description":"Google Scholar academic search. Returns papers with snippets, publication info, and citation counts.","price":"$0.015","tags":["search","scholar","academic","research-papers"],"latency":"1-2 seconds","rateLimit":"100/minute"},{"endpoint":"/search/autocomplete","method":"POST","name":"Autocomplete","description":"Google Autocomplete suggestions for a partial query. Useful for keyword research and intent discovery.","price":"$0.015","tags":["search","autocomplete","keywords","seo"],"latency":"<1 second","rateLimit":"100/minute"},{"endpoint":"/search/trends","method":"POST","name":"Trends","description":"Google Trends interest-over-time for a query. Returns a timeline of relative search interest.","price":"$0.015","tags":["search","trends","trend-analysis","time-series"],"latency":"1-3 seconds","rateLimit":"100/minute"},{"endpoint":"/social/youtube/transcript","method":"POST","name":"YouTube Transcript","description":"Full transcript of any YouTube video with timestamps. Accepts a video ID or any YouTube URL (watch, shorts, youtu.be).","price":"$0.03","tags":["social","youtube","youtube-transcripts","video"],"latency":"1-3 seconds","rateLimit":"50/minute"},{"endpoint":"/contents","method":"POST","name":"Bulk Page Contents","description":"Cheap bulk page text: fetch 1-20 URLs and get clean markdown, truncated to a per-page cap.","price":"$0.0015/URL","tags":["web-scraping","bulk","markdown","contents"],"latency":"2-10 seconds","rateLimit":"50/minute"},{"endpoint":"/answer","method":"POST","name":"Grounded Answer","description":"Grounded answer with inline [n] citations: searches the web, fetches sources, and answers strictly from them.","price":"$0.05","tags":["research","answer","grounded-answers","citations","ai-powered"],"latency":"5-20 seconds","rateLimit":"20/minute"},{"endpoint":"/extract","method":"POST","name":"Structured Data Extraction","description":"Extract data using JSON schema with AI-powered understanding","price":"$0.03","tags":["extraction","structured-data","json-schema","ai-powered"],"latency":"3-6 seconds","rateLimit":"50/minute"},{"endpoint":"/extract/smart","method":"POST","name":"Smart Extraction","description":"Natural language data extraction - just describe what you want","price":"$0.035","tags":["extraction","natural-language","ai-powered","flexible"],"latency":"4-8 seconds","rateLimit":"30/minute"},{"endpoint":"/research","method":"POST","name":"AI Research Assistant","description":"One-stop research: search + fetch + AI summary with key findings","price":"$0.08","tags":["research","ai-summary","analysis","comprehensive"],"latency":"10-30 seconds","rateLimit":"20/minute"},{"endpoint":"/research/deep","method":"POST","name":"Deep Research (Cited)","description":"Multi-step cited research in one synchronous call — no async job or polling. Plans sub-questions, searches each, fetches and dedupes sources, then synthesizes an answer with inline [n] citations, key findings, and gaps. $0.20 standard (3 sub-questions, 8 sources) / $0.35 deep (5 sub-questions, 12 sources). Long-running: use a generous client timeout.","price":"$0.20-$0.35","tags":["research","deep-research","cited-research","citations","ai-powered"],"latency":"30-60 seconds","rateLimit":"10/minute"},{"endpoint":"/batch/fetch","method":"POST","name":"Batch Fetch","description":"Fetch 2-20 URLs in parallel for efficient bulk operations","price":"$0.0015/URL","tags":["batch","parallel","bulk","efficient"],"latency":"5-15 seconds","rateLimit":"20/minute"},{"endpoint":"/domain","method":"POST","name":"Domain Intelligence","description":"Registration (registrar, age, expiry, status), live DNS, the mail and DNS providers behind it, the SaaS vendors its TXT verification tokens reveal, SPF/DMARC posture, and risk signals.","price":"$0.005","tags":["domain","whois","rdap","dns","due-diligence","security"],"latency":"1-3 seconds","rateLimit":"50/minute"},{"endpoint":"/tech","method":"POST","name":"Technology Detection","description":"What a site is built and run on — framework, CMS, ecommerce, CDN, analytics, payments, support widgets and web server — each with the header or HTML marker that proves it.","price":"$0.005","tags":["tech-stack","fingerprinting","competitive-intel","prospecting"],"latency":"1-4 seconds","rateLimit":"50/minute"},{"endpoint":"/package","method":"POST","name":"Package Intelligence","description":"Should you depend on this package? Version, license, deprecation with the maintainer's reason, downloads, release recency, maintainer count and health signals. npm and PyPI.","price":"$0.003","tags":["npm","pypi","dependencies","supply-chain","developer-tools"],"latency":"1-3 seconds","rateLimit":"50/minute"},{"endpoint":"/discussions","method":"POST","name":"Hacker News Discussions","description":"What Hacker News said about a topic: stories with points and comments, plus aggregates — total matches, most-submitted domains, and when it was first and last discussed.","price":"$0.004","tags":["hacker-news","sentiment","discussions","market-research"],"latency":"1-3 seconds","rateLimit":"50/minute"},{"endpoint":"/intel/project","method":"POST","name":"Project Due Diligence (off-chain)","description":"The half an on-chain rug checker cannot see: domain age and registrar, whether a team page, whitepaper, docs and socials exist, whether the site is an off-the-shelf template, and a cross-check of a contract address against the addresses printed on the project's own website. Weighted risk signals and an A-F grade. Reads nothing on-chain.","price":"$0.05","tags":["due-diligence","crypto","risk","osint","off-chain","token-safety"],"latency":"2-6 seconds","rateLimit":"30/minute"},{"endpoint":"/map","method":"POST","name":"Site Map","description":"Discover a site's URLs without fetching page content: robots.txt sitemap directives, sitemap.xml and nested sitemap indexes, falling back to homepage link extraction.","price":"$0.004","tags":["site-mapping","sitemap-discovery","urls","crawling"],"latency":"1-5 seconds","rateLimit":"50/minute"},{"endpoint":"/crawl","method":"POST","name":"Site Crawl","description":"Bounded same-host BFS crawl returning clean markdown for every page in one synchronous call — no async job or polling. robots.txt honoured by default. Billed on the requested page budget (1-25), not pages returned.","price":"$0.0015/page","tags":["web-crawling","site-mapping","markdown","bulk"],"latency":"5-30 seconds","rateLimit":"20/minute"},{"endpoint":"/pdf","method":"POST","name":"PDF Extraction","description":"Extract text and metadata from PDF documents","price":"$0.004","tags":["pdf","document","text-extraction","metadata"],"latency":"2-10 seconds","rateLimit":"30/minute"},{"endpoint":"/compare","method":"POST","name":"URL Comparison","description":"AI-powered comparison of 2-3 webpages with similarity analysis","price":"$0.05","tags":["comparison","analysis","ai-powered","diff"],"latency":"10-20 seconds","rateLimit":"20/minute"},{"endpoint":"/monitor/create","method":"POST","name":"URL Monitor","description":"Create change detection monitors with webhook notifications","price":"$0.01","tags":["monitoring","change-detection","webhook","alerts"],"latency":"1-2 seconds","rateLimit":"50/minute"},{"endpoint":"/memory/set","method":"POST","name":"Memory Storage","description":"Persistent key-value storage for AI agent context","price":"$0.001","tags":["memory","storage","persistence","agent-context"],"latency":"<1 second","rateLimit":"100/minute"},{"endpoint":"/intel/company","method":"POST","name":"Company Intelligence","description":"Comprehensive company deep dive: tech stack, funding, team size, competitors, news. Chains search + batch fetch + AI extraction.","price":"$1.00","tags":["intelligence","company-research","ai-powered","premium"],"latency":"10-30 seconds","rateLimit":"20/minute"},{"endpoint":"/intel/market","method":"POST","name":"Market Research Report","description":"AI-powered market research: executive summary, key findings, trends, key players, data points, and recommended actions.","price":"$5.00","tags":["intelligence","market-research","ai-powered","premium"],"latency":"15-45 seconds","rateLimit":"10/minute"},{"endpoint":"/intel/competitive","method":"POST","name":"Competitive Analysis","description":"Full competitive analysis: feature matrix, pricing comparison, SWOT analysis, positioning summary.","price":"$8.00","tags":["intelligence","competitive-analysis","ai-powered","premium"],"latency":"15-45 seconds","rateLimit":"10/minute"},{"endpoint":"/intel/site-audit","method":"POST","name":"Site Audit","description":"Comprehensive SEO, performance, and security audit with actionable recommendations and scoring.","price":"$0.75","tags":["intelligence","seo","audit","ai-powered","premium"],"latency":"5-15 seconds","rateLimit":"30/minute"}],"pricing":{"currency":"USDC","network":"base","cacheDiscount":"70% off for cached responses","noFees":"x402 protocol has 0 fees","instantSettlement":"~1-2 seconds on Base","priceRange":"$0.0005 - $8.00 per request"},"integration":{"mcp":{"remote":"https://api.weblens.dev/mcp","local":"npx -y @weblens/mcp","description":"Model Context Protocol for AI agents (Claude, Kiro, etc.)"},"http":{"baseUrl":"https://api.weblens.dev","auth":"x402 v2 payment via Payment-Signature header"},"paymentMethods":[{"name":"x402 (USDC on Base)","path":"POST <any paid endpoint>","description":"Pay per request with on-chain USDC. No account needed."},{"name":"Credit account (prepaid USDC)","path":"POST /credits/buy","description":"Deposit USDC once, sign subsequent requests with X-CREDIT-WALLET. 20–40% bonus at $10/$50/$100."}]},"agentQuickStart":{"step0":"Try it instantly! GET /r/https://example.com — zero friction, no wallet, no POST body needed","step1":"Call any paid endpoint (e.g., POST /fetch/basic with {url: 'https://example.com'})","step2":"Receive 402 Payment Required — read the PAYMENT-REQUIRED response header (base64-encoded JSON) for amount, asset, payTo, accepts","step3":"Sign USDC payment using your wallet (Base network)","step4":"Retry with the Payment-Signature header containing the signed payload","step5":"Receive data; settlement receipt is in the PAYMENT-RESPONSE response header"},"freeTier":{"description":"Try WebLens free — no wallet or payment needed","endpoints":[{"endpoint":"/r/https://example.com","uriTemplate":"/r/{url}","example":"/r/https://example.com","method":"GET","name":"Reader Mode","description":"Zero-friction: just GET /r/ + any URL → markdown. No auth, no POST body.","price":"FREE","rateLimit":"10/hour","tags":["free","reader","zero-friction","viral"]},{"endpoint":"/s/cloudflare+workers","uriTemplate":"/s/{query}","example":"/s/cloudflare+workers","method":"GET","name":"Search Reader","description":"Zero-friction: just GET /s/ + query → search results. No auth, no POST body.","price":"FREE","rateLimit":"10/hour","tags":["free","search","zero-friction","viral"]},{"endpoint":"/free/fetch","method":"POST","name":"Free Fetch","description":"Fetch any webpage (content truncated to 2000 chars)","price":"FREE","rateLimit":"10/hour","tags":["free","web-scraping","trial"]},{"endpoint":"/free/search","method":"POST","name":"Free Search","description":"Web search (max 3 results)","price":"FREE","rateLimit":"10/hour","tags":["free","search","trial"]},{"endpoint":"/preview","method":"POST","name":"Endpoint Preview","description":"See a paid endpoint's live price and a real sample of its response shape before paying. Body: {endpoint, url?}. Endpoints with no paid upstream (/fetch/basic, /contents, /map) also run a real truncated LIVE preview when you pass a url; SerpAPI- and Anthropic-backed endpoints return the recorded sample instead, because free live runs there would burn upstream credits. 404 for an endpoint that is not sold.","price":"free","rateLimit":"10/hour","tags":["free","free-previews","endpoint-previews","evaluation","pricing"]},{"endpoint":"/.well-known/agent-registration.json","method":"GET","name":"ERC-8004 Registration Document","description":"The ERC-8004 registration document (registration-v1): name, description, image, services, x402Support, payment, and feedback endpoints. Off-chain only — WebLens is not registered on-chain, holds no agent id, and writes nothing to any registry, so registrations is empty and supportedTrust is [\"feedback\"].","price":"free","rateLimit":"none","tags":["free","erc-8004","agent-reputation","identity","discovery"]},{"uriTemplate":"/receipts/{requestId}","example":"/receipts/6f9619ff-8b86-d011-b42d-00cf4fc964ff","method":"GET","name":"Call Receipt","description":"Receipt for a paid call: endpoint, status, outcome, price, payment method, network, payTo. Paid responses carry X-Receipt-Id and X-Receipt-Url headers; receipts are kept 30 days. The mac field, when present, is a symmetric HMAC tag verifiable only by the key holder — not a third-party-verifiable signature.","price":"free","rateLimit":"none","tags":["free","erc-8004","call-receipts","payment-evidence"]},{"endpoint":"/feedback","method":"POST","name":"Host ERC-8004 Feedback","description":"Host a buyer-authored ERC-8004 feedback document and get back the (feedbackURI, feedbackHash) pair giveFeedback() expects. Required fields: agentRegistry, agentId, clientAddress, createdAt, value, valueDecimals. Stored verbatim — WebLens neither authors nor alters it and never calls the registry.","price":"free","rateLimit":"10/hour","tags":["free","erc-8004","agent-reputation","feedback"]},{"uriTemplate":"/feedback/{id}","example":"/feedback/6f9619ff-8b86-d011-b42d-00cf4fc964ff","method":"GET","name":"Get Hosted Feedback","description":"Serves a hosted feedback document byte-for-byte, so its keccak-256 hash matches the feedbackHash returned when it was stored. This URL is the feedbackURI.","price":"free","rateLimit":"none","tags":["free","erc-8004","agent-reputation","feedback"]}],"limits":{"requestsPerHour":10,"fetchContentLength":2000,"searchMaxResults":3},"upgrade":"Use paid endpoints for full content, unlimited access, and premium features"},"_links":{"self":"https://api.weblens.dev/discovery","docs":"https://api.weblens.dev/docs","openapi":"https://api.weblens.dev/openapi.json","health":"https://api.weblens.dev/health","mcp":"https://api.weblens.dev/mcp"}}