Different databases

Whats a, and the difference between a local database, an external database and an API?

LocalDB stores the data on the device.

External Database is something like Firebase that stores data in the cloud/remote server.

An API is a method for communicating with certain web services, which include things like Firebase, or Cloudinary.