How do you extract definition from Dictionary API?

I am using API.


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.


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

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)


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

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.