Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Extract prompted or structured data from supplied document content.
scrapfly.extractContent
import { automation, onInvocation } from "automate.ax" import { scrapfly } from "automate.ax/scrapfly" export default automation("Extract price", () => { onInvocation() scrapfly.extractContent({ body: "<main><span>$42</span></main>", contentType: "text/html", prompt: "Return the price as JSON", }) })
body
string
contentType
'text/html' | 'text/markdown' | 'text/plain' | 'text/xml'
prompt
model
template
ephemeralTemplate
charset
url
timeout
webhookName
{ contentType, data }