# Unable to see results after using API from the MealDB

**URL:** https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [December 18, 2020, 12:28pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761 "2020-12-18T12:28:19Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [December 22, 2020, 7:21pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/21 "2020-12-22T19:21:02Z")

</div>

Oh the only problem I’ve got is that I constantly get the same results, no matter what i fill in as ingredient

---

<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: [December 23, 2020, 6:43am UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/22 "2020-12-23T06:43:42Z")

</div>

More like this then?

[https://x.thunkable.com/copy/922615c4b7f6d2cfb29c2c5eb1b4ef37](https://x.thunkable.com/copy/922615c4b7f6d2cfb29c2c5eb1b4ef37)

 ![Screen Shot 2020-12-22 at 10.44.06 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/1/c17ab95defdf3786a28e6541cc611b0c1788d1ca.png)

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [December 23, 2020, 8:42am UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/23 "2020-12-23T08:42:14Z")

</div>

Yes! I’ll combine this one with option 2!! Thanks a lot 🙂 😃

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [December 29, 2020, 4:21pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/24 "2020-12-29T16:21:56Z")

</div>

Hi everyone! I have some questions…  
I’ve tried to combine above options of you 😃 Unfortunately it won’t work, but I don’t know what I have to change…  
I will put the screenshots below of the screens you see and in another post the coding!  
Hopefully can someone help me out! 🤩 😊

 ![Schermafbeelding 2020-12-29 om 5.18.57 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/0553e55af115ba47115235f40a33b2b04d8be0b0.png) this is the first screen so starting on the GO button will bring you to the screen below:  
 ![Schermafbeelding 2020-12-29 om 5.19.05 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/a/7a88c39e28988eb04f8c28f7b26f03b9df890696.png)  
If I click on SEARCH it won’t give me response, I will show you the coding in the post below…

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [December 29, 2020, 4:22pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/25 "2020-12-29T16:22:59Z")

</div>

In the coding below you can see that I’ve tried to combine the coding of the list and the seek function, but I do something wrong…

 ![Schermafbeelding 2020-12-29 om 5.19.17 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a54024e04226929e4d45f4b76e609009283d2ffa.png) ![Schermafbeelding 2020-12-29 om 5.19.19 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a721867f0aca7f694c4db9ca7b4a03c72a3490e.png)

---

<div class="post-metadata">

### Author: ![secondaryaccount](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/secondaryaccount/32/91441_2.png) [@secondaryaccount](https://community.thunkable.com/u/secondaryaccount)
#### Post date: [December 29, 2020, 7:12pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/26 "2020-12-29T19:12:54Z")

</div>

You’re setting the JSON response to the variable “ingredient” but trying to get properties from the variable “recipe”. These two variables need to be the same so that you are getting a property from the JSON response, not from an empty list.

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [December 30, 2020, 10:27am UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/27 "2020-12-30T10:27:20Z")

</div>

It works now!! 😃 Thanks a lot 😊

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [January 5, 2021, 6:34pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/28 "2021-01-05T18:34:17Z")

</div>

Hi all, it’s me again 😊 Hoping everyone had a good New Year’s Eve 😃 Also in 2021 I’ve got questions haha  
I worked on the design of the app and some small details last week but I’m struggling now with something else: I want to show a specific recipe as soon as i click on it. If I look at the response of the API, I think I need the idMeal for that…  
API when e.g. search for banana:  
{  
“meals”: [  
{  
“strMeal”: “Banana Pancakes”,  
“strMealThumb”: “[https://www.themealdb.com/images/media/meals/sywswr1511383814.jpg](https://www.themealdb.com/images/media/meals/sywswr1511383814.jpg)”,  
“idMeal”: “52855”  
},  
{  
“strMeal”: “Callaloo Jamaican Style”,  
“strMealThumb”: “[https://www.themealdb.com/images/media/meals/ussyxw1515364536.jpg](https://www.themealdb.com/images/media/meals/ussyxw1515364536.jpg)”,  
“idMeal”: “52939”  
},  
{  
“strMeal”: “Chocolate Avocado Mousse”,  
“strMealThumb”: “[https://www.themealdb.com/images/media/meals/uttuxy1511382180.jpg](https://www.themealdb.com/images/media/meals/uttuxy1511382180.jpg)”,  
“idMeal”: “52853”  
}  
]  
}

I’ve tried a lot of options, also the one I will show you in the screenshots below, but ofc I don’t get want I want haha… Does someone sees what I’m doing wrong? 🤗 🤔  
Here you can see the steps I take and in a post below this one I will show you the coding I have so far…  
first i search in the searchscreen for banana (see coding in the next post)

 ![Schermafbeelding 2021-01-05 om 7.30.52 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/23450e37171857217957314663e9eaab1272bf18.png)  
I click in this example on the first recipe  
 ![Schermafbeelding 2021-01-05 om 7.30.56 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/8/28ab614c58d3d21f9c59bd6a89c1507cb9133977.png)  
would like to see in this screen the recipe and it’s ingredients/description. I used a listviewer for that, but I think that’s not the best element to show the data…  
 ![Schermafbeelding 2021-01-05 om 7.30.58 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/3/8305440541415055be0da835d384da6acd14d315.png)

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [January 5, 2021, 6:35pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/29 "2021-01-05T18:35:46Z")

</div>

And ofcourse, here the coding:  
Coding of the searchscreen can be seen below:

 ![Schermafbeelding 2021-01-05 om 7.31.07 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/7/47b5e0c7f573e52742341019e6ac85489c4e0d7c.png)  
Coding of the recipe result screen, still very happy that this works now 😃  
 ![Schermafbeelding 2021-01-05 om 7.31.10 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/b/5bcbac0a69eeb992d87b19683f899870eebb3f98.png)  
And here I do things wrong:  
 ![Schermafbeelding 2021-01-05 om 7.31.13 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/0/e0b6975beb5a248421eea51492d817eaf7f2565f.png)

Thanks a lot in advance already, hope someone can help me out!!

---

<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: [January 5, 2021, 7:26pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/30 "2021-01-05T19:26:06Z")

</div>

Why are you using list viewer text items in the URL?

Just for you to have a better idea, put a label in the screen and assign list viewer text items to it to see the content.

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [January 5, 2021, 7:43pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/31 "2021-01-05T19:43:55Z")

</div>

Thanks a lot for your reply!!! I replaced the listviewer for a label, but I don’t know if this was exactly what you meant or that I understood it wrong. I get no response atm so I think the last one haha. See below what I did 🙂

 ![Schermafbeelding 2021-01-05 om 8.40.50 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/4/94e36cdbbde9b4cdbcbd077958ea03d432468dea.png) ![Schermafbeelding 2021-01-05 om 8.40.59 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/6/f6ad45ad321afdd6c8676d71cc578219c10de0b1.png) ![Schermafbeelding 2021-01-05 om 8.41.18 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/c/0caa60328cd3e19988d2a805503d29a55991f1ae.png)

---

<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: [January 5, 2021, 8:48pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/32 "2021-01-05T20:48:52Z")

</div>

Correct me if I’m wrong but don’t you want the ingredient value to be taken from a text input component rather than a label? Or do you have a bunch of labels pre-set like “chicken”, “beef”, “fish” etc. that the user clicks on to select an ingredient?

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [January 5, 2021, 9:05pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/33 "2021-01-05T21:05:23Z")

</div>

Hi Tatiang, Thanks for the reply! I tried text input also indeed, but i get than the option to type something myself if i select a recipe. actually i just want to see the recipe description, so i think that i will need a label or something?

---

<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: [January 5, 2021, 10:13pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/34 "2021-01-05T22:13:52Z")

</div>

When the user searches for a recipe, what will they click or type in to do that?

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [January 6, 2021, 12:06pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/35 "2021-01-06T12:06:42Z")

</div>

Ehm, they will type in an ingredient that contains the recipe. the goal is to find recipes by means of a specific ingredient (e.g. with paprika)…

---

<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: [January 6, 2021, 6:08pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/36 "2021-01-06T18:08:47Z")

</div>

Okay, then you definitely want to get the value from the text input component and use that as your “i” value. So replace the “from Label1 get Text” block with a “from TextInput get Text” block.

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [January 6, 2021, 6:52pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/37 "2021-01-06T18:52:19Z")

</div>

Hi, Yes i tried that indeed, but then I got this

 ![Schermafbeelding 2021-01-06 om 7.51.17 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/0/806a5004f9f3330434e346f0fd4b1e63676f95d0.png)

I click on a recipe and this screen is what i see…

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [January 6, 2021, 6:56pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/38 "2021-01-06T18:56:58Z")

</div>

Maybe this makes it more clear, my coding:

 ![Schermafbeelding 2021-01-06 om 7.56.25 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/b/7b3f4033981b6bd1583de76328ccf597a08db325.png) ![Schermafbeelding 2021-01-06 om 7.56.33 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b753781661455652fbea12bb40d3e6b55e1b7a97.png) ![Schermafbeelding 2021-01-06 om 7.56.31 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/2387febac96214397e9308bd4b0ccb9e5d900c16.png)

---

<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: [January 7, 2021, 6:13pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/39 "2021-01-07T18:13:17Z")

</div>

If you want to share your project link with me (privately is fine), I can take a look at it.

---

<div class="post-metadata">

### Author: ![lyketakentz62lo](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lyketakentz62lo](https://community.thunkable.com/u/lyketakentz62lo)
#### Post date: [January 7, 2021, 6:29pm UTC](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761/40 "2021-01-07T18:29:28Z")

</div>

Ofcourse! Will do:)

[Previous page](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761.md?page=1)

[Next page](https://community.thunkable.com/t/unable-to-see-results-after-using-api-from-the-mealdb/1039761.md?page=3)
