# GET Json from API

**URL:** <https://community.thunkable.com/t/get-json-from-api/1111320>\
**Category:** Questions about Thunkable X\
**Tags:** solved, json\
**Created:** [February 20, 2021, 8:57am UTC](https://community.thunkable.com/t/get-json-from-api/1111320 "2021-02-20T08:57:08Z")\
**Posts on this page:** 9\
**Page:** 2

<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:** [February 20, 2021, 2:33pm UTC](https://community.thunkable.com/t/get-json-from-api/1111320/23 "2021-02-20T14:33:25Z")

</div>

Check this one  
[https://x.thunkable.com/projectPage/6030ffd560a43600119d1ed4](https://x.thunkable.com/projectPage/6030ffd560a43600119d1ed4)

I used the text in the post and tried my best to correct it.  
Hope you find it useful.

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [February 20, 2021, 2:55pm UTC](https://community.thunkable.com/t/get-json-from-api/1111320/25 "2021-02-20T14:55:55Z")

</div>

WOOOOOOW yes now it works perfectly. THANK YOU SO much… 🤩 😘 🥰 😊 🤣

Now the big question. If I choose a product how do I get the rest of the info of that product?

---

<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:** [February 20, 2021, 3:09pm UTC](https://community.thunkable.com/t/get-json-from-api/1111320/26 "2021-02-20T15:09:29Z")

</div>

Glad to see it working for you.

I made it to show in the list viewer and when you select any item you get some info just below the list. This is for you to see how you can extract more info from the selected product.

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [February 20, 2021, 3:34pm UTC](https://community.thunkable.com/t/get-json-from-api/1111320/27 "2021-02-20T15:34:56Z")

</div>

Okay thanks. I think I got that now…

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [February 21, 2021, 2:47pm UTC](https://community.thunkable.com/t/get-json-from-api/1111320/28 "2021-02-21T14:47:15Z")

</div>

If I have this docs on a API

> **[Untitled - Pastebin.com](https://pastebin.com/fJVrG9pe)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Is it completly wrong to build it like this or am I on the right way???

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/1/e13c96e51b81b435b6768762fdf1571bf6b5ba38.png)

---

<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:** [February 21, 2021, 3:56pm UTC](https://community.thunkable.com/t/get-json-from-api/1111320/29 "2021-02-21T15:56:32Z")

</div>

Not exactly. The image is too small for my eyes but I can see that you have assumed that `date` is just a normal sting while it is an object by itself.

Date is a sub-object of the property `properties` and has the following properties under it (date):

- type
- format
- pattern
- required
- description

The others follow the same route of `date` which means that each of `layout`, `paymentTerms` and others are each a sub-object under the object `propoerties`

Happy Thunking!

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [February 21, 2021, 4:31pm UTC](https://community.thunkable.com/t/get-json-from-api/1111320/30 "2021-02-21T16:31:01Z")

</div>

Okay thanks. I will try that.  
I am also trying to get the name under “recipient” out of this Json.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/d/ed4bad8197bb22b4ebcfa5acc785e77d4d8e4851.png)  
Can you help with the get object blocks for that.  
I have tryed with the help you gave earlier but there is more layer in this Json.  
I v´can only get the draftInvoiceNumber in the way you sjowed earlier

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/fa3305d3ed46320337fe4af2175f98cbfa1d4457.png)  
I am trying something like this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/3/73f1d649f514c780677b089217d64f6aaae4023e.png) But thats not working…  
Thanks again for your help…

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 21, 2021, 6:47pm UTC](https://community.thunkable.com/t/get-json-from-api/1111320/31 "2021-02-21T18:47:02Z")

</div>

Can you post the full text of the JSON response? As text, not as an image.

If it’s in the same format as the example from the API documentation you posted, then this is what it looks like when converted [here](https://jsonformatter-online.com/):

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/f/df8340bbd0cec37b1134612bb4b0358b0ad3f7c4.png)

The name of the recipient is stored (at the bottom of this screenshot) in the “description” property inside of the “name” property inside of the “properties” property inside of the “recipient” property inside of the “properties” property inside of the JSON object.

So your “get property of object” blocks need to follow that heirarchy.

I think they could have chosen better property names than “properties” 😢

---

<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:29pm UTC](https://community.thunkable.com/t/get-json-from-api/1111320/32 "2024-11-08T13:29:21Z")

</div>



[Previous page](https://community.thunkable.com/t/get-json-from-api/1111320.md?page=1)
