Letter Generator API

let res = await axios.get("https://sanitybot.xyz/api/randomletter");

  let data = res.data.lett;
 console.log(data);
}

//Or using a function

async function makeGetRequest() {

  let res = await axios.get("https://sanitybot.xyz/api/randomletter");

  let data = res.data.lett;
 console.log(data);
}

makeGetRequest();

Last updated