No logo available for UI Bakery Firebase to DuckDB connector icon

Load UI Bakery Firebase data to DuckDB

Build a UI Bakery Firebase to DuckDB pipeline with your coding agent. One prompt scaffolds it with the dltHub AI harness, plus the UI Bakery Firebase API base URL, auth, endpoints, and incremental loading.

SourceUI Bakery FirebaseUI Bakery Firebase API DocumentationDestinationDuckDBIn-process analytical database. The default local destination for dlt pipelines.

UI Bakery provides native integration connectors for Firebase services including Firestore, Firebase Auth, and Realtime Database using service account credentials. Everything needed to build a working UI Bakery Firebase → DuckDB pipeline is on this page: the API's base URL, authentication, endpoints, pagination and incremental field — plus a prompt that hands the whole job to your coding agent.


Build your UI Bakery Firebase to DuckDB pipeline

Paste this prompt into Claude, Codex, or Cursor. The agent does the rest.

Prompt
Run uvx dlthub-init@latest to build a pipeline from UI Bakery Firebase to DuckDB and run it on dltHub

That scaffolds a dltHub workspace and installs the dltHub AI harness — the project rules, the secrets-management skill, and the dlt MCP server your agent needs to work safely. From there it reads the UI Bakery Firebase API, proposes the endpoints to load, then writes, runs and validates the pipeline while you review rather than type. Credentials are inspected through MCP tools, so your agent never reads secrets.toml itself. How the LLM-native workflow works →

Prefer to write it yourself? Every fact the agent uses is below.


UI Bakery Firebase API at a glance

Base URLhttps://your_project.firebaseio.com/
Example endpointGET api/instance/apps
AuthenticationFirebase services are authenticated using a service account private key — sent in the Authorization header, prefixed Bearer
PaginationNot paginated
API referencehttps://docs.uibakery.io/reference/data-sources/http/api-authentication

These values come from the UI Bakery Firebase API reference — the authoritative source if anything here looks out of date.


How do I authenticate with the UI Bakery Firebase API?

Authentication to Firebase services in UI Bakery is handled by providing a private key (generated from the Firebase Admin SDK) and, for Realtime DB, the database URL. This configuration is done via UI Bakery's native Firebase data source connector, not a generic REST API endpoint.

1. Get your credentials

To obtain the necessary credentials for Firebase integration, navigate to the Firebase console and select your project. For service account-based authentication (commonly used for Firestore and Realtime DB access), go to Project settings > Service accounts, select Firebase Admin SDK, and click Generate new private key to download the JSON key file. Additionally, for Realtime Database, obtain your database URL (https://your_project.firebaseio.com/) from the Realtime Database section in the Firebase console. If your integration specifically requires a Web API Key, you can find this in your project settings under General.

2. Add them to .dlt/secrets.toml

[sources.ui_bakery_firebase_source] private_key = "REPLACE_ME"

dlt reads this file automatically at runtime. With the harness, the setup-secrets skill prompts you for the values and never handles the raw credential in chat. For production, see setting up credentials with dlt.


What UI Bakery Firebase data can I load into DuckDB?

These are the UI Bakery Firebase endpoints dlt can load into DuckDB:

ResourceEndpointMethodData selectorDescription
apps/api/instance/app/{app_id}/pullPOSTPull latest commits for specified app/branch
apps/api/instance/app/{app_id}/releasePOSTRelease the app to specified environments
instance_status/api/instance/statusGETRetrieve instance operational status
instance_config/api/instance/configGETRetrieve instance configuration details
app_list/api/instance/appsGETList all applications on the instance

How do I load only new UI Bakery Firebase records?

The UI Bakery Firebase API reference does not document a timestamp or sequence field for these endpoints, so there is nothing to advertise here as verified. Pick a field from the endpoints table above that increases with every write, then set it as the cursor_path.

{"name": "app_list", "endpoint": { "path": "api/instance/apps", # Replace with a field that increases on every write. "incremental": {"cursor_path": "REPLACE_ME", "initial_value": "2024-01-01T00:00:00Z"}, }}

On the first run dlt loads everything from initial_value; on every run after that it requests only what changed and appends with write_disposition="merge" if you set a primary key. See incremental loading.


What does the generated UI Bakery Firebase pipeline look like?

A standard dlt REST API pipeline — the same code you would write by hand, loading documents and users from the UI Bakery Firebase API into DuckDB:

import dlt from dlt.sources.rest_api import RESTAPIConfig, rest_api_resources @dlt.source def ui_bakery_firebase_source(private_key=dlt.secrets.value): config: RESTAPIConfig = { "client": { "base_url": "https://your_project.firebaseio.com/", "auth": {"type": "bearer", "token": private_key}, }, "resources": [ {"name": "app_list", "endpoint": {"path": "api/instance/apps"}}, {"name": "app_release", "endpoint": {"path": "api/instance/app/{app_id}/release"}} ], } yield from rest_api_resources(config) def load_ui_bakery_firebase_to_duckdb() -> None: pipeline = dlt.pipeline( pipeline_name="ui_bakery_firebase_pipeline", destination="duckdb", dataset_name="ui_bakery_firebase_data", ) load_info = pipeline.run(ui_bakery_firebase_source()) print(load_info) if __name__ == "__main__": load_ui_bakery_firebase_to_duckdb()

Run it with python ui_bakery_firebase_pipeline.py. The agent iterates on this until it loads cleanly — you review and approve, rather than write it from scratch.


How do I query UI Bakery Firebase data in DuckDB?

dlt creates one table per resource. Query the loaded data with Python or SQL — or ask your agent to, through the MCP server's execute_sql_query tool.

Python (pandas DataFrame):

import dlt data = dlt.pipeline("ui_bakery_firebase_pipeline").dataset() df = data.app_list.df() print(df.head())

SQL:

SELECT * FROM ui_bakery_firebase_data.app_list LIMIT 10;

See querying your data with dataset and exploring it in marimo notebooks.


How do I deploy the UI Bakery Firebase to DuckDB pipeline in production?

The pipeline runs locally, which is ideal for prototyping and one-off analysis. When you need it on a schedule, monitored on every load, and shared with your team, deploy the same dlt code on the dltHub platform — no infrastructure to maintain. The prompt above already ends with "run it on dltHub", so your agent can take it there directly.

  • Deploy & schedule — run the pipeline as a managed job with automatic retries.
  • Monitor — observable job queues, alerting, and load metrics for every run.
  • Transform — promote raw UI Bakery Firebase loads into governed, documented models.
  • Visualize & share — explore data in notebooks and publish live dashboards instead of static screenshots.

Book a demo →


What other destinations can I load UI Bakery Firebase data to?

dlt loads into any of these — only the destination argument changes:

DestinationExample value
PostgreSQL"postgres"
BigQuery"bigquery"
Snowflake"snowflake"
Redshift"redshift"
Databricks"databricks"
Filesystem (S3, GCS, Azure)"filesystem"

Set dlt.pipeline(destination="snowflake") and add credentials in .dlt/secrets.toml. On the dltHub platform the same pipeline runs against a managed Iceberg lakehouse. See the full destinations list.


Next steps

Was this page helpful?

Community Hub

Need more dlt context for UI Bakery Firebase to DuckDB?

Request dlt skills, commands, AGENT.md files, and AI-native context.