API documentation

The QRNG@ANU JSON API supports three parameters. These are:

  • Data type, the data type must be ‘uint8’ (returns integers between 0–255), ‘uint16’ (returns integers between 0–65535) or ‘hex16’ (returns hexadecimal characters between 00–ff).
  • Array length, the length of the array to return. Must be between 1–1024.
  • Block size, only needed for ‘hex16’ data type. Sets the length of each block. Must be between 1–1024.
https://qrng.anu.edu.au/API/jsonI.php?length=[array length]&type=[data type]&size=[block size]

If the request is successful, the random numbers are returned in a JSON encoded array named ‘data’.

Examples

Requesting 10 random numbers between 0–255

https://qrng.anu.edu.au/API/jsonI.php?length=10&type=uint8

Requesting 5 random numbers between 0–65535

https://qrng.anu.edu.au/API/jsonI.php?length=5&type=uint16

Requesting 10 blocks of random numbers in hexadecimal format. Each block is between 0000–ffff

https://qrng.anu.edu.au/API/jsonI.php?length=10&type=hex16&size=2

Try it out

Data type
Array length (max 1024)
Block size (max 1024)



Theme: Overlay by Kaira ANU QRNG
Canberra, Australia