What is use of Web API

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

Here’s a nice intro:

2 Likes

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

Plz reply.

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.

2 Likes

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

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

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

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

It is very hard. Im leaving the project :neutral_face::cry::cry::cold_sweat::cold_sweat::cold_sweat:

1 Like

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

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

Plz try if you can try it.

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

Ok fine.

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

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.

Ciao,
your explanation is very clear but :wink: 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

Well, I’ll show you.

1 Like

Many thanks really … just last info: if I have more “row” and I have put them into a listview … which list block I have to do in place of this?

Andrea

It is necessary to use “in list get” with the desired index, if the required field is in the array of objects. The array is what is between the parentheses [and].

1 Like

I am also having trouble with this. Here is the code:

#1 returns blank or “undefined”
#2 blank or “undefined”
#3 is
[{"breed’:||,“catagories”:||,“id”;“egs”,“url”:“https://24.media.tumblr.com/tumblr_m4ikzs7XtT1r6jd7fo1_500.jpg”}]

https://24.media.tumblr.com/tumblr_m4ikzs7XtT1r6jd7fo1_500.jpg is a valid link of a cat picture. The API send a different link every time is is called.

I want to strip out the link and display it in the webviewer, using the property url, which I think should happen at #2, but it doesn’t work. Where am I going wrong?

TIA

In your browser enter https://api.thecatapi.com/v1/images/search and show me the answer. If the answer is no information, then you will not be able to.