Skip to main content

Workflow Methods

Workflow methods allow you to build multi-step scraping pipelines where the output of one scraper feeds into the next. See the Workflows concept page for an introduction.

Quick reference

Workflow classes

Client methods

Workflow class

Constructor

start()

Create the starting node with static URLs.
Returns: WorkflowNode — chain with .then() for downstream nodes

to_dict()

Serialize the workflow for API requests. You typically don’t need to call this directly — create_workflow() and run_workflow() handle serialization.

WorkflowNode class

then()

Chain a downstream node that receives data from this node.
Returns: WorkflowNode — the new downstream node (for further chaining)
If url_field is provided, the node uses upstream_urls input type (extracts URLs from upstream results). If neither url_field nor parameter_config is provided, it uses upstream_data input type (passes full upstream results as context).

Filter class

Build filter conditions for workflow edges. All string operators accept an optional case_sensitive parameter (default: False).

String operators

Existence operators

Comparison operators

Logical combinators

Examples

Client methods

create_workflow()

Create a workflow from a Workflow object.
Returns: Created workflow details including id

run_workflow()

Run a workflow. Accepts either a Workflow object (creates then runs) or a workflow ID string.
Returns: Completed run details including status and node_executions (if wait=True) or run details with status (if wait=False). Use get_workflow_output() to fetch results. Raises: MeterError if run fails or times out

wait_for_workflow()

Poll a workflow run until it completes.
Returns: Completed run with results Raises: MeterError if run fails or times out

get_workflow()

Get workflow details including nodes and edges.

list_workflows()

List all workflows.

delete_workflow()

Delete a workflow and all associated runs and schedules.
This deletes the workflow, all run history, and any associated schedules.

get_workflow_run()

Get details of a specific workflow run, including node execution results.
Returns: Run details including status and node_executions

list_workflow_runs()

List run history for a workflow.

get_workflow_output()

Get the latest completed run’s results.
Returns: Latest run output. Default format uses final_results_by_url_grouped; with flat=True uses final_results_by_url. Also includes status, changed_since_previous, run_id, workflow_id, completed_at. Raises: MeterError if no completed runs exist

Scheduling methods

schedule_workflow()

Schedule a workflow to run on an interval or cron expression.

list_workflow_schedules()


update_workflow_schedule()


delete_workflow_schedule()


Complete example

See also

Workflows Concept

Understand workflow architecture and patterns

REST API

Workflow endpoints in the REST API

MeterClient Reference

Full client method documentation

Strategies

Learn about the strategies workflows use

Need help?

Email me at mckinnon@meter.sh