# What is use of Web API

**URL:** <https://community.thunkable.com/t/what-is-use-of-web-api/31258>\
**Category:** Questions about Thunkable X\
**Created:** [June 12, 2018, 7:55am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258 "2018-06-12T07:55:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiranmadde](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kiranmadde/32/20828_2.png) [@Kiranmadde](https://community.thunkable.com/u/Kiranmadde)\
**Post date:** [June 12, 2018, 7:55am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/1 "2018-06-12T07:55:55Z")

</div>

What is the use of web api in thunkable x…?  
How it is blocked and used?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 7:58am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/2 "2018-06-12T07:58:46Z")

</div>

An example of use you can see in the documentation.

[https://docs.thunkable.com/thunkable-cross-platform/2-create/components/data-storage/web-api](https://docs.thunkable.com/thunkable-cross-platform/2-create/components/data-storage/web-api)

or

> [@Time of the Day for closs platform app](http://community.thunkable.com/t/time-of-the-day-for-closs-platform-app/29332/3):
>
> Try using for example the service [https://timezonedb.com/](https://timezonedb.com/) to get the time. Basic example. First you need to register on the service and get a KEY. Then try using the browser to get the time you need (there are examples on the service). If this happens, use the block below to get the time in Thunkable X.

---

<div class="post-metadata">

**Author:** ![Kiranmadde](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kiranmadde/32/20828_2.png) [@Kiranmadde](https://community.thunkable.com/u/Kiranmadde)\
**Post date:** [June 12, 2018, 8:04am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/3 "2018-06-12T08:04:30Z")

</div>

I have read this. But i cant understand what is exact use. Can you explain?

---

<div class="post-metadata">

**Author:** ![Kiranmadde](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kiranmadde/32/20828_2.png) [@Kiranmadde](https://community.thunkable.com/u/Kiranmadde)\
**Post date:** [June 12, 2018, 8:05am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/4 "2018-06-12T08:05:28Z")

</div>

Can i get data from a website using web api and use in my app to access it?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 8:06am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/5 "2018-06-12T08:06:33Z")

</div>

Yes. In my example above, it just shows how to get time from a web service. Create on your site a server script on php for example and send it requests for any data.

---

<div class="post-metadata">

**Author:** ![Kiranmadde](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kiranmadde/32/20828_2.png) [@Kiranmadde](https://community.thunkable.com/u/Kiranmadde)\
**Post date:** [June 12, 2018, 9:02am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/6 "2018-06-12T09:02:39Z")

</div>

Can i use third party website to access their data in my app. How?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [June 12, 2018, 9:41am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/7 "2018-06-12T09:41:14Z")

</div>

If the third party site has an API, then yes.

Here’s a nice intro:

> **[What Non-Engineers Need to Know About APIs](https://news.codecademy.com/what-to-know-about-apis/?utm_source=customer.io&utm_medium=email&utm_campaign=fortnightly_6-6-18&utm_content=CCtoResume)**
>
> Ask most developers what an API is and you’ll probably get lost in a sea of acronyms. Before thinking it’s all over your head, read this explainer.

---

<div class="post-metadata">

**Author:** ![Kiranmadde](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kiranmadde/32/20828_2.png) [@Kiranmadde](https://community.thunkable.com/u/Kiranmadde)\
**Post date:** [June 12, 2018, 9:56am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/8 "2018-06-12T09:56:48Z")

</div>

Thanks for your reply.  
How i know that the website has API and how i get it and use it?

Plz reply.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 10:03am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/9 "2018-06-12T10:03:15Z")

</div>

To do this, enter the name of the site, service, company, and “api” in the Google search bar, for example: facebook api, apple api, and the like. If api is there, then links to it will appear in the search results.

Or you can write a letter to the site administrator and ask if this site has an api.

---

<div class="post-metadata">

**Author:** ![Kiranmadde](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kiranmadde/32/20828_2.png) [@Kiranmadde](https://community.thunkable.com/u/Kiranmadde)\
**Post date:** [June 12, 2018, 10:05am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/10 "2018-06-12T10:05:11Z")

</div>

Ok. If a website has API then what to do next?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 10:09am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/11 "2018-06-12T10:09:58Z")

</div>

See the documentation and examples on how to use it, which there is in most cases, and make your example on their basis.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [June 12, 2018, 10:45am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/12 "2018-06-12T10:45:35Z")

</div>

You could try this example to get an idea of how APIs work:

[http://community.thunkable.com/t/introduction-to-apis/12067?u=domhnall](http://community.thunkable.com/t/introduction-to-apis/12067)

---

<div class="post-metadata">

**Author:** ![Kiranmadde](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kiranmadde/32/20828_2.png) [@Kiranmadde](https://community.thunkable.com/u/Kiranmadde)\
**Post date:** [June 12, 2018, 11:05am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/13 "2018-06-12T11:05:04Z")

</div>

It is very hard. Im leaving the project 😐😢😢😰😰😰

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 11:14am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/14 "2018-06-12T11:14:07Z")

</div>

Tell us what task you need to solve, and we’ll answer if it can be done in Thunkable X or not.

---

<div class="post-metadata">

**Author:** ![Kiranmadde](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kiranmadde/32/20828_2.png) [@Kiranmadde](https://community.thunkable.com/u/Kiranmadde)\
**Post date:** [June 12, 2018, 11:26am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/15 "2018-06-12T11:26:13Z")

</div>

I have explained in detail in thunkable classic discussion what i expect…

[http://community.thunkable.com/t/how-to-get-data-from-thirdparty-website-in-app/31271?u=kiranmadde](http://community.thunkable.com/t/how-to-get-data-from-thirdparty-website-in-app/31271)

Plz try if you can try it.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 12:05pm UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/16 "2018-06-12T12:05:06Z")

</div>

To retrieve data from the site are used by parsers of data from sites. But this topic is not relevant to Thunkable.

---

<div class="post-metadata">

**Author:** ![Kiranmadde](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kiranmadde/32/20828_2.png) [@Kiranmadde](https://community.thunkable.com/u/Kiranmadde)\
**Post date:** [June 12, 2018, 12:06pm UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/17 "2018-06-12T12:06:44Z")

</div>

Ok fine.

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [June 14, 2018, 9:20pm UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/18 "2018-06-14T21:20:07Z")

</div>

Hello,  
I need to read a WS Api that show this kind of JSON: Could you explaine me how do you do?  
Many thanks  
Andrea

![Schermata%20del%202018-06-14%2023-08-40](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/b/9bfe8121e6d5dacdaae146ecce64df3061f07d9b.png)

 ![Schermata%20del%202018-06-14%2023-11-15](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/caea279d482208395876fcf9b6580ce16650dad8.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 15, 2018, 5:53am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/19 "2018-06-15T05:53:45Z")

</div>

Hello,

When working with JSON, you have fields in either the object or in the array. In this case, objects and arrays can be nested into each other, as in your case.

Imagine JSON data as a house with many floors and rooms. To get into the house, first you need to open the external door - the object “GetPuntiRTResult”, after that you need to go up to the desired floor (choose an index in the array []), for example, 1. After that, you need to open the door of the room “TFP\_Punti”. To verify the correctness of your movement around the house at each step with Label.Text, check what data is returned.

If you can not make such an algorithm in any way, you can send me a link to your project.

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [June 15, 2018, 7:43am UTC](https://community.thunkable.com/t/what-is-use-of-web-api/31258/20 "2018-06-15T07:43:30Z")

</div>

Ciao,  
your explanation is very clear but 😉 I cannot understand how do that sorry … my JSONs data are all structured in this way.  
Please could you help me first time? thanks. Andrea

[https://x.thunkable.com/copy/59c185ed37d895b8bfa76f4d350db8ce](https://x.thunkable.com/copy/59c185ed37d895b8bfa76f4d350db8ce)

[Next page](https://community.thunkable.com/t/what-is-use-of-web-api/31258.md?page=2)
