# Get body part from an URL to use the data

**URL:** <https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179>\
**Category:** Questions about Thunkable X\
**Created:** [March 11, 2021, 9:30pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179 "2021-03-11T21:30:54Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcesar.sotodi1u](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gcesar.sotodi1u](https://community.thunkable.com/u/gcesar.sotodi1u)\
**Post date:** [March 11, 2021, 9:30pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/1 "2021-03-11T21:30:54Z")

</div>

Hi,

I have this URL: [https://altar.uson.mx/cgi-bin/aspiran.sh/Audiencias/EmpleadoNombre.p?nombre=aldo&apellido=\*&tipo=3](https://altar.uson.mx/cgi-bin/aspiran.sh/Audiencias/EmpleadoNombre.p?nombre=aldo&apellido=*&tipo=3)

i want to put the data into a variable, and then, convert it to a JSON format and manage the information

can i get some help here?

---

<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:** [March 11, 2021, 9:35pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/2 "2021-03-11T21:35:12Z")

</div>

Your data output is already in JSON format.

---

<div class="post-metadata">

**Author:** ![gcesar.sotodi1u](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gcesar.sotodi1u](https://community.thunkable.com/u/gcesar.sotodi1u)\
**Post date:** [March 11, 2021, 9:37pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/3 "2021-03-11T21:37:23Z")

</div>

thnks, but, i cant put it into a label or a variable to manipulate the data… how can extract it from the webpage?

---

<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:** [March 11, 2021, 9:42pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/4 "2021-03-11T21:42:47Z")

</div>

Use Web API component and the `response` green block will have your data.

Place your URL in the URL property of the Web API component and execute the GET command to get your data.

---

<div class="post-metadata">

**Author:** ![gcesar.sotodi1u](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gcesar.sotodi1u](https://community.thunkable.com/u/gcesar.sotodi1u)\
**Post date:** [March 11, 2021, 9:44pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/5 "2021-03-11T21:44:38Z")

</div>

thnks for answer, i did it, but i dont have any response, the label goes blank

---

<div class="post-metadata">

**Author:** ![gcesar.sotodi1u](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gcesar.sotodi1u](https://community.thunkable.com/u/gcesar.sotodi1u)\
**Post date:** [March 11, 2021, 9:47pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/6 "2021-03-11T21:47:30Z")

</div>

![no response](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/f/5f8352fc185a850592b22cb6b42ddab4ff57cde3.png)

i have this

---

<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:** [March 11, 2021, 9:56pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/7 "2021-03-11T21:56:14Z")

</div>

For us to be able to check whether or not it works, we would need the full URL.

Please see this tutorial information and video that I made:

> [@API JSON Tutorial (Video)](https://community.thunkable.com/t/api-json-tutorial-video/1140575):
>
> Using APIs in Thunkable and understanding how to parse JSON to get certain data from the API response is both a popular and a difficult aspect of using Thunkable. It’s not so much difficult because of Thunkable but because every API url format is different, every API documentation is different, every JSON response is different, etc. In this video, I spend a lot of time talking you through some best practices. It’s not a quick tutorial because if you rush through setting up an API in Thunkable, …

---

<div class="post-metadata">

**Author:** ![gcesar.sotodi1u](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gcesar.sotodi1u](https://community.thunkable.com/u/gcesar.sotodi1u)\
**Post date:** [March 11, 2021, 10:00pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/8 "2021-03-11T22:00:45Z")

</div>

thank you, im going to see it, but, any fast idea? this is the full URL for me: [https://altar.uson.mx/cgi-bin/aspiran.sh/Audiencias/EmpleadoNombre.p?nombre=aldo&apellido=\*&tipo=3](https://altar.uson.mx/cgi-bin/aspiran.sh/Audiencias/EmpleadoNombre.p?nombre=aldo&apellido=*&tipo=3)

its all that i have…

---

<div class="post-metadata">

**Author:** ![thunkablest5dru](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@thunkablest5dru](https://community.thunkable.com/u/thunkablest5dru)\
**Post date:** [March 11, 2021, 10:42pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/9 "2021-03-11T22:42:13Z")

</div>

You should always include the full error response verification in your webapi calls.

I created a test app with just the following in it to verify api calls outside my main app

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

Sometimes there is an error code which means there is no response block

---

<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:** [March 11, 2021, 11:36pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/10 "2021-03-11T23:36:15Z")

</div>

> [@gcesar.sotodi1u](#):
>
> im going to see it, but, any fast idea?

Nope!

This takes time to figure out. Watch my video, then provide the info I suggested in that post. If you have some blocks you’ve tried after that that aren’t working, post a screenshot. But if you take shortcuts, it’s probably not going to work.

---

<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:** [March 12, 2021, 11:42am UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/11 "2021-03-12T11:42:10Z")

</div>

@gcesar.sotodi1u  
I tried the URL you provided and it is a list of tickets or something like this.

I made this quick app to get the data

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b7824b72d47fe5535627e49618dc06a6b8516ad2.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/9/19305be3ac0878e2fd3046adb6a2418668e51005.png)  
This will show the first 3 tickets from the list.

This is a sample output

 ![Screenshot_20210312_144246](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/7/47e0c1b7681a2afe1bd3b7ab6239b2b41eb6b7d3.jpeg)

---

<div class="post-metadata">

**Author:** ![gcesar.sotodi1u](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gcesar.sotodi1u](https://community.thunkable.com/u/gcesar.sotodi1u)\
**Post date:** [March 12, 2021, 3:46pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/12 "2021-03-12T15:46:19Z")

</div>

Thank you so much for take your time to help me, i really apretiate, i tried the code but, i got this output…

 ![output](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/4/e41dcd310c3292466ad91f91703d9f93b140e986.png)

Mi blocks …

 ![blocks](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/e/aeb81851e72bc45648a8e5d012cb6dc6caac54bd.png)

Api config

 ![Web_API_Config](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/3/03f1bd8ddd990fba6d3bb5bf5f4e40491cce1d5d.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:** [March 12, 2021, 4:02pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/13 "2021-03-12T16:02:25Z")

</div>

You are trying to run your app from the Web Live Test. This will not work.

Run it from the Thunkable Live App in your mobile phone.

---

<div class="post-metadata">

**Author:** ![gcesar.sotodi1u](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gcesar.sotodi1u](https://community.thunkable.com/u/gcesar.sotodi1u)\
**Post date:** [March 12, 2021, 4:08pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/14 "2021-03-12T16:08:27Z")

</div>

it wooorks!!! thank you so so much!!! i really apretiate the help, your time and your atention! can i invite you a coffee by paypal?

---

<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:** [March 12, 2021, 5:14pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/15 "2021-03-12T17:14:58Z")

</div>

For a cup of coffee, see this  
[https://x.thunkable.com/projectPage/604b4be60b23270012016c7a](https://x.thunkable.com/projectPage/604b4be60b23270012016c7a)

---

<div class="post-metadata">

**Author:** ![gcesar.sotodi1u](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gcesar.sotodi1u](https://community.thunkable.com/u/gcesar.sotodi1u)\
**Post date:** [March 12, 2021, 5:27pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/16 "2021-03-12T17:27:19Z")

</div>

thats perfect!! im going to start to develop the complet app using this for mi begin, when i finished i want to let you know, because you help me a lot, i really want to invite you the coffee let me know how can i do it please.

Thank you so much again!

---

<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:28pm UTC](https://community.thunkable.com/t/get-body-part-from-an-url-to-use-the-data/1161179/17 "2024-11-08T13:28:48Z")

</div>


