# Troubleshooting with Web API, welcomed help

**URL:** https://community.thunkable.com/t/troubleshooting-with-web-api-welcomed-help/1552727
**Category:** Questions about Thunkable X
**Tags:** help, i\_need\_your\_help, webapi, troubleshooting
**Created:** [October 9, 2021, 10:07am UTC](https://community.thunkable.com/t/troubleshooting-with-web-api-welcomed-help/1552727 "2021-10-09T10:07:21Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![treesecorp](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@treesecorp](https://community.thunkable.com/u/treesecorp)
#### Post date: [October 9, 2021, 10:07am UTC](https://community.thunkable.com/t/troubleshooting-with-web-api-welcomed-help/1552727/1 "2021-10-09T10:07:22Z")

</div>

Hi there,

I just got the Web API element and I’m currently doing a test with the Air Pollution API of OpenWeatherMap. I already saw the several tutorials by Thunkable on Youtube.  
I made this, and the desired value doesn’t show up so I must have screwed something up.

Can anyone help me? Thanks

Link of the project : [Thunkable](https://x.thunkable.com/projectPage/616167f20003ab0010b495d8)

---

<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: [October 9, 2021, 11:21am UTC](https://community.thunkable.com/t/troubleshooting-with-web-api-welcomed-help/1552727/2 "2021-10-09T11:21:10Z")

</div>

You are not testing for errors as if you are confident it has to work.

I changed the `Web API` block to test for errors and other issues and display it.

See the code and what is displayed.

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

 ![Screenshot_2021-10-09-14-21-27-52_2bbfbfee96a5dfce998f962ebb8b5da3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/997304dba4baa67194704d8bad0135b30eb36af2.jpeg)

---

<div class="post-metadata">

### Author: ![treesecorp](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@treesecorp](https://community.thunkable.com/u/treesecorp)
#### Post date: [October 9, 2021, 12:18pm UTC](https://community.thunkable.com/t/troubleshooting-with-web-api-welcomed-help/1552727/3 "2021-10-09T12:18:55Z")

</div>

Oh thank you very much !  
I get it, there is just one thing, according to this documentation : [Air Pollution - OpenWeatherMap](https://openweathermap.org/api/air-pollution) my URL is good and when I enter this same final URL on my browser the request is displayed correctly

 ![URLresp](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/c/dcd94e1950dc5b256ce0075f7e3b72f7014849a9.png)

I’m going to try other API function

---

<div class="post-metadata">

### Author: ![treesecorp](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@treesecorp](https://community.thunkable.com/u/treesecorp)
#### Post date: [October 9, 2021, 1:19pm UTC](https://community.thunkable.com/t/troubleshooting-with-web-api-welcomed-help/1552727/4 "2021-10-09T13:19:08Z")

</div>

Alright, it seems to work like if I want the longitude coordinate for example with 50 here with this block

 ![screen](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/0/7087743d401feed1841d684e0dc24206221b2578.png)  
but I would like the main.aqi (list:main:aqi) circled in red below and I tried but without making it  
 ![URLresp](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/452339c6dd555912ca613e2eae8828669bc7d243.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: [October 9, 2021, 1:23pm UTC](https://community.thunkable.com/t/troubleshooting-with-web-api-welcomed-help/1552727/5 "2021-10-09T13:23:02Z")

</div>

No.

You have two problems in your project.

- In the `Web API` block setup, you need to delete the `query parameter` that you added which is **london,uk**.
- The second problem is how to reference the value inside the `response block`. It should be  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/b/4bc0d3401a1174a203093e500e030cc5035440eb.png)

---

<div class="post-metadata">

### Author: ![treesecorp](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@treesecorp](https://community.thunkable.com/u/treesecorp)
#### Post date: [October 9, 2021, 1:38pm UTC](https://community.thunkable.com/t/troubleshooting-with-web-api-welcomed-help/1552727/6 "2021-10-09T13:38:25Z")

</div>

It works now, thank you have been very helpful and clear 😀 ,  
now I understand well how to deal with this Web API component.

Kind regards

---

<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:14pm UTC](https://community.thunkable.com/t/troubleshooting-with-web-api-welcomed-help/1552727/7 "2024-11-08T13:14:56Z")

</div>


