{"uid":"cap_2i4tKt_NADDqMaJT5-KbR","slug":"weblens-extract-api-5d51a05d","name":"WebLens Extract API","description":"# WebLens - Web Intelligence API, pay per call\n\nScrape, crawl, map and extract the web. No account, no API key, no monthly\nminimum — you pay for the calls you make and nothing else.\n\n## Pricing\nPage fetching starts at **$0.002**, whole-site crawling at\n**$0.0015/page**, and sitemap discovery at **$0.004**.\nComparable services bill $0.007-0.008 per request, or reach a lower per-page\nrate only on a $99/month commitment. WebLens has no commitment to reach.\n\n## Payment Protocol\nAll paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native\nmicropayments (USDC on Base).\n\n## Cache Discount\nCached responses are **70% cheaper** than fresh fetches.","url":"https://api.weblens.dev/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"URL of the webpage to extract from"},"schema":{"type":"object","description":"JSON schema defining the data structure to extract"},"instructions":{"type":"string","description":"Natural language instructions to guide extraction"}}},"responseSchema":{"type":"json","example":{"url":"https://example.com/product","data":{"name":"Product Name","price":99.99,"inStock":true},"requestId":"req_extract789","extractedAt":"2026-01-26T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5AezE_l8oLnRJMAWJEPao","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured data fields from a given URL using AI-powered web scraping","exampleAgentPrompt":"Can you scrape https://example.com/product and extract the product name, price, and whether it's in stock as structured data?","exampleUseCases":[{"title":"E-commerce price monitoring","prompt":"Pull the current price, product name, and stock status from this Amazon listing: https://amazon.com/dp/B09XYZ — I want it as clean structured data."},{"title":"Competitor research data collection","prompt":"Scrape https://competitor.com/pricing and extract all the plan names and their prices so I can compare them to ours."},{"title":"Real estate listing extraction","prompt":"Go to https://zillow.com/homedetails/123-main-st and extract the listing price, number of bedrooms, bathrooms, and square footage as structured JSON."}],"resultDescription":"Returns a JSON object containing the extracted structured data fields from the target URL, along with a unique request ID and an ISO timestamp of when the extraction occurred. The data object contains the specific fields requested (e.g. name, price, inStock status).","failureModes":["URL is unreachable or returns a non-200 HTTP status — extraction fails with an error response","Target page uses heavy JavaScript rendering that prevents content access","Requested fields are not present on the page — returns null or missing keys","Rate limiting or bot protection on the target site blocks the request","Malformed or invalid URL input causes a 4xx client error","Page content has changed structure since last cached response, causing stale data"],"whenToPreferThis":"Choose this endpoint when you need to extract specific structured fields from a known URL into clean JSON, especially for e-commerce product pages, pricing pages, or any web content where you want targeted data points rather than raw HTML. It is preferable over generic HTTP fetch when you need AI-powered field identification and structuring. The caching discount (70% cheaper) makes it cost-effective for repeatedly accessed URLs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:32:32.258Z","isFirstParty":false,"canonicalSlug":"weblens-extract-api-5d51a05d"}