# Querying Web API

**URL:** <https://community.thunkable.com/t/querying-web-api/2271095>\
**Category:** Web API's\
**Created:** [February 11, 2023, 1:15am UTC](https://community.thunkable.com/t/querying-web-api/2271095 "2023-02-11T01:15:56Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [February 11, 2023, 10:16am UTC](https://community.thunkable.com/t/querying-web-api/2271095/7 "2023-02-11T10:16:01Z")

</div>

you’re missing out on one of the best features in thunkable - any component block - or what i started calling as “indexible buttons” (or components).  
please read this tutorial to give you an idea if this process would work for you.

> [@Create Smarter Designs with the "Any Component" blocks](https://community.thunkable.com/t/create-smarter-designs-with-the-any-component-blocks/297263):
>
> Here are three different layouts with lots of buttons: Conventional wisdom would have you believe that creating something like the designs below would be a time consuming and challenging process. If you wanted 9, 16 or 25 buttons then you’ll spend a lot of time messing around with rows and columns and sizes and paddings…right? Wrong! All 3 of the designs shown above are created from just 1 button, 1 row and 1 column. By using the [Any Component](https://docs.thunkable.com/any-component-blocks) blocks you can create a…

the outcome is you end up with a table of buttons that are numbered button1 to buttonP (where P is total rows times total columns). you will need an internal table ot translate that button1 is for the location of H in the json table, that buttons 2 thru 17 are not used but button18 points to the location of He in the json table.  
when any button is pressed, you get a number that can be translated to an index, and the index can be used to get the element info from json table.

but the way you’ve started coding it, you will end up with coding 119(!) When\_Buttonxx\_Clicked blocks!  
i dont know enough thunkable internals - the way you chose may be faster because each button is directly related to a when\_clicked block.

if you still want to ability to successive displays of element in sequence, you stilll need the internal table i described above so if you know that button 39 was pressed, you know that the next button will be button 40. you wont need to check if button-sulfur is followed by button-chlorine.  
this is just my observation - you may receive other suggestions from other thunkable users. good luck.

---

_[View the full topic](https://community.thunkable.com/t/querying-web-api/2271095)._
