How do you extract definition from Dictionary API?

I am using https://dictionaryapi.dev/ API.

Example https://api.dictionaryapi.dev/api/v2/entries/en/help

But when i go to extract the definition from the response I get this error

Here is my code:

the response is not a list of pairs.

Snipaste_2023-04-08_23-24-39

I didn't understand what you meant, is this what you meant
image

post do it result to here as text, not photo

Check this:

i have attempted to get all definitons for the word hello and it returns length of 7 lists

:point_right: source

(blocks are draggable)

1 Like

It says 'not found'

gives me the same error

I just want to make an app which gives a one-line definition of a word

Yes, it work.

1 Like

but for every word this api will return multiple definitons, what will you do then? better show the result inlist view like this

Then you have to use one more if then condtion to select limited words items from the obtained result

(just my suggestion, here i am selecting the definitions having lenght less than 30 charaters)

sample aia

dictAPIcall.aia (37.7 KB)

Response

1 Like

post the response Content as text, not photo

To be able to do this, you have to be familiar with the Do it debugging tool...

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Try this guide? I think you're using the same API.