Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 452 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 452 Bytes

ddgweb-api

A DuckDuckGo API for the web in JavaScript with no dependencies.

Please note that this is not an official api.

Getting Started

Step 1: Include ddgweb.js

<script src="https://cdn.rawgit.com/Allen-B1/ddgweb-api/master/ddgweb.min.js"></script>

Step 2:

ddg.result("DuckDuckGo").then(function(result) {
  alert(result.text);
});

Next steps

For the full documentation, read the API documentation