The `apache-airflow-providers-airbyte` package provides Apache Airflow operators and sensors to interact with Airbyte, an open-source data integration platform. It enables users to trigger and monitor Airbyte synchronization jobs directly from Airflow DAGs. The current version is 5.4.0, supporting Airflow >=2.11.0 and Python >=3.10, and it maintains a regular release cadence with ongoing development.
pip install apache-airflow-providers-airbyteVerified import paths — ran on the pinned version, not inferred.
This quickstart DAG demonstrates how to trigger and monitor an Airbyte synchronization job using the `AirbyteTriggerSyncOperator` and `AirbyteJobSensor`. Before running, you need to: 1. Install the provider: `pip install apache-airflow-providers-airbyte[http]`. 2. Configure an Airflow 'Airbyte' connection (e.g., `AIRBYTE_CONNECTION_ID`) pointing to your Airbyte instance's API (e.g., `http://localhost:8001`). 3. Obtain the UUID of the specific Airbyte connection you wish to sync from the Airbyte UI (this is `AIRBYTE_SYNC_CONNECTION_ID`). 4. Set `AIRBYTE_CONN_ID` and `AIRBYTE_SYNC_CONN_ID` as environment variables or replace them directly in the DAG code.
Update your Airflow Airbyte connection configuration to use `client_id` and `client_secret` for authentication and ensure the host is a complete FQDN. Remove `api_type` parameter if present.
Ensure your Airflow environment is at least 2.11.0. Replace `polling_interval` with `poke_interval` in `AirbyteJobSensor`.
Upgrade Airflow to at least 2.1.0 (preferably the latest compatible version for your provider) before upgrading the Airbyte provider. Run `airflow upgrade db` if automatic upgrade occurs.
Understand Airbyte's sync configuration (e.g., incremental vs. full refresh) for the connection being triggered and design your DAGs accordingly to handle potential non-idempotent behavior.
If using Airbyte Cloud, consider implementing `airflow.providers.http.operators.http.SimpleHttpOperator` for more direct API calls to the Airbyte Cloud API instead of the dedicated Airbyte provider operators.
In the Airbyte UI, for any connection orchestrated by Airflow, set its replication frequency to 'Manual'.
Ensure that 'apache-airflow-providers-airbyte' is installed by adding it to your requirements.txt and verifying its presence in the Airflow UI under Admin > Providers.
Verify that Airbyte is running and accessible at the specified host and port, and ensure that the Airflow connection settings for Airbyte are correctly configured.
Upgrade Apache Airflow to version 2.10.0 or higher to be compatible with the installed 'apache-airflow-providers-airbyte' package.
Edit your Airflow HTTP connection for Airbyte and ensure the 'Host' field contains a complete URL, such as `http://localhost:8000` or `https://your-airbyte-instance.com`.
Verify the `Client ID`, `Client Secret`, and `Token URL` in your Airflow Airbyte connection settings. For Airbyte OSS, the default `token_url` is typically `/api/public/v1/applications/token`. If using Airbyte OSS without authentication, consider if the standard operator is appropriate or if a custom `PythonOperator` is needed to interact with an unauthenticated Airbyte API.