Resources · n8n integration

Google Cloud Realtime Database n8n integrationAutomate Google Cloud Realtime Database with n8n.

Where should a workflow park its JSON so the next step, or your app, can read it back? The Google Cloud Realtime Database n8n integration puts 5 operations on a single node: write, append, update, read, delete. There is no trigger node, so the run always starts somewhere else.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does the Google Cloud Realtime Database n8n integration actually do?

Google Cloud Realtime Database is the Firebase store that keeps one JSON tree in sync between a backend and the apps that read it. The n8n node talks to that tree through the Realtime Database API, with 5 operations on a single resource: write a record, append to a list, update fields, read a path, delete a path. You choose the Firebase project, you name the attributes to save, and the workflow handles the round trip.

Start with the case the official catalog already shows: a workflow that collects and stores. Template 787 tracks the position of the ISS, where an HTTP Request node fetches the coordinates and the Google Cloud Realtime Database node appends them with default.push. Every run adds an entry, and the tree becomes a log your app can read without a second API in the middle.

The second case runs the other way. Your app already reads the tree, so anything a workflow writes shows up on the client side on its next read. A support status, a feature flag, a counter for a dashboard: drop it at a known location with default.create, refresh it later with default.update, and no one has to ship a new backend route for it.

Third case, the unglamorous one that saves the most time: housekeeping. default.get pulls a branch of the tree into the workflow, a filter step keeps what matters, the rows land in Google Sheets for the weekly report, and default.delete clears what has already been archived.

Now the honest part. These 5 operations cover reading and writing, and nothing else: create, delete, get, push, update. default.get returns a path, or the whole database object when the path is left blank, and whatever the workflow does with that result happens in the nodes that follow. When you need an endpoint of the Realtime Database API that the node does not expose, the HTTP Request node calls it directly and reuses the same Google credential through its predefined authentication. And when the job really calls for queries or joins, a relational store like Postgres or Supabase sits next to it happily, since a workflow can write to both.

The other limit sits at the start of the workflow. This tool has no trigger node in n8n, so nothing here watches the tree for changes. A run begins with a Schedule Trigger at a fixed interval, with an n8n Webhook, which is a URL your app calls, or with the trigger of another tool such as Airtable. Worth saying out loud: this is not Google Cloud Firestore, which is a different node with a different data model. If the n8n editor itself is still new to you, the n8n training covers the parts this page assumes.

Connect

How do you connect the node to your Firebase project?

  1. 01

    Create the Google credential in n8n

    A credential is the set of connection details n8n stores once and reuses in every workflow. On n8n Cloud, the fastest route is Managed OAuth2: open the credential screen, click Sign in with Google, and nothing else is needed in the Google Cloud Console. Self-hosted instances do not get Managed OAuth2, so use the dropdown to switch to Custom OAuth2, which asks for a Client ID and a Client Secret you create in the next step.

  2. 02

    Set up the OAuth client in Google Cloud Console

    Create a Google Cloud project, enable the APIs you need, then open APIs & Services > OAuth consent screen and fill in the App name and the User support email. For Audience, pick Internal for your own workspace or External for any Google account. Under Branding, add an authorized domain: n8n.cloud on Cloud, the domain of your instance when self-hosting.

  3. 03

    Finish the client and point the node at a project

    In Credentials, select + Create credentials > OAuth client ID, choose Web application as the application type, then copy the OAuth Redirect URL shown in your n8n credential into Authorized redirect URIs. Service accounts are documented too, with a Service Account Email and a Private Key taken from the downloaded JSON file, quotes excluded. Back in the node, the Project Name or ID dropdown then lists your projects.

Actions

The 5 operations of the node, one by one

The Google Cloud Realtime Database node exposes 5 operations. For each one: the node as you configure it in n8n, the required fields, and our field notes.

01

Write data to a database

create

What you see in n8n

Notes & use cases

Saves the incoming item into the database of the Firebase project you select, so the record is there for whatever reads next.

Key parameters

  • Project Name or ID: the project as displayed in the firebase console URL. Pick it from the list, or set it with an expression such as {{ $json.projectId }} when the project comes from an earlier node.
  • Columns / Attributes: the comma separated fields to save, in the shape age, name, city. Only what you name here is written, so a field missing from that list never lands in the tree.
Use cases
storing the cleaned result of a form submission as a plain JSON object your app can read on its next refresh.
02

Delete data from a database

delete

What you see in n8n

Notes & use cases

Removes the data held in the database of the selected project. Nothing comes back from the node to undo it, so this is the operation to test on a throwaway project first.

Key parameters

  • Project Name or ID: the only required field here, taken from the firebase console URL. An expression works as well, which makes it easy to point a cleanup workflow at a staging project rather than the live one.
Use cases
clearing a processing queue once the items have been handled and archived elsewhere.
03

Get a record from a database

get

What you see in n8n

Notes & use cases

Reads back what is stored and hands it to the workflow as JSON, ready for a filter, a template or another node.

Key parameters

  • Project Name or ID: the Firebase project to read from, chosen in the list or built with an expression.
  • Object Path: the location to read, written without a trailing .json, for example /app/users. Left blank, the node returns the whole database object, which gets heavy fast on a real tree.
Use cases
loading a small configuration branch at the start of a run, so the rest of the workflow behaves according to values you can change without touching n8n.
04

Append to a list of data

push

What you see in n8n

Notes & use cases

Adds the incoming item to a list instead of replacing what is already there, which is what makes repeated runs stack up rather than overwrite each other.

Key parameters

  • Project Name or ID: the target project, as displayed in the firebase console URL.
  • Columns / Attributes: the fields carried over from the incoming item, listed like age, name, city, one entry per execution.
Use cases
the ISS tracking template does exactly this, appending fresh coordinates on every scheduled run so the tree grows into a history.
05

Update item in a database

update

What you see in n8n

Notes & use cases

Changes the attributes you name on data that already exists, rather than writing a fresh record over the top of it.

Key parameters

  • Project Name or ID: the Firebase project holding the item, picked from the list or resolved by expression.
  • Columns / Attributes: the comma separated fields to refresh, such as age, name, city. Name only the ones that changed, since this list is what the node sends.
Use cases
flipping an order status after a payment webhook, so the app shows the new state without a deploy.
Need help

Need help automating Google Cloud Realtime Database with n8n?

A person reads every message.

FAQ

Questions people ask next

01Is the Google Cloud Realtime Database n8n integration free?
Yes, on the n8n side. The node ships with n8n, so there is nothing to install and no extra n8n cost, whether you run n8n Cloud or a self-hosted instance under the Community Edition and its Sustainable Use licence. The credential you create is reusable, which means one Google connection covers every workflow that touches the database. What Google itself charges for the Firebase project is a separate matter, decided in your Google Cloud account, and this page does not cover it.
02What credentials does the node need?
A Google credential. On n8n Cloud, Managed OAuth2 is available: click Sign in with Google in the credential screen and there is no Google Cloud Console setup to do. Self-hosted users create a Custom OAuth2 credential instead, which means a Google Cloud project, an OAuth consent screen with an App name and a User support email, an authorized domain, and an OAuth client ID of type Web application whose authorized redirect URI matches the OAuth Redirect URL shown by n8n. A Service Account credential is documented as well, using the Service Account Email and Private Key from the downloaded JSON key.
03What are the limits of the Google Cloud Realtime Database node?
It reads and writes, and that is the whole scope. One resource, 5 operations: create, delete, get, push, update. Get returns a path, or the entire database object when the path is left blank, and whatever happens next runs in the workflow. Only the fields you list under Columns / Attributes get saved, which surprises people expecting the full item to be written. For any endpoint of the Realtime Database API that the node does not expose, the HTTP Request node calls it directly and reuses the same Google credential through its predefined authentication.
04Does the integration react in real time to a change in the database?
No. There is no trigger node for this tool in n8n, so nothing listens to the tree and a write made by your app goes unnoticed on its own. A workflow starts elsewhere: a Schedule Trigger at a fixed interval, then Get to read the branch you care about, or an n8n Webhook, a URL your app calls when something changes, or the trigger of another tool already in the flow. The polling route costs one extra read per run, the webhook route costs one call in your app code.
05n8n or Make for this database?
It comes down to four criteria, not to a winner. Hosting: n8n runs on your own server or on n8n Cloud, Make is hosted only. Data control: a self-hosted n8n keeps the JSON you move inside your own infrastructure, which matters when the tree holds customer data. Cost model: Make bills per operation, so a workflow that appends on every schedule run has a cost curve worth checking first. Logic: both are visual, and expressions in n8n let you compute the path or the attributes from the incoming item.
Hack'celeration Lab

Get our weekly integration tips.

No spam. Unsubscribe anytime.