Realtime DB is easy. Just use the Database URL as the URL for the Web API and add to it the keys in the database and end it with .json.
See this for more details