ddgs
Dux Distributed Global Search. A metasearch library that aggregates results from diverse web search services.
What it is and what it does
DDGS is a metasearch library that queries multiple web search engines and aggregates their results into a unified Python API. It supports text, image, video, news, and book searches across backends like Bing, DuckDuckGo, Google, Brave, and others, with optional regional and content-filtering parameters. The library also includes an optional distributed hash table (DHT) network for peer-to-peer result caching, an HTTP API server, and an MCP server for integration with tools like Claude Desktop.
The package is built on httpx, lxml, and fake-useragent to handle HTTP requests and parsing. It's designed for developers who need programmatic access to aggregated search results without building individual integrations for each search engine. The DHT network is experimental but aims to reduce rate limiting and latency by sharing cached results anonymously among users.
Use it for:
- Build a search aggregator tool that queries multiple engines and returns deduplicated or ranked results
- Integrate web search into a Python application without managing individual API keys for each search engine
- Run a local API server to expose search functionality to other services or web frontends
- Use the MCP server to add search capabilities to Claude Desktop or other MCP-compatible clients
- Participate in the DHT network to benefit from cached results and reduce individual rate-limit pressure
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Aggregates web search results from multiple search engines (Bing, DuckDuckGo, Google, Brave, and others) through a single Python API, with optional distributed caching via DHT network.
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers low-friction installation. It solves a real problem—aggregating results from multiple search engines—with a clean API. The DHT network is beta but transparent to existing code. Install it if you need programmatic multi-engine search; skip it only if you require a single specific search engine's API or have strict Windows-only requirements.
Install
ddgs on PyPI
pip
pip install ddgsuv
uv add ddgspoetry
poetry add ddgsInstalling ddgs
Before you install
Low friction install with a pure-Python wheel. Active maintenance with recent commits and 2892 repository stars. Supports Python 3.10 through 3.14.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe for most projects.
Quickstart
pip install ddgs
from ddgs import DDGS
results = DDGS().text("python programming", max_results=5)
print(results)
Requires Python 3.10 or later. DHT network features require Linux or macOS; Windows users must use the base package without distributed caching.
Verify before relying
- Whether rate limiting behavior differs meaningfully across the supported backends (Bing, Brave, DuckDuckGo, Google, etc.)
- Actual latency improvements from DHT network participation at different network sizes below 50 nodes
- Whether the MCP server integration works with all Claude Desktop versions and Cursor configurations
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — click, primp, lxml, httpx, fake-useragent |
| Maintenance | actively maintained — 91 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,719,978/month — #1,863 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ddgs-9.14.4-py3-none-any.whl
Keywords: python, search, metasearch
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
duckduckgo-searchRetrieves search results from DuckDuckGo for…
permissive · top 5,000 on PyPI
duckduckgo-mcp-serverProvides web search and content fetching…
permissive · top 15,000 on PyPI
google-search-resultsA Python client for querying search results…
permissive · top 5,000 on PyPI
serpapiOfficial Python client for SerpApi that queries…
permissive · top 15,000 on PyPI
gnewsGNews searches Google News RSS feeds and…
permissive · top 15,000 on PyPI
duckduckgo-mcpThis package is deprecated; install web-forager…
permissive · top 15,000 on PyPI
brave-searchWrapper for the Brave Search API that provides…
unclear · top 15,000 on PyPI
web-foragerWeb Forager is a search-and-fetch toolkit for…
permissive · top 15,000 on PyPI
trendspyFetch and analyze Google Trends data including…
permissive · top 15,000 on PyPI
maggmaMaggma provides a unified interface for…
unclear · top 15,000 on PyPI