I have the following hierarchy on firebase, some data are hidden for confidentiality:
It is a bit old, and you probably already know, but in case someone else comes along. You can do this using REST api call, you only need to set the parameter shallow=true
shallow=true
here is the documentation