# Api object splitt

**URL:** <https://community.thunkable.com/t/api-object-splitt/1465472>\
**Category:** Questions about Thunkable X\
**Created:** [August 23, 2021, 9:25pm UTC](https://community.thunkable.com/t/api-object-splitt/1465472 "2021-08-23T21:25:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![itvelprj](https://avatars.discourse-cdn.com/v4/letter/i/35a633/32.png) [@itvelprj](https://community.thunkable.com/u/itvelprj)\
**Post date:** [August 23, 2021, 9:25pm UTC](https://community.thunkable.com/t/api-object-splitt/1465472/1 "2021-08-23T21:25:21Z")

</div>

Sorry if there were some results but I didn’t find any.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/e/cef1ecc6274d953a01aeb2f0b0a7f487061c2d0a.png)  
How can I get these properties of a response object?  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/9/e9a2671a7955e649888bc8f614f5ffe98142d53e.png)  
need the first object1 (1) and the last object8 (239)  
thanks for 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:** [August 23, 2021, 10:39pm UTC](https://community.thunkable.com/t/api-object-splitt/1465472/2 "2021-08-23T22:39:20Z")

</div>

It’s a little hard to tell without seeing the full JSON response as text but… if feeRange is a list/array as it appears to be, you can use the `in list get` block once you have the `feeRange` property. It looks like you’re trying to take the first list item of the JSON response. That may or may not be the feeRange property… I can’t tell from the limited screenshot.

---

<div class="post-metadata">

**Author:** ![itvelprj](https://avatars.discourse-cdn.com/v4/letter/i/35a633/32.png) [@itvelprj](https://community.thunkable.com/u/itvelprj)\
**Post date:** [August 23, 2021, 11:36pm UTC](https://community.thunkable.com/t/api-object-splitt/1465472/3 "2021-08-23T23:36:52Z")

</div>

> [@tatiang](#):
>
> I can’t tell from the limited screenshot

ups sorry i tough i poste the api ressource.  
[https://mempool.space/api/v1/fees/mempool-blocks](https://mempool.space/api/v1/fees/mempool-blocks)

this api can have up to 9 lines with same objects

---

<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:** [August 24, 2021, 12:04am UTC](https://community.thunkable.com/t/api-object-splitt/1465472/4 "2021-08-24T00:04:09Z")

</div>

This is what the JSON response looks like when converted on [Best JSON Viewer and JSON Beautifier Online](https://codebeautify.org/jsonviewer) using the Tree Viewer button:

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

So you would need to get the first list item from the JSON response, just like you did above, and then get the property feeRange, just like you did above, and then get the first (and last) list item from that. So just put everything you showed above into a `in list ___get #1` and test it to make sure you get the value 1. Then try it with `in list___ get #8` and make sure you get the value 469.97389033942557. Or maybe your values are different but that’s what I’m seeing from the example link you provided. Anyway, you can change the # part of the list block to use the “first” or “last” item in the list which should work great for this.

---

<div class="post-metadata">

**Author:** ![itvelprj](https://avatars.discourse-cdn.com/v4/letter/i/35a633/32.png) [@itvelprj](https://community.thunkable.com/u/itvelprj)\
**Post date:** [August 24, 2021, 12:19am UTC](https://community.thunkable.com/t/api-object-splitt/1465472/5 "2021-08-24T00:19:20Z")

</div>

ill try tomorrow, thanks  
see my work until now ^^

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/4/84280e2d0d455874d004a4aa6d5b27aff0a4135c.png)

update automatically

it comes near of my main app

> **[GitHub - vizdahero/BTC-DATA-app: BTC DATA is an app in which all information...](https://github.com/vizdahero/BTC-DATA-app)**
>
> BTC DATA is an app in which all information about Bitcoin and the Lightning Network is collected - Allin1 - GitHub - vizdahero/BTC-DATA-app: BTC DATA is an app in which all information about Bitcoi...

---

<div class="post-metadata">

**Author:** ![itvelprj](https://avatars.discourse-cdn.com/v4/letter/i/35a633/32.png) [@itvelprj](https://community.thunkable.com/u/itvelprj)\
**Post date:** [August 25, 2021, 12:54am UTC](https://community.thunkable.com/t/api-object-splitt/1465472/6 "2021-08-25T00:54:58Z")

</div>

thank you @tatiang this work fine !

---

<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/api-object-splitt/1465472/7 "2024-11-08T13:17:14Z")

</div>


