Utilis Docs
Search…
Random Number API
How to use the random number api
1
let res = await axios.get("https://dashboard.utilis.tk/api/randomnumber");
2
3
let data = res.data.number;
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/randomnumber");
12
13
let data = res.data.number;
14
console.log(data);
15
}
16
17
makeGetRequest();
Copied!
Last modified 1mo ago
Copy link