v2

latestOpenAPI 3.1.02026-08-01302833.9 KB
Unified Agent APIs

Unified Document Extract

Unified document extraction.

Extracts structured data from a URL or raw content. Provide either:

  • A URL (we scrape it first, then extract)
  • Raw content (we extract directly)

And either:

  • An extraction_prompt (natural language: "Extract all product prices")
  • A JSON schema (we extract data matching the schema)

Uses the proven O-mega pattern: Firecrawl scrape + Claude LLM extraction.

post/v1/documents/extract

Request body

urlstring nullable

URL to scrape and extract from

contentstring nullable

Pre-scraped content to extract from (alternative to url)

extraction_promptstring nullable

REQUIRED unless schema is provided. Natural language description of what to extract, e.g. 'Extract all product prices and features'

schemaobject nullable

REQUIRED unless extraction_prompt is provided. JSON schema defining the structure of data to extract

Response

Successful Response

{"stackTrail":"paths:/v1/documents/extract:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}