Proper syntax to obtain information from http-api?

Your code is not working for me

???? how so? You get an error? You get unexpected results? it hangs?

According the doc

do you have a specific doc reference?