Method Signatures
- TypeScript
- Python
Parameters
Natural language description of what data to extract.
Type schema defining the structure of data to extract. Ensures type safety and validation.
XPath selector to limit extraction scope. Reduces token usage and improves accuracy.
Set to
true
if content exists within iframes.Default: false
Override the default LLM model for this extraction.
Model-specific configuration options.
Maximum time to wait for DOM to stabilize.Default:
30000
Response Types
- With Schema
- String Only
- No Parameters
Returns:
Promise<ExtractResult<T>>
where T matches your schemaThe returned object will be strictly typed according to your schema definition.Code Examples
- Single Object
- Arrays
- URLs
- Scoped
- Schema-less
- Advanced