# New Way to Get a Value From Firebase

**URL:** <https://community.thunkable.com/t/new-way-to-get-a-value-from-firebase/1424760>\
**Category:** Questions about Thunkable X\
**Created:** [August 1, 2021, 4:34pm UTC](https://community.thunkable.com/t/new-way-to-get-a-value-from-firebase/1424760 "2021-08-01T16:34:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathonschnoor6x4b5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jonathonschnoor6x4b5/32/112262_2.png) [@jonathonschnoor6x4b5](https://community.thunkable.com/u/jonathonschnoor6x4b5)\
**Post date:** [August 1, 2021, 4:34pm UTC](https://community.thunkable.com/t/new-way-to-get-a-value-from-firebase/1424760/1 "2021-08-01T16:34:57Z")

</div>

Here’s a new way to get a value from Firebase, and only the value.

 ![Screen Shot 2021-08-01 at 11.33.03 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/f/4f68d5f4c130dd78303190cb5ae60bae31b73840.png)

[Note that this will not work if you have multiple values, you would need a list and do each value individually]

Basically, it sends the value with “!” on each side to the Firebase. Then, when it comes back as a JSON, we can get the text that is only between the "!"s.

---

<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:** [August 1, 2021, 4:47pm UTC](https://community.thunkable.com/t/new-way-to-get-a-value-from-firebase/1424760/2 "2021-08-01T16:47:40Z")

</div>

Why do you want to make it complicated on yourself.

Firebase returns the values as `objects` so use the object method to extract any specific value.

This is from one of my sample project

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/7/77ef134e6300a428f7ee1c0eea0c77ba1099e97c.png)

to retrieve any specific value from the response of Firebase, you need to do this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/1/31b4fc5e1d416348b357d8813c4635833df0c05a.png)

Where the green block item is the selected item from the `List viewer`

Here is the link to the sample project

[https://x.thunkable.com/projectPage/60bb6577f3488a0012b0fdff](https://x.thunkable.com/projectPage/60bb6577f3488a0012b0fdff)

---

<div class="post-metadata">

**Author:** ![jonathonschnoor6x4b5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jonathonschnoor6x4b5/32/112262_2.png) [@jonathonschnoor6x4b5](https://community.thunkable.com/u/jonathonschnoor6x4b5)\
**Post date:** [August 1, 2021, 4:56pm UTC](https://community.thunkable.com/t/new-way-to-get-a-value-from-firebase/1424760/3 "2021-08-01T16:56:13Z")

</div>

I’m just now exploring how Objects and JSON. I’m not really sure what the code is doing.

Either way, just wanted to explore a new way to do it 🙂

---

<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:** [August 1, 2021, 4:57pm UTC](https://community.thunkable.com/t/new-way-to-get-a-value-from-firebase/1424760/4 "2021-08-01T16:57:16Z")

</div>

Great. Keep it up. We all started by curiosity and exploring.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [August 1, 2021, 5:18pm UTC](https://community.thunkable.com/t/new-way-to-get-a-value-from-firebase/1424760/5 "2021-08-01T17:18:12Z")

</div>

> [@jonathonschnoor6x4b5](#):
>
> just wanted to explore a new way to do it

Doing this type of stuff is neat but there is a more efficient manner to do this. As your app begins to expand, you’ll want to maintain efficiency as much as possible to prove the user a nice UX that isn’t laggy.

100 milliseconds doesn’t feel like anything. 250 does

Milliseconds matter.

---

<div class="post-metadata">

**Author:** ![jonathonschnoor6x4b5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jonathonschnoor6x4b5/32/112262_2.png) [@jonathonschnoor6x4b5](https://community.thunkable.com/u/jonathonschnoor6x4b5)\
**Post date:** [August 1, 2021, 5:24pm UTC](https://community.thunkable.com/t/new-way-to-get-a-value-from-firebase/1424760/6 "2021-08-01T17:24:06Z")

</div>

This isn’t going onto the app store or google play, I’m doing this for Hackathon. I wanted something that was similar to how Thunkable Cloud Vars worked because that’s what I was used to. The timer is simply there to check if the player is online or not.

And again, I still don’t really know how objects or JSON work all the way yet.

Thanks for your support either way!

---

<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:17pm UTC](https://community.thunkable.com/t/new-way-to-get-a-value-from-firebase/1424760/7 "2024-11-08T13:17:41Z")

</div>


