How to view api result in listview

I have api link. This link has some headings and links below it. How to set headings in list view and when click they open in url.

Which elements do you want to show in your listview?

I want name in listview and when i click on them i can visit the url in web viewer

Please provide api url or full api response, in text (not an image)

1 Like

If you want to apply brute force, you can shred your JSON using techniques from

If you want to learn more about JSON and dictionaries, see the appropriate MIT help.

https://api.pushshift.io/reddit/submission/search/?subreddit=toys&limit=5

Here you are:

redditAPI.aia (8.3 KB)

Hi can you explain me why have we taken split insted of just full output link.

I extracted the "name" from the end of the url, there was no other entry for "name", this gives one entry for the listview, another for the url

What about title given in api

Yes, you could use that

So how would i replace it insted of split just write title???

You should be able to see the method used to extract a key:pair. Apply this again for "title" to get what you want.

hi it works with title , now how to separate the screens like get api open new screen pick from list and then open webpage in new page

I would advise to try working with virtual screens

Use different screens wisely

If you decided to use different screens, then you should switch them correctly, else you will run out of memory after a while...      
The recommended method of switching screens in App Inventor
(Thanks Taifun)
 
Also see demo: multiscreen.aia