Skip to content
Software capabilities
Apache Airflow

How to list Apache Airflow DAG runs

Use the Airflow 3 public REST API to inspect runs remotely. Use airflow dags list-runs from a configured Airflow environment for a local view.

Documentation reviewed · 2 methods with sources

Ways to do it

  1. API: GET /api/v2/dags/{dag_id}/dagRuns
  2. CLI: airflow dags list-runs
API

GET /api/v2/dags/{dag_id}/dagRuns

Read a page of runs for a DAG, including their state and timestamps. Use limit and offset to navigate the run history.

Read source: Apache Airflow 3.4 public API get DAG runs
Requirements
An Airflow 3 API server, a valid bearer JWT, the DAG ID, and GET permission for the DAG.RUN resource under the configured auth manager.
Limitations
The endpoint defaults to a 50-run page. The deployment sets the API page-size cap, which defaults to 100.

Example shell

curl --fail -H "Authorization: Bearer $AIRFLOW_TOKEN" \
  "$AIRFLOW_BASE_URL/api/v2/dags/$DAG_ID/dagRuns?limit=50&offset=0"
CLI

airflow dags list-runs

List runs for a DAG by ID. Filter by state or date and use JSON output for a script.

Read source: Apache Airflow 3.4 CLI list-runs reference
Requirements
Airflow 3.4 CLI in an environment configured with read access to the deployment’s metadata database, plus the DAG ID.
Limitations
In Airflow 3.4, --limit selects the most recent matching runs, ordered by run_after, after filters are applied.

Example shell

airflow dags list-runs "$DAG_ID" --state failed --limit 20 -o json