AI structured data extraction from a web page
web_extractAI web scraping to structured JSON: the fields of a JSON Schema (object root, up to 4 KB) or a field-name list, extracted from one public web page or document (HTML, PDF, DOCX) fetched via SSRF-checked redirects. Returns data in the requested shape, null where the page states no value, a page quote per value when one matches the page text in code, final URL, title and truncation flag. AI-generated by Anthropic Claude under a fixed Kit Rx prompt; values can be wrong. Price: $0.005 per successful call, paid in USDC with x402 v2; failed calls and calls that match nothing are not charged. AI-generated answer; a call with no arguments returns the stored example answer without a model call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "web_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | http or https URL of a public web page or document (PDF, DOCX, spreadsheet). Default ports only; credentials, IP addresses, localhost and private or single-label names are rejected. | |
| fields | No | Comma-separated field names to extract as text, at most 25, each 1-40 of a-z, 0-9 and _ (e.g. height,location,opened). Give schema or fields. | |
| schema | No | JSON Schema of the object to extract, URL-encoded JSON, at most 4 KB, object root. Supported: type, properties, items, enum, const, anyOf/oneOf, allOf of objects, local $ref with $defs, format, description. additionalProperties must be false or omitted; recursive schemas are rejected; length and range constraints are removed. At most 50 properties, 5 levels and 16 union-typed properties. Give schema or fields. | |
| main_only | No | true (default) reads the page's main content only; false reads the whole page, including header, navigation and footer (where contact details often sit). |