How to implement any API in my app

How can i implement any type of API into my application.

Which type api?is this api return data in json format?

For retrieving, sending data to a web api , you can use the web component:


Also see here:
How to work with the web component and an API by Stephen
And some times, the api’d return the response in json format, so you’d need to parse it to list of lists using this block:
image
See here:


Also you can see this guide by @WatermelonIce:


Some of the links above, are from here : App Inventor Links | Pura Vida Apps

3 Likes

How to work with the web component and an API by Stephen
Taifun

like i want to return current time with the API to my app

Use the Web Component.
Use the URL Property for that Component.
You need to read about the api.
1-Check if you need to pass any parameters to the API.
2- If you need to pass a parameter, use the POST method of the Web Component.
3- If you don’t need to use GET
4- Check the API return on the API website.
5- Treat the return of the API in the Kodular blocks.

1 Like