# How retrieve the key from Firebase?

**URL:** https://community.thunkable.com/t/how-retrieve-the-key-from-firebase/1229227
**Category:** Questions about Thunkable X
**Created:** [April 17, 2021, 7:52am UTC](https://community.thunkable.com/t/how-retrieve-the-key-from-firebase/1229227 "2021-04-17T07:52:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![aishat.yatarovarxr](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@aishat.yatarovarxr](https://community.thunkable.com/u/aishat.yatarovarxr)
#### Post date: [April 17, 2021, 7:52am UTC](https://community.thunkable.com/t/how-retrieve-the-key-from-firebase/1229227/1 "2021-04-17T07:52:31Z")

</div>

Hi everyone! I want to retrieve my keys from Firebase (not values). How do I do that?

---

<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: [April 17, 2021, 9:37am UTC](https://community.thunkable.com/t/how-retrieve-the-key-from-firebase/1229227/2 "2021-04-17T09:37:38Z")

</div>

Suppose you have a key named “user\_ids” which all your user ID’s under it, you can use a List Viewer to show the user ID’s like this

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

---

<div class="post-metadata">

### Author: ![aishat.yatarovarxr](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@aishat.yatarovarxr](https://community.thunkable.com/u/aishat.yatarovarxr)
#### Post date: [April 18, 2021, 9:00am UTC](https://community.thunkable.com/t/how-retrieve-the-key-from-firebase/1229227/3 "2021-04-18T09:00:33Z")

</div>

![Screenshot (31)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/c/5c7bbb88224b5a7e1e4fedfb5cb15b5ae8eea574.png)

What if I only want specific “user IDs”, not all of them? For example with OCR. When the OCR reads some text, and it contains some of the words under the key “milk”, but not all of them, how do I set the list viewer items to specifically those values that the OCR read (that are under the key “milk”)?

---

<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: [April 18, 2021, 11:00am UTC](https://community.thunkable.com/t/how-retrieve-the-key-from-firebase/1229227/4 "2021-04-18T11:00:32Z")

</div>

Is “milk” the top key in your database?

If not then you need to provide the full path to the key. For example myFood-db/categories/milk

---

<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:25pm UTC](https://community.thunkable.com/t/how-retrieve-the-key-from-firebase/1229227/5 "2024-11-08T13:25:12Z")

</div>


