Simple way to get device info from javascript

I’m teaching my son to code, and in our javascript “home automation summary” page I’d like to be able to use javascript to access our Smartthings Hub v1 and get some basic information back. Like the web link

when you show the info from your device in the graph interface. Either a JSON object or whatever.

I’ve never done any smartthings API work before, so if you would please, whatever I need to short-path to success.