finds.dev← search

// the find

BRINIS10/Firebase-Rest-API-consumer-for-unity-

C# · updated Aug 2020

I made this code to consume firebase realtime database in unity webgl. I made a multiplayer game , this code is perfect for Get and Put Data to and from database this code uses NewtonSoft.Json (free in unity assetstore)

A single-file Unity helper that wraps Firebase Realtime Database REST calls over UnityWebRequest, written specifically for WebGL where the Firebase Unity SDK doesn't work. Targets Unity multiplayer games that need basic GET/PUT without the official SDK.

- Solves a real gap: the Firebase Unity SDK has no WebGL support, so REST is the only option and having a working wrapper saves time

- Uses coroutines correctly for Unity's single-threaded WebGL environment — no threading hacks

- Newtonsoft.Json is the right serialization choice over Unity's JsonUtility for anything beyond flat structs

- Only GET and PUT — no PATCH, DELETE, or querying (orderBy, limitToFirst), so anything beyond simple read/write needs to be added from scratch

- No auth support at all: the database URL is hardcoded public, meaning your Firebase rules must be open to the world or this breaks immediately in any real app

- Zero error handling — no check on HTTP status codes, no retry, no callback for failure; a dropped request silently does nothing

- Five-year-old abandoned snippet with 0 stars; Firebase REST API and Unity WebGL both have had significant changes since 2020, and there's no indication this still works against current Firebase endpoints

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →