Firebase Realtime Database API
Firebase Realtime Database API
Firebase Realtime Database API is Firebase original NoSQL real-time database — JSON tree data model, millisecond sync; one of the earliest "real-time" databases.
Lowest sync latency (sub-second)
JSON tree model awkward for denormalized data (deep nested queries slow)
Enable Realtime Database in Firebase Console. Web SDK: const db = getDatabase(app); await set(ref(db, "users/alice"), {name: "Alice"});
Uptime · 30-day window
About this API
Firebase Realtime Database is Firebase's core product (Firebase founded 2011, Google-acquired 2014), an early "real-time database" pioneer — many developers first heard "frontend listens to DB changes for auto UI update" from Firebase RTDB. Design is JSON tree model: entire DB is one big JSON object, accessed via path to any node. This simplicity is both pro and con: extremely fast to start but complex scenarios (many-to-many relations, complex queries) get awkward. Sub-second sync latency is the advantage in chat, gaming, collaboration scenarios. After Firestore launched 2017, Firebase officially recommends Firestore for new projects (more structured, better scaling), but RTDB still maintained because certain low-latency scenarios (multi-player gaming, live polling) still hold advantage.
What you can build
- 1Chat app message streams
- 2Multi-player game state sync
- 3Live polling / voting
- 4Collaboration whiteboards
Strengths & limitations
Strengths
- Lowest sync latency (sub-second)
- Cheap pricing (by storage + transfer, not ops)
- Quick development start
Limitations
- JSON tree model awkward for denormalized data (deep nested queries slow)
- Weaker queries than Firestore
- Firebase recommends Firestore for new projects
Example request
curl https://google.com/<endpoint>Getting started
Enable Realtime Database in Firebase Console. Web SDK: const db = getDatabase(app); await set(ref(db, "users/alice"), {name: "Alice"});
FAQ
New project: RTDB or Firestore?+
Firebase officially recommends Firestore (unless you specifically need RTDB ultra-low latency).
Technical details
- Auth type
- unknown
- Pricing
- unknown
- Protocols
- REST, WebSocket
- SDKs
- python, javascript, go, java, swift, kotlin
- Response time
- 43 ms
- Last health check
- 5/12/2026, 7:37:31 AM
More from Google
Google Workspace Admin SDK API programmatically manages Workspace organizations — users, groups, devices, domains, audit logs, organizational units.
Retrieve AdMob accounts, apps, ad units, ad sources, and generate mediation or network reports.
Work with AdSense Host accounts, ad clients, ad units, reports, and ad code generation from one API surface.
Programmatically manage Apigee organizations, API proxy deployments, attributes, certificates, and hybrid operations.
Google BigQuery API is the REST interface to GCP's flagship data warehouse — execute SQL queries, manage datasets/tables, stream inserts, and use built-in ML.
Control Binary Authorization attestors and policy checks for container images deployed to GKE and Anthos.
Fetch Business Profile location metrics, daily time series, and monthly search keyword impressions.
Google Calendar API lets apps create, read, and update calendar events programmatically — the go-to integration for scheduling apps.