Docs

8Ball

8Ball

Information regarding our 8ball api.

This is a pretty basic 8ball response generator that we also use in our discord bot, you send it a request and it will spit out a random answer.


Response parameters

PropTypeDefault
response
STRING
-

Example usage

Base URL: https://api.cordx.lol/v3/client/8ball

Example Request
const fetch = require('node-fetch');
 
await fetch('https://api.cordx.lol/v3/client/8ball')
.then((res) res.json())
.then((r) => {
    await console.log(`${r.response}`)
}).catch((e) => console.log(e.stack));

Example Response
{
  "response": "Outlook not so good."
}

Last updated on