The REST API can also be used to retrieve and update the Firebase Realtime Database Rules for your Firebase project . You’ll need your Firebase project’s secret, which you can find under the Service Accounts panel of your Firebase project’s setting.
Read moreWhat is the difference between API and Firebase?
The API supports standard CRUD operations on the data within the databases as well as querying of the data. Firebase uses WebSockets to achive realtime communication between clients .
Read more