> ## 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 Scrapfly crawl status

> Read crawler state, progress counters, and terminal outcome.

`scrapfly.getCrawlStatus` reads the current state of one crawler job.

```ts theme={null}
import { automation, onInvocation } from "automate.ax"
import { scrapfly } from "automate.ax/scrapfly"

export default automation("Inspect crawl", () => {
  const request = onInvocation()
  scrapfly.getCrawlStatus({ crawlerId: request.input.crawlerId })
})
```

`crawlerId` is required. The result contains `status`, `isFinished`, nullable `isSuccess`, and counters under `state`: visited, extracted, failed, skipped, queued URLs, API credits, duration, start/stop times, and stop reason. A finished job uses `status: "DONE"`; inspect `isSuccess` to distinguish success from failure.
