Hub Details API

When I make a webservice call to get the hub information , it is not returning me a json. It is returning a HTML to login into smart things account. How can I by pass this ? or programatically do this to get the hub data in json form.

There are currently very few (if any?) general API’s into SmartThings’s Data/Objects.

Account, Location, Hub, Room, SmartApp, etc., etc., are all Objects in SmartThings’s database, but, as far as I know, there is no published API for 3rd party developers. There are a few old hack’s out there that return JSON for a logged in Account, but these were never official and subject to deprecation without notice.

You just get the API’s for specific Objects like Event and Device, …

Well… looks like there are a few for Hub…!