> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get crawl

> Retrieve a Cloudflare Browser Run crawl and its records.

`cloudflare.getCrawl` retrieves one crawl's status and current page of records.

```ts automations/get-cloudflare-crawl.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { cloudflare } from "automate.ax/cloudflare"

export default automation("Inspect crawl", () => {
  onDashboardRun({ title: "Inspect crawl" })
  const crawl = cloudflare.getCrawl({
    accountId: "cloudflare-account-id",
    jobId: "crawl-job-id",
    limit: 100,
  })
  sendEmail({ subject: "Crawl status", text: crawl.status })
})
```

## Inputs

`accountId` and `jobId` are required. `limit` controls page size and defaults to 50, `cursor` defaults to 0 and continues pagination, and `status` filters records to `queued`, `errored`, `completed`, `disallowed`, `skipped`, or `cancelled`. `cacheTtl` defaults to 5 seconds.

## Output

Returns the job ID and status, browser seconds used, totals, optional numeric next cursor, and records. Cloudflare may encode the response cursor as a number or numeric string; Automate.ax normalizes both forms to a number you can pass back as `cursor`. Each record contains its URL and status plus available HTML, Markdown, JSON, and fetch metadata.
