Skip to main content
The ExecutionResource provides direct, stateless endpoints for running browser automation without saving a task first. You can scrape a page, run an agent session, or launch a headful browser in a single call. The Figranium client also exposes these as top-level shortcuts: client.scrape(), client.agent(), and client.headful().
ExecutionResource (singular) is for direct runs. For saved-task execution, see TasksResource. For execution history and live streams, see ExecutionsResource.

Methods

Performs a one-off scrape by sending POST /scrape. Pass a url, a selector for DOM extraction, or an extraction_script for custom parsing. You can also inject runtime variables via variables or taskVariables.
scrape_by_selector.py
scrape_by_script.py
Runs a one-off agent session by sending POST /agent. The agent navigates and interacts autonomously based on the provided input. You can supply a runId to correlate or resume a specific run.
agent_run.py
Launches a headful (visible) browser session by sending POST /headful. Pass a starting url and optional runtime variables. This is useful when you need to interact with a live browser window or debug visually.
headful_run.py

Top-level shortcuts

Figranium mirrors these methods at the client root so you can call them directly without reaching into execution:
shortcuts.py
On AsyncFigranium, each shortcut is awaited the same way: result = await async_client.scrape(...).

Return type

All three methods return ExecutionResult, which includes the following fields: For error handling, see /sdk/python/errors. For request options such as custom headers and timeout, see /sdk/python/request-options.