Generate Fact
Generate random anime facts from a huge database.
Functions
| Function | Type | Description | Required? |
|---|---|---|---|
| getFact | function | The search function to generate a random anime fact. | Yes |
Request Samples
import AnimeFact from "anime-facts";
// Replace <TOKEN> with your API Token
const api = new AnimeFact("<TOKEN>");
api.getFact().then((res) => console.log(res));Response Schema
Content Type: application/json
{
"id": 5,
"fact": "TEZUKA Osamu is the most famous manga artist in Japan.",
}