YouTube Data API JSON parsing problem, not a well-formed list

I’m having a tough time parsing the YouTube API JSON using the lookup pairs blocks, which I have successfully done before for other APIs.

So basically, I need to get the url value of the YouTube video thumbnail and assign it to a button as background image.

The JSON response is as follows

As you can see the path to the value is item > 0 > snippet > thumbnails > medium > url

So, I have used the following pattern

But however, it shows this error

The error is like lookup in pairs : the list {whole JSON response} is not a well formed list of pairs

Can anybody please help me on this?..

store the response content in a global variable and then use Do it to debug your blocks
see also tip 4 here App Inventor: How to Learn | Pura Vida Apps


1 Like