# How to get list of all keys using Firebase Realtime DB?

**URL:** <https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055>\
**Category:** Questions about Thunkable X\
**Tags:** firebase\
**Created:** [June 5, 2021, 12:35pm UTC](https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055 "2021-06-05T12:35:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [June 5, 2021, 12:35pm UTC](https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055/1 "2021-06-05T12:35:43Z")

</div>

Hey Everyone,

I want to get a list of all the keys present in my Firebase Database.

In App Inventor there is a block called “get tag list”. It gets a list of all the tags present in the Database of which you have given the URL.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/0/a0811a7071e7e5c0be419ccf0069707110bfe0cf.png)

However, In Thunkable, there is no such block / method. Is there any method to do this?

Thanks.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [June 5, 2021, 1:03pm UTC](https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055/2 "2021-06-05T13:03:26Z")

</div>

Use the key as “//” to get all the data in the database.

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [June 5, 2021, 1:12pm UTC](https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055/3 "2021-06-05T13:12:22Z")

</div>

I tried this out.

When I try to display the `value` in a label only, it says null.

When I try to display it in a list view, it remains blank.

When I try to display it in both a list view and a label, it says [object Object]

What can be causing this?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [June 5, 2021, 1:16pm UTC](https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055/4 "2021-06-05T13:16:27Z")

</div>

It should say [object object]

Id you want to display it in a list viewer use  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/3/f3e05b1be3f70087cfb322170604a5818392d7b5.png)

If you want to display it in a label use  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/0/40515b9c331f35eaf9aba06c3c8fe324ec1703f1.png)

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [June 5, 2021, 1:17pm UTC](https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055/5 "2021-06-05T13:17:25Z")

</div>

Thanks! It seems to be working now.

I’ll just try it out fully, and let you know.

---

<div class="post-metadata">

**Author:** ![jmnolfo](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jmnolfo](https://community.thunkable.com/u/jmnolfo)\
**Post date:** [November 10, 2021, 12:19am UTC](https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055/6 "2021-11-10T00:19:17Z")

</div>

I had the same question and this worked for me but why does this work? What does the // mean?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 10, 2021, 8:24am UTC](https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055/7 "2021-11-10T08:24:16Z")

</div>

> [@jmnolfo](#):
>
> What does the // mean?

It means all keys. Similar to root folder in file manager or file browser.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/how-to-get-list-of-all-keys-using-firebase-realtime-db/1327055/8 "2024-11-08T13:22:05Z")

</div>


