Extract structured data
POST /v1/extract fetches a URL and pulls structured data out of it using one of
three extraction methods. It returns typed JSON instead of raw Markdown.
Authentication: API key or x402 payment.
Endpoint
Request
Body
Provide at least one of
schema, selectors, or xpaths. When multiple are
given, priority is schema > selectors > xpaths.
options object
Response
Success — 200 OK
metadata shape:
Examples
Schema-based extraction
The schema engine layers multiple signals: JSON-LD (highest confidence), meta tags, semantic CSS selectors, then a generic attribute/class fallback.Response
CSS selector extraction
Selectors can be a plain string or an object withselector, attribute, type
(list), and nested fields:
XPath extraction
Errors
Fields that can’t be extracted are returned as
null with a lower confidence score,
rather than failing the whole request.