PHP DuckDuckGo API

Simple DuckDuckGo API wrapper for PHP

Bang

!bangs are shortcuts that start with an exclamation point like, !wikipedia and !espn. Use them to quickly search other sites from the DuckDuckGo search box.

You can view a list of available !bang commands here.

JSON response

$bang = new \DDG\API\Bang();
$result = $bang->get('imdb rushmore');

Response example is available here.


Related: