# SiteLenz - Website Intelligence API SiteLenz is a pay-per-request Website Intelligence API. Give it a URL and get structured analysis of its technology, SEO, security, business, UX/accessibility, performance, screenshots, and more. Built for applications and AI agents, with each request paid in USDC through x402. ## How to use this API 1. Make a POST request to any analysis endpoint 2. You will receive HTTP 402 with a payment challenge 3. Sign an Algorand USDC transaction and retry with X-PAYMENT header 4. You receive an analyzeJobId immediately 5. Poll GET /v1/analyze/{endpoint}/{analyzeJobId} until status is "completed" 6. Fetch result at GET /v1/analyze/{endpoint}/{analyzeJobId}/result ## Endpoint catalog GET /v1/analyze - returns full catalog with prices POST /v1/analyze/full - $0.80 - All analyzers deep mode + mobile screenshot + expanded AI POST /v1/analyze/standard - $0.40 - All analyzers + desktop screenshot + AI summary POST /v1/analyze/ai-summary - $0.05 - Crawls URL, returns AI executive summary only POST /v1/analyze/performance - $0.02 - Lighthouse, Core Web Vitals, page weight, third-party analysis POST /v1/analyze/technology - $0.01 - Framework, CMS, CDN, analytics, payment provider detection POST /v1/analyze/seo - $0.01 - Meta tags, Open Graph, headings, structured data, robots POST /v1/analyze/security - $0.01 - Security headers, TLS certificate, HTTPS, mixed content POST /v1/analyze/business - $0.01 - Business name, contact, social links, pricing signals, CTA POST /v1/analyze/ux-accessibility - $0.01 - Viewport, navigation, forms, accessibility score POST /v1/analyze/screenshots - $0.01 - Desktop + mobile screenshots via headless Chromium ## Request format All endpoints accept: { "url": "https://example.com", "webhookUrl": "https://your-server/webhook" } webhookUrl is optional. If provided, SiteLenz will POST a signed notification when the job completes. ## Response format Job created: { "analyzeJobId": "sl_aj_...", "status": "queued", "endpoint": "...", "createdAt": "..." } Job status: { "analyzeJobId": "...", "status": "queued|running|completed|failed", "progressStage": "...", "errorMessage": "..." } Job result: { "analyzeJobId": "...", "url": "...", "endpoint": "...", "result": {}, "metadata": { "cacheHit": true } } ## Retry failed jobs POST /v1/analyze/{endpoint}/{analyzeJobId}/retry - no payment required ## Crawl cache Raw browser observations are cached per URL for 48 hours. Subsequent requests for the same URL reuse the cache - faster completion, same price. ## Network Testnet and Mainnet supported. Active network: determined by NETWORK env var on the server. Current network visible at GET /health. ## Documentation Full OpenAPI spec: https://api.sitelenz.online/docs-json Interactive docs: https://api.sitelenz.online/docs