Skip to main content

Recipe

This recipe shows how to extract structured data from web pages using AI without writing CSS or XPath selectors. Use extractStructuredData (TypeScript) or extract_structured_data (Python).
TypeScript

How it works

  1. Define a schema - Use Zod (TypeScript) or Pydantic (Python) to describe the data structure you want to extract
  2. Call the AI extractor - Pass the page and schema to extractStructuredData / extract_structured_data
  3. Get structured data - The AI analyzes the page and returns data matching your schema
No need to inspect the DOM, write selectors, or handle edge cases—the AI handles it all.

extractStructuredData (TypeScript)

TypeScript SDK helper for AI data extraction

extract_structured_data (Python)

Python SDK helper for AI data extraction

Cookbook (Python)

Python quick recipes in the Intuned Cookbook

Cookbook (TypeScript)

TypeScript quick recipes in the Intuned Cookbook