First install the owlbot-js package.
npm install owlbot-js
var Owlbot = ;var client = ;client;
In the example code, we've initiated the client object with a token. you can register for a free token on https://owlbot.info.
Then on the client instance we called the define method to fetch the definitions of the word 'owl'. In the background, define method sends an ajax request to the API using the axios package. Since it's an asynchronous request, the define methos returns a Promiss.
definitions:type: 'noun'definition:'a nocturnal bird of prey with large eyes, a facial disc, a hooked beak, and typically a loud hooting call.'example:'I love reaching out into that absolute silence, when you can hear the owl or the wind.'image_url:''emoji: '🦉'word: 'owl'pronunciation: 'oul'