{"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 in USDC.","baseUrl":"https://api.weblens.dev","protocol":{"name":"x402","version":2,"token":"USDC","bazaarListed":false,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"facilitator":"cdp+payai"},"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 - Each payment settles on-chain in seconds","No fees - x402 protocol has 0 platform fees","Discoverable - Listed in the PayAI facilitator discovery catalog","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","batch-operations","web-intelligence","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","Whole-site crawling and knowledge base ingestion","Competitive intelligence gathering","Lead generation and data mining","Visual testing and archiving","Document processing and extraction","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":"Fetch and convert any webpage to clean markdown. Fast, no JavaScript rendering. Perfect for static content, articles, and documentation.","price":"$0.002 (70% off when served from cache); an x402 payment is at least $0.004","tags":["fetch","scraping","markdown"],"latency":"1-3 seconds"},{"endpoint":"/fetch/pro","method":"POST","name":"Fetch Webpage (Pro)","description":"Fetch webpage with full JavaScript rendering using headless browser. Perfect for SPAs, React/Vue apps, and dynamic content that requires JS execution.","price":"$0.006, up to 3x on bot-protected or complex sites (70% off when served from cache); an x402 payment is at least $0.004","tags":["fetch","scraping","markdown"],"latency":"3-8 seconds"},{"endpoint":"/fetch/resilient","method":"POST","name":"Resilient Fetch","description":"Resilient fetch with automatic fallback. Tries the fast native scraper first, then re-fetches through headless Chromium for client-rendered pages and sites that refuse bare HTTP clients. The response reports which tier served it.","price":"$0.008 (70% off when served from cache); an x402 payment is at least $0.004","tags":["fetch","scraping","markdown"],"latency":"2-10 seconds"},{"endpoint":"/screenshot","method":"POST","name":"Screenshot Capture","description":"Capture high-quality screenshots of any webpage using headless browser.","price":"$0.008","tags":["screenshot","rendering"],"latency":"2-5 seconds"},{"endpoint":"/contents","method":"POST","name":"Page Contents","description":"Cheap bulk page text: fetch 1-20 URLs and get clean markdown, truncated to a per-page cap. $0.0015 per URL.","price":"$0.0015 per URL (1-20); an x402 payment is at least $0.004","tags":["fetch","scraping","batch"],"latency":"2-10 seconds"},{"endpoint":"/map","method":"POST","name":"Site Map","description":"Discover a site's URLs without fetching page content. Reads robots.txt sitemap directives, sitemap.xml and nested sitemap indexes, falling back to homepage link extraction.","price":"$0.004","tags":["crawling","sitemap"],"latency":"1-5 seconds"},{"endpoint":"/crawl","method":"POST","name":"Site Crawl","description":"Crawl a site and get clean markdown for every page, in one call. Same-host BFS with depth and page-budget limits, robots.txt honoured by default. $0.0015 per requested page (1-25).","price":"$0.0015 per requested page (1-25); an x402 payment is at least $0.004","tags":["crawling","scraping"],"latency":"5-30 seconds"},{"endpoint":"/pdf","method":"POST","name":"PDF Text Extraction","description":"Extract text and metadata from PDF documents. Supports page-specific extraction and returns structured content.","price":"$0.004","tags":["pdf","documents"],"latency":"2-10 seconds"},{"endpoint":"/extract","method":"POST","name":"Structured Data Extraction","description":"Extract structured data from any webpage using JSON schema. AI-powered extraction that understands page context.","price":"$0.03, up to 3x on bot-protected or complex sites","tags":["extraction","ai","structured-data"],"latency":"3-6 seconds"},{"endpoint":"/search","method":"POST","name":"Web Search","description":"Real-time web search powered by Google. Returns ranked results with titles, URLs, and snippets. Set includeContent to also fetch the top result pages as markdown in the same call.","price":"$0.015, plus $0.0015 per result page fetched with includeContent","tags":["search","serp"],"latency":"1-2 seconds"},{"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","serp"],"latency":"1-2 seconds"},{"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","serp"],"latency":"1-2 seconds"},{"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","serp"],"latency":"1-3 seconds"},{"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","serp"],"latency":"1-2 seconds"},{"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","serp"],"latency":"1-2 seconds"},{"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","serp"],"latency":"<1 second"},{"endpoint":"/search/trends","method":"POST","name":"Trends Search","description":"Google Trends interest over time for a topic, worldwide: a timeline of relative search interest per period (0-100, where 100 is the topic's peak). Use it to see whether interest in a product, technology, brand or keyword is rising, falling or seasonal.","price":"$0.04","tags":["google trends","trends","search interest","keyword research","market research"],"latency":"1-3 seconds"},{"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.","price":"$0.03","tags":["video","transcript","youtube"],"latency":"1-3 seconds"},{"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":["search","ai","question-answering"],"latency":"5-20 seconds"},{"endpoint":"/research/deep","method":"POST","name":"Deep Research","description":"Multi-step research in one call: plans sub-questions, searches each, fetches and dedupes sources, and synthesizes an answer with inline [n] citations, key findings, and gaps. Tiers: quick = 1 search / 5 sources ($0.08); standard = 3 sub-questions / 8 sources ($0.20); deep = 5 sub-questions / 12 sources ($0.35). Default: standard.","price":"quick = 1 search / 5 sources ($0.08); standard = 3 sub-questions / 8 sources ($0.20); deep = 5 sub-questions / 12 sources ($0.35). Default: standard.","tags":["research","ai","multi-step"],"latency":"30-60 seconds"},{"endpoint":"/discussions","method":"POST","name":"Discussions","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":"$0.004","tags":["search","social"],"latency":"1-3 seconds"},{"endpoint":"/domain","method":"POST","name":"Domain Intelligence","description":"Domain intelligence in one call: RDAP registration (registrar, age, expiry, status), live DNS (A/AAAA/MX/NS/TXT), the mail and DNS providers behind them, the SaaS vendors the domain's TXT verification tokens reveal, SPF/DMARC posture, and risk signals like newly-registered or no-registrar-lock.","price":"$0.005","tags":["domain","whois"],"latency":"1-3 seconds"},{"endpoint":"/package","method":"POST","name":"Package Intelligence","description":"Should you depend on this package? Version, license, deprecation (with the maintainer's reason), weekly and monthly downloads, last release date, maintainer count, npm quality/popularity/maintenance scores, and health signals — npm or PyPI, one call.","price":"$0.003; an x402 payment is at least $0.004","tags":["package","registry"],"latency":"1-3 seconds"},{"endpoint":"/tech","method":"POST","name":"Tech Detection","description":"What a site is built and run on, from a single fetch: frameworks, CMS, ecommerce platform, CDN, analytics, payments, support widgets and web server — each with the header or HTML marker that proves it.","price":"$0.005","tags":["technology","fingerprinting"],"latency":"1-4 seconds"},{"endpoint":"/company","method":"POST","name":"Company Profile","description":"A company profile from its domain, read live from its own site: what it sells and to whom, pricing model and plans from its pricing page, open roles from its public Greenhouse/Lever/Ashby board, tech stack, socials, security.txt contacts, and the domain's registrar, age, email provider, SaaS vendors and SPF/DMARC posture. Each AI-read field names its source page.","price":"$0.05 (70% off when served from cache)","tags":["company enrichment","company profile","firmographics","hiring","tech stack"],"latency":"3-8 seconds"},{"endpoint":"/intel/project","method":"POST","name":"Project Due Diligence","description":"Off-chain due diligence on a project's web presence — the half on-chain rug checkers 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 the contract address you are about to trade against the addresses actually printed on the project's own website. Returns weighted risk signals and an A-F grade. Reads nothing on-chain.","price":"$0.05","tags":["intelligence","diligence","crypto"],"latency":"2-6 seconds"}],"pricing":{"currency":"USDC","cacheDiscount":"70% off for cached responses","noFees":"x402 protocol has 0 fees","instantSettlement":"Seconds, on-chain","priceRange":"$0.0040 - $0.35 per request","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"integration":{"mcp":{"remote":"https://api.weblens.dev/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 (on-chain USDC)","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":"/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":"/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, settlement transaction and payer. Paid responses carry X-Receipt-Id and X-Receipt-Url headers; receipts are kept 30 days. Receipts are unsigned: the settlement transaction is the evidence, checkable on-chain.","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},"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"}}