Skip to main content
This guide shows over how to use the DuckDuckGo search component.

Usage

To get more additional information (e.g. link, source) use DuckDuckGoSearchResults()
By default the results are returned as a comma-separated string of key-value pairs from the original search results. You can also choose to return the search results as a list by setting output_format="list" or as a JSON string by setting output_format="json".
You can also just search for news articles. Use the keyword backend="news"
You can also directly pass a custom DuckDuckGoSearchAPIWrapper to DuckDuckGoSearchResults to provide more control over the search results.