Syntax
Arguments
schema: JSON string defining the extraction schema
Options
--session <id>: Session ID to use--description <text>: Description of what to extract--schema <json>: Alternative way to specify the schema
Examples
Simple Field Extraction
Product Information
With Description
Array Extraction
Using —schema Flag
Complex Nested Schema
Response
Returns the extracted data matching the schema:Schema Format
The schema is a JSON object that defines the structure of data to extract:- Primitive types:
"string","number","boolean" - Objects: Nested objects with typed fields
- Arrays:
[type]or[{object schema}]
Examples
Use Cases
- Web scraping structured data from product pages
- Extracting article metadata and content
- Gathering contact information from directories
- Collecting pricing and availability data
- Building datasets from web pages