Creaturator is an API to generate random names and descriptions for legendary creatures. It takes a number between 1 and 100 as a parameter for the amount of creatures to generate:
https://creaturator.deno.dev/api/v1/{number}
The API returns an array of objects, each with name
and description
string properties. Here is an example of fetching and logging 10 creatures:
const response = await fetch("https://creaturator.deno.dev/api/v1/10");
const creatures = await response.json();
for (const { name, description } of creatures) {
console.log(`${name} - ${description}`);
}
For more information, see the project on GitHub.