Firebase Realtime Database API logo

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.

Visit site ↗Health checked 9h ago
Use it when

Lowest sync latency (sub-second)

Watch for

JSON tree model awkward for denormalized data (deep nested queries slow)

First check

Enable Realtime Database in Firebase Console. Web SDK: const db = getDatabase(app); await set(ref(db, "users/alice"), {name: "Alice"});

Auth
CORS
No
HTTPS
Yes
Signup
?
Latency
43 ms
Protocol
REST, WebSocket
Pricing

Uptime · 30-day window

Probes: 1Uptime: 100%Avg latency: 43ms
01

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.

02

What you can build

  • 1Chat app message streams
  • 2Multi-player game state sync
  • 3Live polling / voting
  • 4Collaboration whiteboards
03

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
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://google.com/<endpoint>
05

Getting started

Enable Realtime Database in Firebase Console. Web SDK: const db = getDatabase(app); await set(ref(db, "users/alice"), {name: "Alice"});

06

FAQ

New project: RTDB or Firestore?+

Firebase officially recommends Firestore (unless you specifically need RTDB ultra-low latency).

07

Technical details

CORS: NoHTTPS: YesSignup: ?Open source: No
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
08

Tags

09

More from Google