Overview
DuckDuckGo is a privacy-focused search engine. This tool provides web search, news, and image search capabilities without requiring an API key.Installation
Quick Start
Usage with Agent
Available Methods
search(query, max_results=5)
Search the web.news(query, max_results=5)
Get news articles.images(query, max_results=5)
Search for images.Configuration Options
Function-Based Usage
CLI Usage
Error Handling
Common Errors
| Error | Cause | Solution |
|---|---|---|
duckduckgo-search not installed | Missing dependency | Run pip install duckduckgo-search |
RatelimitException | Too many requests | Add delay between requests or use proxy |
TimeoutException | Request timeout | Increase timeout or check network |
Advantages
- No API key required - Works out of the box
- Privacy-focused - No tracking
- Multiple search types - Web, news, images
- Free - No usage limits (respect rate limits)

