Utilis Docs
Search…
How To Use
The Utilis API is a very simple thing to use. Let us show you how to use it
get
https
://dashboard.utilis.tk/api/randomnumber
This is the url you will use to get the API and the data behind it. This specific API generates a random number.

Code

Random Color
This will return a hex code.
1
let res = await axios.get("https://dashboard.utilis.tk/api/randomcolor");
2
3
let data = res.data.color;
4
console.log(data);
5
}
6
7
//Or using a function
8
9
async function makeGetRequest() {
10
11
let res = await axios.get("https://dashboard.utilis.tk/api/randomcolor");
12
13
let data = res.data.color;
14
console.log(data);
15
}
16
17
makeGetRequest();
Copied!
Last modified 1mo ago