Deluge script getURL string response syntax

Deluge script getURL string response syntax

Hi there

I'm trying to write a function that calls the following URL -  https://qrng.anu.edu.au/API/jsonI.php?length=1&type=hex16&size=5

I need to use the "data" variable from the response, but I get null value returned each time as I don't know what syntax to use in the string response variable. 

Please can someone help?