Skip to main content
cloudflare.extractJson renders a page and uses Cloudflare AI to extract structured data.
automations/extract-cloudflare-json.automation.ts

Inputs

Provide accountId, exactly one of url or html, and at least one of prompt or responseFormat. responseFormat accepts a type and optional JSON Schema. customAi supplies an ordered fallback list of model names and optional authorization values. cacheTtl defaults to 5 seconds, and the common Browser Run page controls are available.

Output

Returns the extracted JSON object. JSON Schema property names and extra HTTP-header names are preserved exactly. The action consumes Browser Run duration and is not replay-safe.