Skip to main content

Overview

Extract uses an LLM to pull structured data from a URL, HTML, or markdown. Provide a prompt (and optionally a JSON schema) and it returns typed JSON — no selectors or post-processing required.
Try Extract instantly in our interactive playground.

Pricing

Each Extract call costs 5 credits. Enabling stealth in fetchConfig adds 5 credits; render mode (auto / fast / js) does not affect the cost. See the pricing page for the full breakdown.

Getting Started

Quick Start

Parameters

Get your API key from the dashboard.

With a JSON Schema

Pass a JSON schema to pin down the exact output shape.

With a Pydantic Schema (Python)

If you already model your data with Pydantic, use the same BaseModel to drive the extraction. model_json_schema() produces the JSON Schema dict the API expects, and model_validate() parses the response back into typed objects.
The wire format is JSON Schema either way — model_json_schema() is just the standard Pydantic v2 helper that produces it. Field descriptions are forwarded to the LLM and improve extraction quality on ambiguous fields.

Extract from HTML or Markdown

Skip the fetch and extract from content you already have.

FetchConfig

Control how the page is fetched before extraction (JS rendering, stealth, headers, etc). See the full options in Scrape · FetchConfig.

Async Support (Python)

Key Features

Universal Compatibility

Works with any URL, raw HTML, or markdown input.

AI Understanding

Contextual extraction — no XPath or brittle selectors.

Structured Output

JSON schema support for typed, predictable results.

Token Accounting

Response includes prompt/completion token usage.

Integration Options

Official SDKs

AI Framework Integrations

Support & Resources

Documentation

Guides and tutorials

API Reference

Detailed API documentation

Community

Join our Discord community

GitHub

Check out our open-source projects