Skip to content
/ iduck Public

A simple way to use the duckduckgo API and search for images

License

Notifications You must be signed in to change notification settings

MonkeDev/iduck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iDuck

A NodeJS Wrapper to interfere with the DuckDuckGo Instant Answer API.

Example

const iDuck = require('iduck'),
duckduckgo = new iDuck('<t param>');
    duckduckgo.search('test', { no_html: true })
        .then(console.log)
        .catch(console.error);

Docs

// Example
iDuck#search(query: string, {})
    .then(res => console.log(res.Abstract))
    .catch(console.error);
// Options
{
    no_redirect: true | false,
    no_html: true | false,
    skip_disambig: true | false
}

About

A simple way to use the duckduckgo API and search for images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published