This is a Node.js library for Dan api.
npm install dan-api
const DanApi = require('dan-api');
const api = new DanApi({
token: 'YOUR_TOKEN',
timeout: 10000,
sandbox: false,
});
(async () => {
console.log(await api.dp.search('dan'));
})();