# How to get web api response in web viewer in thunkable

**URL:** <https://community.thunkable.com/t/how-to-get-web-api-response-in-web-viewer-in-thunkable/3175750>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [September 4, 2024, 6:15am UTC](https://community.thunkable.com/t/how-to-get-web-api-response-in-web-viewer-in-thunkable/3175750 "2024-09-04T06:15:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasarbains7mhf9pj](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@yasarbains7mhf9pj](https://community.thunkable.com/u/yasarbains7mhf9pj)\
**Post date:** [September 4, 2024, 6:15am UTC](https://community.thunkable.com/t/how-to-get-web-api-response-in-web-viewer-in-thunkable/3175750/1 "2024-09-04T06:15:58Z")

</div>

Hi All,  
I am making a POST request and I am receiving a response, which I want it to display in a web viewer, can someone help me to do that?  
I have tested the request on postman and there I am getting the correct results, but when I am trying to get it in web viewer, it is not working properly.

Thanks

---

<div class="post-metadata">

**Author:** ![yasarbains7mhf9pj](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@yasarbains7mhf9pj](https://community.thunkable.com/u/yasarbains7mhf9pj)\
**Post date:** [September 4, 2024, 6:24am UTC](https://community.thunkable.com/t/how-to-get-web-api-response-in-web-viewer-in-thunkable/3175750/2 "2024-09-04T06:24:08Z")

</div>

And also, can someone please help me with cURL, that how to enter a cURL in thunkable web api, I just want to know that how can I deal with the body part and how can I enter body it in thunkable web api. This is my cURL.

```auto
curl --request POST \
     --url https://test.payu.in/_payment \
     --header 'accept: text/plain' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --data key=JPM7Fg \
     --data surl=https://test-payment-middleware.payu.in/simulatorResponse \
     --data furl=https://test-payment-middleware.payu.in/simulatorResponse \
     --data amount=1 \
     --data firstname=Yasar \
     --data email=example@gmail.com \
     --data phone=1234567890 \
     --data 'address1=419-A, C-Block, Rama Heritage, Near Kotak Mahindra Bank, Central Spine, Vidyadhar Nagar' \
     --data 'address2=419-A, C-Block, Rama Heritage, Near Kotak Mahindra Bank, Central Spine, Vidyadhar Nagar' \
     --data city=Jaipur \
     --data state=Rajasthan \
     --data country=India \
     --data zipcode=302039 \
     --data txnid=asdufhuhsaidfbf \
     --data productinfo=iPhone \
     --data hash=4a4804c4d59b1025c1c6e1d7dde9cd7d7c92357701fb91eca7a13f361881ba141a6f958121494cda02f8188f3b56d8bd75cf7bcdcfc8ad15045954b702778f48

```

---

<div class="post-metadata">

**Author:** ![yasarbains7mhf9pj](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@yasarbains7mhf9pj](https://community.thunkable.com/u/yasarbains7mhf9pj)\
**Post date:** [September 4, 2024, 10:31am UTC](https://community.thunkable.com/t/how-to-get-web-api-response-in-web-viewer-in-thunkable/3175750/3 "2024-09-04T10:31:44Z")

</div>

I am able to make request for now, and I am getting an HTML as response, can someone please help me that how can I render that HTML page inside a web viewer.

---

<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:** [September 5, 2024, 5:23pm UTC](https://community.thunkable.com/t/how-to-get-web-api-response-in-web-viewer-in-thunkable/3175750/4 "2024-09-05T17:23:04Z")

</div>

Hello @yasarbains7mhf9pj  
Thank you for sharing more information  
Unfortunately, the current way to present an HTML on the web viewer component is by uploading it to the Project assets.

It might be possible to build an HTML code that can get another HTML as text input.

You can see examples of sending and receiving messages and get further setup instructions here: [Thunkable Web Viewer Extensions](https://github.com/thunkable/webviewer-extension/).

---

<div class="post-metadata">

**Author:** ![yasarbains7mhf9pj](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@yasarbains7mhf9pj](https://community.thunkable.com/u/yasarbains7mhf9pj)\
**Post date:** [September 4, 2024, 12:44pm UTC](https://community.thunkable.com/t/how-to-get-web-api-response-in-web-viewer-in-thunkable/3175750/5 "2024-09-04T12:44:28Z")

</div>

Hi,  
I am making a web api Post request, and I am receiving an HTML response, which I want to render into web viewer. Is there any way to do that, I have tried so many times but couldn’t get it done.  
Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [December 3, 2024, 12:44pm UTC](https://community.thunkable.com/t/how-to-get-web-api-response-in-web-viewer-in-thunkable/3175750/6 "2024-12-03T12:44:56Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
