What is use of Web API


#7

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

Here’s a nice intro:


#8

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

Plz reply.


#9

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.


#10

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


#11

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


#12

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


#13

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


#14

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


#15

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

Plz try if you can try it.


#16

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


#17

Ok fine.


#18

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


#19

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.


#20

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


#21

Well, I’ll show you.


#22


#23

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


#24

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].


#25

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


#26

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.