{"openapi":"3.1.0","info":{"title":"WebLens API","version":"2.0.0","description":"# WebLens - Web Intelligence API, pay per call\n\nScrape, crawl, map and extract the web. No monthly minimum: you pay for the\ncalls you make and nothing else, over x402 with no account needed.\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 or Solana).\n\n## Cache Discount\nCached responses are **70% cheaper** than fresh fetches.","x-guidance":"WebLens is a pay-per-call web intelligence API for AI agents — no account or monthly minimum needed. Every paid operation is a POST with a JSON body, paid via x402 (USDC on Base or Solana): call it, read the PAYMENT-REQUIRED response header from the 402, sign, and retry with Payment-Signature. Cheapest and most capable at getting pages: POST /fetch/basic {\"url\": \"...\"} scrapes to markdown for $0.002, POST /crawl {\"url\": \"...\"} crawls a whole site for $0.0015/page, and POST /map {\"url\": \"...\"} lists a site's URLs from its sitemap for $0.004. Use POST /fetch/pro for JavaScript-rendered pages and POST /extract to pull structured JSON from any page. Also available: POST /search for web search and POST /research/deep for multi-step cited research. Not sure an endpoint is worth its price? POST /preview {\"endpoint\": \"/answer\"} is free and returns the live price plus a real sample of the response shape before you pay. Free, unauthenticated try: GET /r/{url} (rate limited).","termsOfService":"http://api.weblens.dev/terms","contact":{"name":"WebLens Support","url":"http://api.weblens.dev","email":"vassilistotskas@msn.com"},"license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"}},"servers":[{"url":"http://api.weblens.dev","description":"Production"},{"url":"http://localhost:8787","description":"Local Development"}],"tags":[{"name":"Free","description":"Free tier endpoints — no payment required"},{"name":"Pages","description":"Fetch, render, map and crawl web pages"},{"name":"Extraction","description":"Structured data from pages and PDFs"},{"name":"Search","description":"Web search, its verticals, and Hacker News discussions"},{"name":"Research","description":"Cited answers and multi-step research"},{"name":"Social","description":"Social platform data"},{"name":"Intelligence","description":"Facts about a domain, a site's stack, a package, or a project"},{"name":"System","description":"Health and documentation endpoints"},{"name":"Discovery","description":"Free evaluation and ERC-8004 off-chain surfaces — previews, receipts, feedback"}],"paths":{"/":{"get":{"tags":["System"],"summary":"API Info","operationId":"getApiInfo","security":[],"responses":{"200":{"description":"API info"}}}},"/health":{"get":{"tags":["System"],"summary":"Health Check","operationId":"healthCheck","security":[],"responses":{"200":{"description":"Health status"}}}},"/discovery":{"get":{"tags":["System"],"summary":"Service Discovery","operationId":"getDiscovery","security":[],"description":"Machine-readable service catalog optimized for AI agent discovery. Returns all available endpoints, pricing, capabilities, and integration options.","responses":{"200":{"description":"Service catalog with endpoints, pricing, and capabilities"}}}},"/.well-known/x402":{"get":{"tags":["System"],"summary":"x402 Discovery","operationId":"getWellKnownX402","security":[],"description":"Standard x402 discovery endpoint. Returns x402-compatible service information for Bazaar indexing.","responses":{"200":{"description":"x402 service information"}}}},"/r/{url}":{"get":{"tags":["Free"],"summary":"Reader Mode (Zero-Friction)","operationId":"readerFetch","security":[],"description":"Fetch any webpage as markdown with a single GET request. No auth, no payment, no POST body. Just append a URL. Rate limited to 10/hour, content truncated to 2000 chars. Inspired by Jina Reader.","parameters":[{"name":"url","in":"path","required":true,"schema":{"type":"string"},"description":"Full URL to fetch (e.g. https://example.com/article)","example":"https://example.com"},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","text"]},"description":"Response format: json (default) or text (plain markdown)"}],"responses":{"200":{"description":"Page content as markdown (JSON or plain text)"},"400":{"description":"Invalid or missing URL"},"429":{"description":"Rate limit exceeded (10/hour)"},"502":{"description":"Target URL timeout"}}}},"/free/fetch":{"post":{"tags":["Free"],"summary":"Free Fetch","operationId":"freeFetch","description":"Fetch any webpage (content truncated to 2000 chars). Rate limited to 10/hour. No payment required.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"timeout":{"type":"integer"}}}}}},"responses":{"200":{"description":"Page content (truncated)"},"400":{"description":"Invalid request"},"429":{"description":"Rate limit exceeded"}}}},"/preview":{"post":{"tags":["Discovery"],"summary":"Preview a Paid Endpoint","operationId":"previewEndpoint","security":[],"description":"See what a paid endpoint costs and what it returns BEFORE paying. Free, rate limited to 10/hour per IP. Returns the live price (derived from the same PRICING source as the 402 challenge), a one-line summary, and a recorded sample of the exact response shape. A real, truncated LIVE preview runs only for endpoints whose marginal cost is a plain fetch (currently /fetch/basic, /contents, /map) and only when you pass a url; endpoints backed by a metered upstream (Google search, Anthropic) never run live for free and return the recorded sample instead. Responds 404 for an endpoint that is not sold.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"},"example":{"endpoint":"/answer"}}}},"responses":{"200":{"description":"Price, summary, recorded sample and (when available) a live truncated preview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"400":{"description":"Invalid body, or an unsafe/malformed url","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Unknown endpoint — it is not one of the paid endpoints. See /discovery for the catalogue.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded (10/hour)"}}}},"/.well-known/agent-registration.json":{"get":{"tags":["Discovery"],"summary":"ERC-8004 Registration Document","operationId":"getAgentRegistration","security":[],"description":"ERC-8004 (Trustless Agents) registration document: name, description, image, services, x402 support, payment info, and the feedback endpoints. WebLens hosts only the OFF-CHAIN half of ERC-8004 — it is not registered on-chain, holds no agent id, and writes nothing to any registry, so `registrations` stays empty until someone registers this URI on an Identity Registry. `supportedTrust` is [\"feedback\"]: no crypto-economic or TEE-attestation claims are made.","responses":{"200":{"description":"Registration document","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRegistration"}}}}}}},"/receipts/{requestId}":{"get":{"tags":["Discovery"],"summary":"Get Call Receipt","operationId":"getReceipt","security":[],"description":"Receipt for a paid call — endpoint, status, outcome, charged price, payment method, network, pay-to address, settlement transaction and payer. Every paid response carries `X-Receipt-Id` and `X-Receipt-Url` headers pointing here. Receipts are kept for 30 days. A receipt is unsigned: its evidence is the settlement transaction, which anyone can check on-chain.","parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"},"description":"The X-Request-Id / X-Receipt-Id of the paid call"}],"responses":{"200":{"description":"Receipt for the call","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallReceipt"}}}},"404":{"description":"No receipt for that request id (receipts are issued for paid calls and kept 30 days)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/feedback":{"post":{"tags":["Discovery"],"summary":"Host an ERC-8004 Feedback Document","operationId":"submitFeedback","security":[],"description":"Host a buyer-authored ERC-8004 feedback document and get back the (feedbackURI, feedbackHash) pair that `giveFeedback()` on a Reputation Registry expects. The document is stored verbatim and served back byte-for-byte from GET /feedback/{id}, so its keccak-256 hash matches the hash returned here. WebLens neither authors nor alters the document and never calls the registry — the buyer posts giveFeedback() themselves. Free, rate limited to 10/hour per IP. Limits: body ≤ 256KB, nesting ≤ 32 levels.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackDocument"},"example":{"agentRegistry":"eip155:8453:0x0000000000000000000000000000000000000000","agentId":"42","clientAddress":"0x1234567890abcdef1234567890abcdef12345678","createdAt":"2026-07-31T12:00:00.000Z","value":95,"valueDecimals":0,"tag1":"quality","endpoint":"/answer"}}}},"responses":{"201":{"description":"Document hosted; use feedbackURI + feedbackHash in giveFeedback()","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackHosted"}}}},"400":{"description":"Body is not a JSON object, nests deeper than 32 levels, or is missing required ERC-8004 fields (the response names them)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Body exceeds the 256KB limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded (10/hour)"}}}},"/feedback/{id}":{"get":{"tags":["Discovery"],"summary":"Get a Hosted Feedback Document","operationId":"getFeedbackDocument","security":[],"description":"Serves a hosted feedback document verbatim — the bytes are exactly what was hashed, so keccak-256 of this response equals the feedbackHash returned by POST /feedback. This URL is the feedbackURI.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Id from the feedbackURI returned by POST /feedback"}],"responses":{"200":{"description":"The stored document, byte-for-byte","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackDocument"}}}},"404":{"description":"No feedback document with that id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/mcp":{"post":{"tags":["System"],"summary":"MCP JSON-RPC","operationId":"mcpPost","description":"Model Context Protocol endpoint for AI agents. Supports tools/list and tools/call methods.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"method":{"type":"string"},"params":{"type":"object"},"id":{"type":"string"}}}}}},"responses":{"200":{"description":"JSON-RPC response"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/mcp/info":{"get":{"tags":["System"],"summary":"MCP Server Info","operationId":"mcpInfo","description":"Get MCP server information including available tools and pricing.","security":[],"responses":{"200":{"description":"Server info with tools list"}}}},"/fetch/basic":{"post":{"tags":["Pages"],"summary":"Fetch Webpage (Basic)","operationId":"fetchBasic","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.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.004000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The URL to process","example":"https://example.com"},"timeout":{"default":10000,"description":"Request timeout in milliseconds","type":"number","minimum":5000,"maximum":30000,"example":10000},"cache":{"default":true,"description":"Serve a cached copy when one exists (cached responses are 70% off)","type":"boolean","example":true},"cacheTtl":{"default":3600,"description":"How long to cache this response, in seconds","type":"number","minimum":60,"maximum":86400,"example":3600},"waitFor":{"description":"CSS selector to wait for (Pro tier only)","type":"string"}},"required":["url"]},"example":{"url":"https://example.com","timeout":10000,"cache":true,"cacheTtl":3600}}}},"responses":{"200":{"description":"Any webpage as clean markdown, no JavaScript rendering.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Fetched URL"},"title":{"type":"string","description":"Page title"},"content":{"type":"string","description":"Clean markdown content"},"tier":{"type":"string"},"fetchedAt":{"type":"string","description":"ISO timestamp"},"metadata":{"type":"object","description":"Page metadata","properties":{"description":{"type":"string"},"author":{"type":"string"},"publishedAt":{"type":"string"}}},"cached":{"type":"boolean","description":"Present and true when the response was served from cache"},"requestId":{"type":"string"}}},"example":{"url":"https://example.com","title":"Example Domain","content":"# Article Heading\\n\\nClean markdown content...","metadata":{"description":"An example article","author":"Jane Doe","publishedAt":"2026-01-20T09:00:00.000Z"},"tier":"basic","fetchedAt":"2026-01-26T12:00:00.000Z","requestId":"req_abc123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/fetch/pro":{"post":{"tags":["Pages"],"summary":"Fetch Webpage (Pro)","operationId":"fetchPro","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.","x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.004000","max":"0.018000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The URL to process","example":"https://example.com"},"timeout":{"default":10000,"description":"Request timeout in milliseconds","type":"number","minimum":5000,"maximum":30000,"example":15000},"cache":{"default":true,"description":"Serve a cached copy when one exists (cached responses are 70% off)","type":"boolean","example":true},"cacheTtl":{"default":3600,"description":"How long to cache this response, in seconds","type":"number","minimum":60,"maximum":86400},"waitFor":{"description":"CSS selector to wait for (Pro tier only)","type":"string","example":"p"}},"required":["url"]},"example":{"url":"https://example.com","waitFor":"p","timeout":15000,"cache":true}}}},"responses":{"200":{"description":"Same, but rendered in headless Chromium first — for SPAs.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Fetched URL"},"title":{"type":"string","description":"Page title"},"content":{"type":"string","description":"Clean markdown content after JS rendering"},"tier":{"type":"string"},"fetchedAt":{"type":"string","description":"ISO timestamp"},"metadata":{"type":"object","description":"Page metadata","properties":{"description":{"type":"string"},"author":{"type":"string"},"publishedAt":{"type":"string"}}},"cached":{"type":"boolean","description":"Present and true when the response was served from cache"},"requestId":{"type":"string"}}},"example":{"url":"https://example.com","title":"Example Domain","content":"# App Content\\n\\nRendered after JavaScript execution...","metadata":{"description":"A client-rendered app"},"tier":"pro","fetchedAt":"2026-01-26T12:00:00.000Z","requestId":"req_xyz789"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/screenshot":{"post":{"tags":["Pages"],"summary":"Screenshot Capture","operationId":"captureScreenshot","description":"Capture high-quality screenshots of any webpage using headless browser. Price: $0.008.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.008000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The URL to process","example":"https://example.com"},"width":{"default":1280,"description":"Viewport width in pixels","type":"number","minimum":320,"maximum":3840},"height":{"default":720,"description":"Viewport height in pixels","type":"number","minimum":240,"maximum":2160},"fullPage":{"default":false,"description":"Capture the whole scrollable page, not just the viewport","type":"boolean","example":false},"selector":{"description":"CSS selector to capture","type":"string","example":"p"},"timeout":{"default":10000,"description":"Request timeout in milliseconds","type":"number","minimum":5000,"maximum":30000,"example":10000}},"required":["url"]},"example":{"url":"https://example.com","selector":"p","fullPage":false,"timeout":10000}}}},"responses":{"200":{"description":"PNG screenshot of a page, base64-encoded.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Screenshotted URL"},"image":{"type":"string","description":"Base64-encoded PNG image"},"capturedAt":{"type":"string","description":"ISO timestamp"},"dimensions":{"type":"object"},"requestId":{"type":"string"}}},"example":{"url":"https://example.com","image":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==","dimensions":{"width":1280,"height":720},"capturedAt":"2026-01-26T12:00:00.000Z","requestId":"req_screen123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/contents":{"post":{"tags":["Pages"],"summary":"Page Contents","operationId":"getContents","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.","x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.004000","max":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"urls":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","format":"uri","description":"The URL to process"},"description":"Pages to fetch","example":["https://example.com"]},"maxChars":{"default":20000,"description":"Per-page content character cap","type":"number","minimum":500,"maximum":50000,"example":20000},"timeout":{"default":10000,"description":"Request timeout in milliseconds","type":"number","minimum":5000,"maximum":30000}},"required":["urls"]},"example":{"urls":["https://example.com"],"maxChars":20000}}}},"responses":{"200":{"description":"Bulk page text for 1-20 URLs, truncated to your character cap.","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"},"content":{"type":"string"},"truncated":{"type":"boolean"},"error":{"type":"string"}}},"description":"Per-URL results with url, status, title, content, truncated, error"},"summary":{"type":"object","properties":{"total":{"type":"integer"},"successful":{"type":"integer"},"failed":{"type":"integer"}},"description":"total, successful, failed counts"},"fetchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"results":[{"url":"https://example.com","status":"success","title":"Example Domain","content":"This domain is for use in documentation examples...","truncated":false}],"summary":{"total":1,"successful":1,"failed":0},"fetchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_contents123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/map":{"post":{"tags":["Pages"],"summary":"Site Map","operationId":"mapSite","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.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.004000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The URL to process","example":"https://example.com"},"limit":{"default":1000,"description":"Maximum URLs to return","type":"number","minimum":1,"maximum":5000,"example":1000},"include":{"default":[],"description":"Only URLs whose path+query contains one of these","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"default":[],"description":"Skip URLs whose path+query contains one of these","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"timeout":{"default":10000,"description":"Request timeout in milliseconds","type":"number","minimum":5000,"maximum":30000}},"required":["url"]},"example":{"url":"https://example.com","limit":1000}}}},"responses":{"200":{"description":"Every URL on a site, from sitemaps and links — no page fetches.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"urls":{"type":"array","items":{"type":"string"},"description":"Discovered same-host URLs"},"total":{"type":"number"},"source":{"type":"string","enum":["sitemap","links","none"],"description":"Where the URLs came from"},"sitemapsChecked":{"type":"number","description":"Sitemap documents fetched (including nested indexes)"},"mappedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"url":"https://example.com","urls":["https://example.com/about","https://example.com/blog/post-1"],"total":2,"source":"sitemap","sitemapsChecked":1,"mappedAt":"2026-07-31T12:00:00.000Z","requestId":"req_map123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/crawl":{"post":{"tags":["Pages"],"summary":"Site Crawl","operationId":"crawlSite","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.","x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.004000","max":"0.037500"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The URL to process","example":"https://example.com"},"limit":{"default":10,"description":"Page budget — you are charged per requested page","type":"number","minimum":1,"maximum":25,"example":10},"maxDepth":{"default":2,"description":"Link depth from the start URL (0 = start page only)","type":"number","minimum":0,"maximum":3,"example":2},"include":{"default":[],"description":"Only crawl URLs whose path+query contains one of these","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"default":[],"description":"Skip URLs whose path+query contains one of these","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"respectRobots":{"default":true,"description":"Honour robots.txt (default true; disable only for sites you control)","type":"boolean"},"maxChars":{"default":8000,"description":"Per-page content character cap","type":"number","minimum":500,"maximum":50000},"timeout":{"default":10000,"description":"Request timeout in milliseconds","type":"number","minimum":5000,"maximum":30000}},"required":["url"]},"example":{"url":"https://example.com","limit":10,"maxDepth":2}}}},"responses":{"200":{"description":"Whole-site crawl returning markdown per page, in one call.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"pages":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"depth":{"type":"integer"},"status":{"type":"string","enum":["success","failed"]},"title":{"type":"string"},"content":{"type":"string","description":"Page as clean markdown"},"truncated":{"type":"boolean"},"error":{"type":"string"}}},"description":"Per-page results with url, depth, status, title, content, truncated, error"},"summary":{"type":"object","properties":{"crawled":{"type":"integer"},"successful":{"type":"integer"},"failed":{"type":"integer"},"discovered":{"type":"integer"},"limit":{"type":"integer"},"maxDepth":{"type":"integer"},"robotsRespected":{"type":"boolean"}},"description":"crawled, successful, failed, discovered, limit, maxDepth, robotsRespected"},"crawledAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"url":"https://example.com","pages":[{"url":"https://example.com","depth":0,"status":"success","title":"Example","content":"# Example\\n\\nWelcome...","truncated":false},{"url":"https://example.com/about","depth":1,"status":"success","title":"About","content":"# About us...","truncated":false}],"summary":{"crawled":2,"successful":2,"failed":0,"discovered":5,"limit":10,"maxDepth":2,"robotsRespected":true},"crawledAt":"2026-07-31T12:00:00.000Z","requestId":"req_crawl123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"description":"robots.txt disallows crawling the start URL. Set respectRobots=false only for sites you control.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/pdf":{"post":{"tags":["Extraction"],"summary":"PDF Text Extraction","operationId":"extractPdf","description":"Extract text and metadata from PDF documents. Supports page-specific extraction and returns structured content. Price: $0.004.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.004000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The URL to process","example":"https://raw.githubusercontent.com/mozilla/pdf.js-sample-files/master/tracemonkey.pdf"},"pages":{"description":"Page numbers to extract (omit for every page)","type":"array","items":{"type":"number","minimum":1},"example":[1,2]}},"required":["url"]},"example":{"url":"https://raw.githubusercontent.com/mozilla/pdf.js-sample-files/master/tracemonkey.pdf","pages":[1,2]}}}},"responses":{"200":{"description":"Text and metadata out of a PDF, page by page.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"metadata":{"type":"object","description":"PDF metadata"},"pages":{"type":"array","description":"Array of pages with content"},"fullText":{"type":"string","description":"All pages concatenated"},"extractedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"url":"https://raw.githubusercontent.com/mozilla/pdf.js-sample-files/master/tracemonkey.pdf","metadata":{"title":"Sample Document","author":"John Doe","pageCount":10},"pages":[{"pageNumber":1,"content":"Page 1 text content..."}],"fullText":"Page 1 text content...","extractedAt":"2026-01-26T12:00:00.000Z","requestId":"req_pdf123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/extract":{"post":{"tags":["Extraction"],"summary":"Structured Data Extraction","operationId":"extractData","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.","x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.030000","max":"0.090000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The URL to process","example":"https://example.com"},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"JSON schema for extraction","example":{"title":{"type":"string"},"purpose":{"type":"string"}}},"instructions":{"description":"Natural language extraction hints","type":"string","example":"Extract the page title and what the domain is for"}},"required":["url","schema"]},"example":{"url":"https://example.com","schema":{"title":{"type":"string"},"purpose":{"type":"string"}},"instructions":"Extract the page title and what the domain is for"}}}},"responses":{"200":{"description":"Structured JSON pulled from a page against your schema.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Source URL"},"data":{"type":"object","description":"Extracted data matching the provided schema"},"extractedAt":{"type":"string","description":"ISO timestamp"},"requestId":{"type":"string"}}},"example":{"url":"https://example.com","data":{"title":"Example Domain","purpose":"For use in documentation examples"},"extractedAt":"2026-01-26T12:00:00.000Z","requestId":"req_extract789"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/search":{"post":{"tags":["Search"],"summary":"Web Search","operationId":"searchWeb","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.005, plus $0.0015 per result page fetched with includeContent.","x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.005000","max":"0.020000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"Search query","example":"x402 payment protocol"},"limit":{"default":10,"description":"Maximum results to return","type":"number","minimum":1,"maximum":20,"example":10},"includeContent":{"default":false,"description":"Also fetch the top result pages as markdown (+$0.0015 per fetched result)","type":"boolean"},"contentResults":{"default":5,"description":"How many top results to fetch content for (when includeContent)","type":"number","minimum":1,"maximum":10},"contentChars":{"default":8000,"description":"Per-page content character cap","type":"number","minimum":500,"maximum":20000}},"required":["query"]},"example":{"query":"x402 payment protocol","limit":10}}}},"responses":{"200":{"description":"Ranked web results; set includeContent to get page markdown too.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Original search query"},"results":{"type":"array","items":{"type":"object"},"description":"Search results with title, url, snippet; with includeContent also content and contentTruncated"},"searchedAt":{"type":"string","description":"ISO timestamp"},"requestId":{"type":"string"}}},"example":{"query":"x402 payment protocol","results":[{"title":"x402 Documentation","url":"https://x402.org","snippet":"HTTP-native micropayments..."}],"searchedAt":"2026-01-26T12:00:00.000Z","requestId":"req_search456"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/search/news":{"post":{"tags":["Search"],"summary":"News Search","operationId":"searchNews","description":"Real-time news search via Google News. Returns up to 10 ranked articles with snippet, source, date, and thumbnail. Price: $0.005.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"Search query","example":"x402 payment protocol"},"limit":{"default":10,"description":"Maximum results to return","type":"number","minimum":1,"maximum":20,"example":10}},"required":["query"]},"example":{"query":"x402 payment protocol","limit":10}}}},"responses":{"200":{"description":"Google News articles with source, date, and thumbnail.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"title":{"type":"string"},"url":{"type":"string"},"snippet":{"type":"string"},"source":{"type":"string"},"date":{"type":"string","description":"As Google shows it, often relative (\"2 hours ago\")"},"thumbnail":{"type":"string"}}},"description":"Articles with position, title, url, snippet, source, date, thumbnail"},"searchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"artificial intelligence","results":[{"position":1,"title":"AI breakthrough announced","url":"https://news.example.com/ai","snippet":"Researchers announced a new model that...","source":"Example News","date":"2 hours ago","thumbnail":"https://t.example.com/ai.jpg"}],"searchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_news123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/search/images":{"post":{"tags":["Search"],"summary":"Image Search","operationId":"searchImages","description":"Google Images search. Returns direct image URLs with dimensions, thumbnails, and source pages. Price: $0.005.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"Search query","example":"x402 payment protocol"},"limit":{"default":10,"description":"Maximum results to return","type":"number","minimum":1,"maximum":20,"example":10}},"required":["query"]},"example":{"query":"x402 payment protocol","limit":10}}}},"responses":{"200":{"description":"Direct image URLs with dimensions and source pages.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"title":{"type":"string"},"imageUrl":{"type":"string"},"thumbnail":{"type":"string"},"sourcePage":{"type":"string"},"source":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"}}},"description":"Images with position, title, imageUrl, thumbnail, sourcePage, source, width, height"},"searchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"golden gate bridge","results":[{"position":1,"title":"Golden Gate Bridge","imageUrl":"https://images.example.com/ggb.jpg","thumbnail":"https://t.example.com/ggb.jpg","sourcePage":"https://example.com/ggb","width":1920,"height":1080}],"searchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_img123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/search/places":{"post":{"tags":["Search"],"summary":"Places Search","operationId":"searchPlaces","description":"Local business search via Google Places. Returns names, addresses, categories, ratings, reviews, phone numbers, websites, and coordinates. Price: $0.045.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.045000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"What to search for, e.g. \"coffee shops\"","example":"coffee shops"},"location":{"description":"Free-text location bias, e.g. \"Austin, Texas\"","type":"string","minLength":2,"maxLength":200,"example":"Austin, Texas"},"limit":{"default":10,"description":"Maximum results to return","type":"number","minimum":1,"maximum":20,"example":10}},"required":["query"]},"example":{"query":"coffee shops","location":"Austin, Texas","limit":10}}}},"responses":{"200":{"description":"Local businesses: address, rating, reviews, phone, coordinates.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"location":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"name":{"type":"string"},"address":{"type":"string"},"rating":{"type":"number"},"reviews":{"type":"integer"},"priceLevel":{"type":"string","description":"As Google shows it, e.g. \"$\" or \"$10-20\""},"category":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"cid":{"type":"string","description":"Google Maps customer id (maps.google.com/?cid=...)"},"coordinates":{"type":"object"}}},"description":"Places with name, address, rating, reviews, priceLevel, category, phone, website, cid, coordinates"},"searchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"coffee shops","location":"Austin, Texas","results":[{"position":1,"name":"Example Coffee","address":"123 Main St, Austin, TX","rating":4.7,"reviews":812,"category":"Coffee shop","phone":"(512) 555-0100","website":"https://examplecoffee.com","cid":"6353588238324409422","coordinates":{"latitude":30.26,"longitude":-97.74}}],"searchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_places123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/search/shopping":{"post":{"tags":["Search"],"summary":"Shopping Search","operationId":"searchShopping","description":"Google Shopping product search. Returns products with prices, sellers, ratings, and links. Price: $0.005.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"Search query","example":"mechanical keyboard"},"limit":{"default":10,"description":"Maximum results to return","type":"number","minimum":1,"maximum":20,"example":10}},"required":["query"]},"example":{"query":"mechanical keyboard","limit":10}}}},"responses":{"200":{"description":"Products with prices, sellers, and ratings.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"title":{"type":"string"},"url":{"type":"string"},"price":{"type":"string","description":"As Google shows it, with currency (\"$89.99\")"},"delivery":{"type":"string"},"source":{"type":"string"},"rating":{"type":"number"},"reviews":{"type":"integer"},"thumbnail":{"type":"string"}}},"description":"Products with position, title, url, price, delivery, source, rating, reviews, thumbnail"},"searchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"mechanical keyboard","results":[{"position":1,"title":"Mechanical Keyboard RGB","url":"https://shop.example.com/kb","price":"$89.99","delivery":"Free delivery","source":"Example Store","rating":4.5,"reviews":1200}],"searchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_shop123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/search/scholar":{"post":{"tags":["Search"],"summary":"Scholar Search","operationId":"searchScholar","description":"Google Scholar academic search. Returns papers with snippets, publication info, and citation counts. Price: $0.005.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"Search query","example":"x402 payment protocol"},"limit":{"default":10,"description":"Maximum results to return","type":"number","minimum":1,"maximum":20,"example":10}},"required":["query"]},"example":{"query":"x402 payment protocol","limit":10}}}},"responses":{"200":{"description":"Academic papers with publication info and citation counts.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"title":{"type":"string"},"url":{"type":"string"},"pdfUrl":{"type":"string","description":"Direct PDF link, when Google Scholar has one"},"snippet":{"type":"string"},"publicationInfo":{"type":"string"},"year":{"type":"integer"},"citedBy":{"type":"integer"}}},"description":"Papers with position, title, url, pdfUrl, snippet, publicationInfo, year, citedBy"},"searchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"transformer attention mechanisms","results":[{"position":1,"title":"Attention Is All You Need","url":"https://arxiv.org/abs/1706.03762","snippet":"The dominant sequence transduction models...","publicationInfo":"A Vaswani, N Shazeer - NeurIPS, 2017","year":2017,"citedBy":130000}],"searchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_scholar123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/search/autocomplete":{"post":{"tags":["Search"],"summary":"Autocomplete","operationId":"searchAutocomplete","description":"Google Autocomplete suggestions for a partial query. Useful for keyword research and intent discovery. Price: $0.004.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.004000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"Search query","example":"x402 payment protocol"},"limit":{"default":10,"description":"Maximum results to return","type":"number","minimum":1,"maximum":20,"example":10}},"required":["query"]},"example":{"query":"x402 payment protocol","limit":10}}}},"responses":{"200":{"description":"Query suggestions — keyword and intent research.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"suggestions":{"type":"array","items":{"type":"string"},"description":"Suggestion strings ranked by relevance"},"searchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"how to deploy cloudf","suggestions":["how to deploy cloudflare workers","how to deploy cloudflare pages"],"searchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_auto123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/search/trends":{"post":{"tags":["Search"],"summary":"Trends Search","operationId":"searchTrends","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.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.040000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"Topic to get trend data for","example":"cloudflare workers"}},"required":["query"]},"example":{"query":"cloudflare workers"}}}},"responses":{"200":{"description":"Interest-over-time timeline for a topic.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"timeline":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"timestamp":{"type":"string"},"values":{"type":"array","items":{"type":"object"}}}},"description":"Interest-over-time points with date, timestamp, values[{query, value}]"},"searchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"cloudflare workers","timeline":[{"date":"Jul 20 - 26, 2026","timestamp":"1784908800","values":[{"query":"cloudflare workers","value":87}]}],"searchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_trends123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/social/youtube/transcript":{"post":{"tags":["Social"],"summary":"YouTube Transcript","operationId":"youtubeTranscript","description":"Full transcript of any YouTube video with timestamps. Accepts a video ID or any YouTube URL. Price: $0.03.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"videoId":{"type":"string","minLength":5,"maxLength":200,"description":"YouTube video ID (e.g. dQw4w9WgXcQ) or full video URL","example":"dQw4w9WgXcQ"},"lang":{"description":"Transcript language code (default: video default)","type":"string","minLength":2,"maxLength":10}},"required":["videoId"]},"example":{"videoId":"dQw4w9WgXcQ"}}}},"responses":{"200":{"description":"Full video transcript with timestamps.","content":{"application/json":{"schema":{"type":"object","properties":{"videoId":{"type":"string"},"language":{"type":"string","description":"The transcript language you requested with lang, when given"},"segments":{"type":"array","items":{"type":"object","properties":{"startMs":{"type":"integer"},"startTime":{"type":"string"},"text":{"type":"string"}}},"description":"Transcript segments with startMs, startTime, text"},"fullText":{"type":"string","description":"All segments joined"},"fetchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"videoId":"dQw4w9WgXcQ","segments":[{"startMs":0,"startTime":"0:00","text":"We're no strangers to love"}],"fullText":"We're no strangers to love...","fetchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_yt123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No transcript available for this video","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/answer":{"post":{"tags":["Research"],"summary":"Grounded Answer","operationId":"answerQuestion","description":"Grounded answer with inline [n] citations: searches the web, fetches sources, and answers strictly from them. Price: $0.05.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"The question to answer","example":"What is the x402 payment protocol?"},"sources":{"default":3,"description":"How many web sources to search, fetch, and cite","type":"number","minimum":1,"maximum":5,"example":3}},"required":["query"]},"example":{"query":"What is the x402 payment protocol?","sources":3}}}},"responses":{"200":{"description":"A direct answer with inline [n] citations to real sources.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"answer":{"type":"string","description":"Answer text with inline [n] citation markers"},"citations":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"url":{"type":"string"},"title":{"type":"string"}}},"description":"Citation list with index, url, title"},"confidence":{"type":"number"},"answeredAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"What is the x402 payment protocol?","answer":"x402 is an open payment protocol built on HTTP 402 [1]. It settles USDC payments on Base [2].","citations":[{"index":1,"url":"https://x402.org","title":"x402 Protocol"}],"confidence":0.92,"answeredAt":"2026-07-25T12:00:00.000Z","requestId":"req_answer123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/research/deep":{"post":{"tags":["Research"],"summary":"Deep Research","operationId":"deepResearch","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..","x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.080000","max":"0.350000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"The research question","example":"How are AI agents using micropayments in 2026?"},"depth":{"default":"standard","description":"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.","type":"string","enum":["quick","standard","deep"],"example":"standard"}},"required":["query"]},"example":{"query":"How are AI agents using micropayments in 2026?","depth":"standard"}}}},"responses":{"200":{"description":"Multi-step research: sub-questions, cited answer, and gaps.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"depth":{"type":"string","enum":["quick","standard","deep"]},"subQuestions":{"type":"array","items":{"type":"string"},"description":"The sub-questions the query was decomposed into, one web search each. For quick, the query itself."},"answer":{"type":"string","description":"Synthesized answer with inline [n] citation markers"},"keyFindings":{"type":"array","items":{"type":"string"},"description":"Bullet-point findings drawn from the sources"},"citations":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"url":{"type":"string"},"title":{"type":"string"},"subQuestion":{"type":"string"}}},"description":"Sources behind the [n] markers, with the sub-question each answered"},"gaps":{"type":"array","items":{"type":"string"},"description":"What the sources did not establish"},"sourcesFetched":{"type":"number","description":"Sources whose full page was fetched (the rest fall back to their search snippet)"},"researchedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"How are AI agents using micropayments in 2026?","depth":"standard","subQuestions":["x402 protocol adoption 2026","AI agent payment volume statistics","micropayment API pricing for agents"],"answer":"Agent micropayments consolidated around the x402 protocol in 2026 [1]. Transaction counts recovered sharply while average payment sizes fell [2][3].","keyFindings":["Transaction volume is dominated by a small number of gateways","Median per-call price sits near $0.01"],"citations":[{"index":1,"url":"https://x402.org","title":"x402 Protocol","subQuestion":"x402 protocol adoption 2026"}],"gaps":["Sources did not cover settlement failure rates"],"sourcesFetched":8,"researchedAt":"2026-07-31T12:00:00.000Z","requestId":"req_deepresearch123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No web sources found for this query — nothing was charged for a failed run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Research failed or timed out before completing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"AI service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/discussions":{"post":{"tags":["Search"],"summary":"Discussions","operationId":"searchDiscussions","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.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.004000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":200,"description":"What to search Hacker News for","example":"cloudflare workers"},"limit":{"default":10,"description":"Stories to return (1-50, default 10)","type":"number","minimum":1,"maximum":50,"example":10},"sort":{"default":"relevance","description":"Rank by relevance (default) or newest first","type":"string","enum":["relevance","recent"]}},"required":["query"]},"example":{"query":"cloudflare workers","limit":10}}}},"responses":{"200":{"description":"What Hacker News said about a topic, with points, comments and aggregates.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"source":{"type":"string","enum":["hackernews"]},"sort":{"type":"string"},"stories":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string"},"points":{"type":"integer"},"comments":{"type":"integer"},"author":{"type":"string"},"postedAt":{"type":"string"},"discussionUrl":{"type":"string","description":"Link to the HN thread"}}},"description":"Each: title, url, points, comments, author, postedAt, discussionUrl"},"summary":{"type":"object","properties":{"totalMatches":{"type":"integer","description":"Stories HN matched overall, which may exceed those returned"},"returned":{"type":"integer"},"pointsReturned":{"type":"integer","description":"Summed over the RETURNED stories only"},"commentsReturned":{"type":"integer","description":"Summed over the RETURNED stories only"},"topDomains":{"type":"array","description":"Most-submitted domains among the returned stories"},"firstSeen":{"type":"string"},"lastSeen":{"type":"string"}},"description":"totalMatches, returned, pointsReturned, commentsReturned, topDomains, firstSeen, lastSeen"},"discussedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"query":"cloudflare workers","source":"hackernews","sort":"relevance","stories":[{"title":"Workerd: Open-source Cloudflare Workers runtime","url":"https://github.com/cloudflare/workerd","points":689,"comments":133,"author":"jgrahamc","postedAt":"2022-09-27T14:00:00.000Z","discussionUrl":"https://news.ycombinator.com/item?id=32979198"}],"summary":{"totalMatches":1259,"returned":10,"pointsReturned":3421,"commentsReturned":2870,"topDomains":[{"domain":"github.com","count":3}],"firstSeen":"2018-03-12T00:00:00.000Z","lastSeen":"2026-07-30T00:00:00.000Z"},"discussedAt":"2026-08-02T12:00:00.000Z","requestId":"req_disc123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/domain":{"post":{"tags":["Intelligence"],"summary":"Domain Intelligence","operationId":"domainIntel","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.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253,"description":"Domain to inspect, e.g. \"stripe.com\". A full URL is accepted and reduced to its hostname.","example":"stripe.com"}},"required":["domain"]},"example":{"domain":"stripe.com"}}}},"responses":{"200":{"description":"Who owns a domain, how old it is, what runs on it, and whether it looks risky — one call.","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"registration":{"type":"object","description":"RDAP registration facts. found=false when the registry has no RDAP service or did not answer.","properties":{"found":{"type":"boolean"},"registrar":{"type":"string"},"registeredAt":{"type":"string","description":"ISO date the domain was first registered"},"expiresAt":{"type":"string"},"updatedAt":{"type":"string"},"status":{"type":"array","items":{"type":"string"},"description":"EPP status codes, e.g. client transfer prohibited"},"nameservers":{"type":"array","items":{"type":"string"}},"rdapServer":{"type":"string","description":"Registry RDAP base URL that answered"}}},"dns":{"type":"object","description":"Live records keyed by type (A, AAAA, MX, NS, TXT)"},"email":{"type":"object","properties":{"provider":{"type":"string","description":"Mail platform identified from MX, e.g. Google Workspace, Microsoft 365, Proofpoint"},"hasSpf":{"type":"boolean"},"hasDmarc":{"type":"boolean"},"dmarcPolicy":{"type":"string","enum":["none","quarantine","reject"]}},"description":"provider, hasSpf, hasDmarc, dmarcPolicy"},"hosting":{"type":"object","properties":{"dnsProvider":{"type":"string","description":"DNS operator identified from NS, e.g. AWS Route 53, Cloudflare"}},"description":"dnsProvider"},"stack":{"type":"array","items":{"type":"string"},"description":"SaaS vendors inferred from TXT domain-verification tokens the organisation published"},"signals":{"type":"array","items":{"type":"string"},"description":"Risk/posture flags: newly-registered, expiring-soon, expired, no-registrar-lock, no-spf, no-dmarc, dmarc-monitor-only, no-mx, registration-unavailable"},"ageDays":{"type":"number","description":"Days since registration"},"expiresInDays":{"type":"number","description":"Days until expiry (negative if expired)"},"inspectedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"domain":"stripe.com","registration":{"found":true,"registrar":"MarkMonitor Inc.","registeredAt":"1995-09-12T04:00:00Z","expiresAt":"2027-09-11T04:00:00Z","status":["client transfer prohibited"],"nameservers":["ns-1087.awsdns-07.org"]},"dns":{"A":["198.137.150.111"],"MX":["10 aspmx.l.google.com."],"NS":["ns-1087.awsdns-07.org."]},"email":{"provider":"Google Workspace","hasSpf":true,"hasDmarc":true,"dmarcPolicy":"reject"},"hosting":{"dnsProvider":"AWS Route 53"},"stack":["Microsoft 365","Salesforce"],"signals":[],"ageDays":11282,"expiresInDays":405,"inspectedAt":"2026-08-02T12:00:00.000Z","requestId":"req_domain123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/package":{"post":{"tags":["Intelligence"],"summary":"Package Intelligence","operationId":"packageIntel","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.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.004000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":214,"description":"Package name, e.g. \"express\" or \"@scope/pkg\" (npm), \"requests\" (PyPI)","example":"express"},"registry":{"default":"npm","description":"Which registry to look in (default npm)","type":"string","enum":["npm","pypi"],"example":"npm"}},"required":["name"]},"example":{"name":"express","registry":"npm"}}}},"responses":{"200":{"description":"Should you depend on this package? npm or PyPI health in one call.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"registry":{"type":"string","enum":["npm","pypi"]},"found":{"type":"boolean"},"version":{"type":"string","description":"Latest published version"},"description":{"type":"string"},"license":{"type":"string"},"homepage":{"type":"string"},"repository":{"type":"string","description":"Normalised repository URL (git+ prefix and .git suffix removed)"},"deprecated":{"type":"boolean"},"deprecationReason":{"type":"string","description":"The maintainer's deprecation message, when there is one"},"downloads":{"type":"object","description":"npm only — see the endpoint description for why PyPI has none","properties":{"lastWeek":{"type":"integer"},"lastMonth":{"type":"integer"}}},"maintenance":{"type":"object","properties":{"lastPublishedAt":{"type":"string"},"daysSinceRelease":{"type":"integer"},"maintainers":{"type":"integer"},"scores":{"type":"object","description":"npm's own 0-1 quality / popularity / maintenance scores"}},"description":"lastPublishedAt, daysSinceRelease, maintainers, scores"},"dependencies":{"type":"number","description":"Count of direct runtime dependencies"},"requiresPython":{"type":"string","description":"PyPI only"},"signals":{"type":"array","items":{"type":"string"},"description":"deprecated, no-recent-release (>2y), no-license, single-maintainer, no-public-repository"},"checkedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"name":"express","registry":"npm","found":true,"version":"5.2.1","description":"Fast, unopinionated, minimalist web framework","license":"MIT","repository":"https://github.com/expressjs/express","deprecated":false,"downloads":{"lastWeek":127864826,"lastMonth":548000000},"maintenance":{"lastPublishedAt":"2025-12-01T00:00:00.000Z","daysSinceRelease":244,"maintainers":5,"scores":{"quality":1,"popularity":1,"maintenance":1}},"dependencies":28,"signals":[],"checkedAt":"2026-08-02T12:00:00.000Z","requestId":"req_pkg123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No such package in that registry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/tech":{"post":{"tags":["Intelligence"],"summary":"Tech Detection","operationId":"detectTech","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.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Site URL to fingerprint","example":"https://example.com"}},"required":["url"]},"example":{"url":"https://example.com"}}}},"responses":{"200":{"description":"What a site is built and run on — framework, CMS, CDN, analytics, payments — with the evidence for each.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"finalUrl":{"type":"string","description":"URL after redirects"},"status":{"type":"number"},"server":{"type":"string"},"poweredBy":{"type":"string"},"generator":{"type":"string","description":"Value of <meta name=\"generator\">, when present"},"technologies":{"type":"array","description":"Each detection with the marker that produced it","items":{"type":"object","properties":{"name":{"type":"string"},"category":{"type":"string","enum":["framework","cms","ecommerce","cdn","analytics","hosting","security","support","payments","server"]},"evidence":{"type":"string","description":"The response header line or HTML marker that matched"}}}},"categories":{"type":"object","description":"Technology names grouped by category"},"detectedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"url":"https://vercel.com","finalUrl":"https://vercel.com/","status":200,"server":"Vercel","poweredBy":"Next.js, Payload","technologies":[{"name":"Next.js","category":"framework","evidence":"header x-powered-by: Next.js, Payload"},{"name":"Vercel","category":"hosting","evidence":"header x-vercel-id: ..."}],"categories":{"framework":["Next.js"],"hosting":["Vercel"]},"detectedAt":"2026-08-02T12:00:00.000Z","requestId":"req_tech123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/company":{"post":{"tags":["Intelligence"],"summary":"Company Profile","operationId":"companyProfile","description":"A company profile from its domain, read live from its own site: what it sells and to whom, pricing and plans, NAICS sector, self-reported head count band, open roles from its Greenhouse/Lever/Ashby board, tech stack, socials, security.txt role contacts, and the domain's registrar, age, email provider, SaaS vendors and SPF/DMARC posture. Each AI-read field names its source page; coverage flags show what was found. Price: $0.05 (70% off when served from cache).","x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.015000","max":"0.050000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253,"description":"The company's website domain, e.g. \"vercel.com\". A full URL is accepted and reduced to its hostname.","example":"vercel.com"},"cache":{"default":true,"description":"Serve a cached copy when one exists (cached responses are 70% off)","type":"boolean"},"cacheTtl":{"default":3600,"description":"How long to cache this response, in seconds","type":"number","minimum":60,"maximum":86400}},"required":["domain"]},"example":{"domain":"vercel.com"}}}},"responses":{"200":{"description":"What a company sells, to whom, at what price, whether it is hiring and what it runs on, from its own site.","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"url":{"type":"string","description":"The homepage after redirects"},"name":{"type":"string","description":"Company name as the site states it"},"description":{"type":"string","description":"One or two sentences on what the company does"},"offerings":{"type":"array","items":{"type":"string"},"description":"Products or services it sells (up to 8)"},"audience":{"type":"string","description":"Who it sells to"},"pricing":{"type":"object","description":"pageUrl, model (free, freemium, subscription, usage-based, one-time, contact-sales), plans [{name, price as written, period}]"},"hiring":{"type":"object","description":"provider (greenhouse, lever, ashby), boardUrl, openRoles, topTeams/topLocations [{name, roles}], sample [{title, location, team, url}]. Absent when no readable job board is linked."},"size":{"type":"object","description":"Self-reported head count only: band (1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+), employees {min, max?}, basis \"self-reported\", evidence (the site's words or its schema.org value), source. Absent unless the site states it."},"industry":{"type":"object","description":"naicsSector (2022 NAICS sector code, e.g. \"51\", \"31-33\"), name, basis \"estimated\" (classified from the site's text), source"},"pages":{"type":"object","description":"about, pricing, careers and contact page URLs found on the site"},"socials":{"type":"object","description":"Social profile URLs keyed by platform"},"tech":{"type":"object","description":"technologies [{name, category}] and categories, from the homepage's headers and HTML"},"domainFacts":{"type":"object","description":"registrar, registeredAt, ageDays, emailProvider, hasSpf, hasDmarc, dmarcPolicy, dnsProvider, saas (vendors from TXT verification records), signals"},"securityContacts":{"type":"array","items":{"type":"string"},"description":"Company-level contact channels from the site's security.txt: role mailboxes (security@, psirt@) and the company's own or bug-bounty pages. Personal addresses and phone numbers are dropped"},"sources":{"type":"array","items":{"type":"object"},"description":"[{field, url}]: the page each AI-read field came from"},"skipped":{"type":"array","items":{"type":"object"},"description":"[{url, reason}]: pages not read (robots.txt or unreachable)"},"coverage":{"type":"object","description":"true or false for name, description, offerings, audience, pricing, hiring, size, industry, tech, socials, securityContacts: whether the site yielded each"},"profiledAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"domain":"vercel.com","url":"https://vercel.com/","name":"Vercel","description":"Vercel is infrastructure for every app and agent: hosting, deployment and compute for web apps and AI agents.","offerings":["Fluid Compute","AI Model Gateway","Vercel Sandbox","Web Application Firewall"],"audience":"Developers and teams building apps, websites and AI agents, from hobby projects to large enterprises.","pricing":{"pageUrl":"https://vercel.com/pricing","model":"freemium","plans":[{"name":"Hobby","price":"$0","period":"/mo."},{"name":"Pro","price":"$20","period":"/mo."},{"name":"Enterprise","price":"Custom"}]},"hiring":{"provider":"greenhouse","boardUrl":"https://job-boards.greenhouse.io/vercel","openRoles":90,"topTeams":[],"topLocations":[{"name":"Hybrid - San Francisco","roles":14},{"name":"Remote - United States","roles":9}],"sample":[{"title":"Software Engineer, Fluid Compute","location":"Hybrid - San Francisco","url":"https://job-boards.greenhouse.io/vercel/jobs/6136160004"}]},"industry":{"naicsSector":"51","name":"Information","basis":"estimated","source":"https://vercel.com/"},"pages":{"about":"https://vercel.com/about","pricing":"https://vercel.com/pricing","careers":"https://vercel.com/careers"},"socials":{"twitter":"https://x.com/vercel","github":"https://github.com/vercel","linkedin":"https://linkedin.com/company/vercel"},"tech":{"technologies":[{"name":"Next.js","category":"framework"},{"name":"Vercel","category":"hosting"}],"categories":{"framework":["Next.js"],"hosting":["Vercel"]}},"domainFacts":{"registrar":"Amazon Registrar, Inc.","ageDays":9870,"emailProvider":"Google Workspace","hasSpf":true,"hasDmarc":true,"dmarcPolicy":"reject","saas":["DocuSign","Google Workspace","HackerOne","Stripe"],"signals":[]},"securityContacts":["https://hackerone.com/vercel","mailto:responsible.disclosure@vercel.com"],"sources":[{"field":"name","url":"https://vercel.com/"},{"field":"pricing","url":"https://vercel.com/pricing"},{"field":"industry","url":"https://vercel.com/"}],"skipped":[],"coverage":{"name":true,"description":true,"offerings":true,"audience":true,"pricing":true,"hiring":true,"size":false,"industry":true,"tech":true,"socials":true,"securityContacts":true},"profiledAt":"2026-10-13T18:00:00.000Z","requestId":"req_company123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"description":"robots.txt disallows the company's homepage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"The homepage could not be read, or the profile could not be extracted from it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The AI service is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/intel/project":{"post":{"tags":["Intelligence"],"summary":"Project Due Diligence","operationId":"intelProject","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.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253,"description":"Project website, e.g. \"example.org\". A full URL is reduced to its hostname.","example":"example.org"},"tokenAddress":{"description":"Optional contract/token address to cross-check against the addresses printed on the site","type":"string","minLength":20,"maxLength":80,"example":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"chain":{"description":"Optional chain label for the token address, e.g. \"base\", \"ethereum\", \"solana\"","type":"string","minLength":2,"maxLength":32,"example":"base"}},"required":["domain"]},"example":{"domain":"example.org","tokenAddress":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"base"}}}},"responses":{"200":{"description":"Off-chain due diligence on a project's web presence — the half an on-chain rug checker cannot see.","content":{"application/json":{"schema":{"type":"object","properties":{"project":{"type":"object","description":"input, domain, reachable, status, title"},"domain":{"type":"object","description":"RDAP facts: registeredAt, ageDays, expiresAt, registrar, nameservers, found"},"site":{"type":"object","description":"technologies with evidence, categories, generator, looksTemplated"},"content":{"type":"object","description":"pages present (team/whitepaper/docs/tokenomics/audit/roadmap), socials, contractAddresses found on the site"},"crossCheck":{"type":"object","description":"Present when tokenAddress was supplied: the queried address, whether it appears on the site, and any other addresses that do","properties":{"queried":{"type":"string"},"chain":{"type":"string"},"foundOnSite":{"type":"boolean"},"otherAddressesOnSite":{"type":"array","items":{"type":"string"}}}},"signals":{"type":"array","items":{"type":"string"},"description":"Weighted off-chain signals: very-new-domain, newly-registered-domain, contract-mismatch, contract-not-on-site, site-unreachable, no-team-page, no-whitepaper, no-docs, no-socials, no-github, templated-site, domain-expires-soon, no-registrar-lock, registration-unavailable"},"risk":{"type":"object","properties":{"score":{"type":"integer","description":"0-100 cumulative weighted risk"},"grade":{"type":"string","enum":["A","B","C","D","F"]},"summary":{"type":"string"}},"description":"score 0-100, grade A-F, summary"},"disclaimer":{"type":"string","description":"States plainly that nothing on-chain was read"},"auditedAt":{"type":"string"},"requestId":{"type":"string"}}},"example":{"project":{"input":"example.org","domain":"example.org","reachable":true,"status":200,"title":"Example Project"},"domain":{"registeredAt":"2021-04-02T00:00:00Z","ageDays":1950,"registrar":"NameCheap, Inc.","found":true},"site":{"technologies":[{"name":"Next.js","category":"framework","evidence":"html contains \"/_next/static\""}],"categories":{"framework":["Next.js"]},"looksTemplated":false},"content":{"pages":{"team":true,"whitepaper":true,"docs":true},"socials":{"twitter":"https://x.com/example","github":"https://github.com/example"},"contractAddresses":["0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"]},"crossCheck":{"queried":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"base","foundOnSite":true,"otherAddressesOnSite":[]},"signals":[],"risk":{"score":0,"grade":"A","summary":"No off-chain risk signals. The web presence is consistent with an established project."},"auditedAt":"2026-08-05T12:00:00.000Z","requestId":"req_proj123"}}}},"400":{"description":"The body failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}}},"components":{"schemas":{"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"}}},"PreviewRequest":{"type":"object","required":["endpoint"],"properties":{"endpoint":{"type":"string","minLength":1,"maxLength":100,"example":"/answer","description":"Paid endpoint path to preview, e.g. \"/answer\" (a leading slash is added if you omit it)"},"url":{"type":"string","format":"uri","example":"https://example.com","description":"Fetch-backed endpoints only (/fetch/basic, /contents, /map): run a real truncated preview of this URL"}}},"PreviewResponse":{"type":"object","properties":{"endpoint":{"type":"string"},"method":{"type":"string"},"price":{"type":"string","description":"Human-readable price, resolved from the same PRICING source as the 402 challenge"},"currency":{"type":"string"},"summary":{"type":"string","description":"One line on what the paid call returns"},"sample":{"type":"object","description":"Recorded example of the real response shape"},"sampleType":{"type":"string","enum":["recorded"]},"live":{"type":"object","description":"Present only when a live preview ran: { url, title, content, truncatedAt, note } — or { error } if the fetch failed"},"livePreviewAvailable":{"type":"boolean","description":"True only for endpoints with no paid upstream (currently /fetch/basic, /contents, /map)"},"livePreviewHint":{"type":"string"},"docs":{"type":"string"},"schema":{"type":"string","description":"URL of the OpenAPI document"},"previewedAt":{"type":"string"},"requestId":{"type":"string"}}},"AgentRegistration":{"type":"object","properties":{"type":{"type":"string","description":"https://eips.ethereum.org/EIPS/eip-8004#registration-v1"},"name":{"type":"string"},"description":{"type":"string"},"image":{"type":"string"},"active":{"type":"boolean"},"x402Support":{"type":"boolean"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"endpoint":{"type":"string"},"version":{"type":"string"}}}},"registrations":{"type":"array","items":{"type":"object","properties":{"agentId":{"type":"string"},"agentRegistry":{"type":"string"}}},"description":"Empty: WebLens is not registered on-chain and holds no agent id"},"supportedTrust":{"type":"array","items":{"type":"string"},"description":"[\"feedback\"] — the only trust model actually supported today"},"payment":{"type":"object","properties":{"protocol":{"type":"string"},"version":{"type":"integer"},"networks":{"type":"array","items":{"type":"string"}},"asset":{"type":"string"},"priceRange":{"type":"string"}}},"feedback":{"type":"object","properties":{"receiptEndpoint":{"type":"string"},"submitEndpoint":{"type":"string"},"hashAlgorithm":{"type":"string"}}}}},"CallReceipt":{"type":"object","properties":{"type":{"type":"string","enum":["weblens-call-receipt-v1"]},"requestId":{"type":"string"},"endpoint":{"type":"string"},"method":{"type":"string"},"status":{"type":"integer","description":"HTTP status the caller received"},"outcome":{"type":"string","enum":["success","error"]},"price":{"type":"string","description":"Charged price, e.g. \"$0.015\". Absent when the call was not charged."},"currency":{"type":"string","enum":["USD"]},"paymentMethod":{"type":"string","description":"\"x402\" or \"credits\""},"network":{"type":"string"},"payTo":{"type":"string"},"transaction":{"type":"string","description":"Settlement transaction (EVM tx hash or Solana signature) — the on-chain proof of payment. Absent for credits."},"payer":{"type":"string","description":"Address that paid"},"servedAt":{"type":"string"}}},"FeedbackDocument":{"type":"object","required":["agentRegistry","agentId","clientAddress","createdAt","value","valueDecimals"],"description":"Buyer-authored ERC-8004 feedback document. Extra fields are preserved verbatim.","properties":{"agentRegistry":{"type":"string","description":"CAIP-10 style address of the Identity Registry the agentId belongs to"},"agentId":{"type":"string"},"clientAddress":{"type":"string","description":"Wallet posting giveFeedback()"},"createdAt":{"type":"string"},"value":{"type":"number","description":"Score, scaled by valueDecimals"},"valueDecimals":{"type":"integer"},"tag1":{"type":"string"},"tag2":{"type":"string"},"endpoint":{"type":"string","description":"WebLens endpoint the feedback is about"},"proofOfPayment":{"type":"string","description":"e.g. the X-Receipt-Url of the paid call"}}},"FeedbackHosted":{"type":"object","properties":{"feedbackURI":{"type":"string","description":"Pass to giveFeedback() — GET it to retrieve the exact bytes that were hashed"},"feedbackHash":{"type":"string","description":"keccak-256 of the canonical document bytes"},"storedAt":{"type":"string"},"hashAlgorithm":{"type":"string","enum":["keccak256"]},"note":{"type":"string"},"requestId":{"type":"string"}}}},"responses":{"PaymentRequired":{"description":"Payment required — x402 v2 protocol. Parse the PAYMENT-REQUIRED response header (base64-encoded JSON), sign the payment with your wallet, then retry the request with the Payment-Signature request header.","content":{"application/json":{"schema":{"type":"object","description":"Body is empty {} on a 402 — payment requirements are in the PAYMENT-REQUIRED response header."}}},"headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON with the x402 v2 payment requirements: { x402Version: 2, error, resource, accepts: [{ scheme, network, amount, asset, payTo, maxTimeoutSeconds, extra }] }","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded settlement receipt (txHash, network) — returned on a successful response that delivers a paid resource.","schema":{"type":"string"}}}}},"securitySchemes":{"x402Payment":{"type":"apiKey","in":"header","name":"Payment-Signature","description":"x402 v2 payment payload (base64-encoded signed payment)"}}},"security":[{"x402Payment":[]}]}