ddgs
DDGS is a Python metasearch library that aggregates web search results from multiple backends (Bing, DuckDuckGo, Google, Brave, etc.) via a unified API. It offers CLI, REST API (FastAPI), and MCP server interfaces, supporting text, image, video, news, and book searches with region and safe-search filtering.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | deedy5/ddgs |
| Owner | deedy5 |
| Primary language | Python |
| License | MIT — OSI-approved |
| Stars | 2.8k |
| Forks | 267 |
| Open issues | 21 |
| Latest release | v9.14.4 (2026-05-15) |
| Last updated | 2026-05-23 |
| Source | https://github.com/deedy5/ddgs |
What ddgs is
Python ≥3.10 metasearch aggregator supporting 10+ backend engines with lazy-loaded DDGS class, proxy/timeout configuration, and pluggable transport layers (HTTP, stdio via MCP). Exposes search functions returning structured JSON lists with filtering by region, safe-search level, time limit, and custom backend selection.
Get the ddgs source
Clone the repository and explore it locally.
git clone https://github.com/deedy5/ddgs.gitcd ddgs# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- Requires Python ≥3.10; plan for environment setup and dependency management (base install vs. [api] or [mcp] extras).
- Third-party backend availability and rate-limiting are outside DDGS control—implement circuit-breaker patterns and timeout tuning (default 5s) for resilience.
- Proxy support (http/https/socks5) available; ensure proxy infrastructure is in place if using behind corporate firewalls or for geographic distribution.
- Backend auto-selection ('auto' default) may silently degrade if a preferred engine is unavailable; explicitly specify backends for production reliability.
- Result structure varies by engine and search type; normalize/validate output before downstream consumption (title, href/url, body fields not guaranteed across all backends).
When to avoid it — and what to weigh
- Requiring guaranteed uptime or commercial SLA — DDGS depends on third-party search engines (Bing, DuckDuckGo, Google, etc.) that may block, rate-limit, or change APIs. No guarantee of service availability or support from the library maintainer.
- Need for strict legal compliance with search engine ToS — Automated aggregation of results from multiple search engines may violate their terms of service. Organizations with strict legal requirements should review and obtain explicit permission from each backend provider.
- Expecting real-time, high-volume enterprise search — Metasearch introduces latency aggregating multiple backends and is subject to rate-limiting by upstream services. Not designed for high-throughput production search where single-engine reliability and performance SLA matter.
- Operating in restricted jurisdictions or with banned engines — Some backends (Google, Bing) are blocked in certain countries. DDGS' fallback model helps but does not guarantee access; verify backend availability in your target region before deployment.
License & commercial use
MIT License (permissive OSI-compliant). Allows unrestricted use, modification, and distribution with attribution. No copyleft restrictions; suitable for proprietary and open-source projects.
MIT License permits commercial use without restriction. However, commercial viability depends entirely on third-party search engine availability, ToS compliance, and rate-limit tolerance. Verify that aggregating and reselling search results from Bing, Google, DuckDuckGo, etc. complies with their terms of service. No indemnification or support from the DDGS project. Requires legal review before monetization.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Adequate |
| License clarity | Clear |
| Deployment complexity | Low |
| DEV.co fit | Good |
| Assessment confidence | High |
DDGS itself has no authentication or authorization layer; deploy REST API behind reverse proxy with TLS, API keys, and access controls. Proxy parameter allows SOCKS5/HTTPS but no secret management guidance provided. Aggregating search results may expose user queries and result metadata; ensure logging/retention policies comply with data-protection regulations (GDPR, CCPA). Dependency on third-party engines means upstream security incidents (e.g., engine compromised, man-in-the-middle on results) inherit directly. No audit trail or encrypted storage. Verify dependencies (FastAPI, httpx, etc.) for CVEs before production use.
Alternatives to consider
SearXNG
Open-source metasearch engine with web UI, more mature ecosystem, stronger focus on privacy. Heavier deployment (Jinja2, Redis optional). Better for end-user-facing search; DDGS better for programmatic integration.
Brave Search API
Single commercial search engine with indexing, API, and official support. No aggregation, but more reliable uptime and ToS clarity. Trade-off: vendor lock-in vs. DDGS' flexibility.
Google Custom Search Engine (CSE)
Official Google API with ToS, quotas, and support. Limited free tier; paid model. No aggregation. Better for enterprise needing guaranteed availability and compliance; DDGS suits cost-sensitive / open-source use.
Build on ddgs with DEV.co software developers
DDGS is MIT-licensed and production-ready for programmatic search aggregation. Start with pip install ddgs, review search engine ToS compliance, and scale via REST API or MCP integration.
Talk to DEV.coRelated open-source tools
Surfaced by semantic similarity across the DEV.co open-source index.
Related on DEV.co
Explore the category and the services that help you build with it.
ddgs FAQ
Will aggregating search results from Bing, Google, DuckDuckGo, etc. violate their ToS?
What happens if one backend is unavailable or rate-limited?
Can I use DDGS in a commercial product?
How do I deploy DDGS for high availability?
Software development & web development with DEV.co
Need help beyond evaluating ddgs? DEV.co is a software development agency offering software development services and web development for teams of every size. Our software developers and web developers build custom software, web applications, APIs, and mcp servers integrations — and maintain them long-term.
Ready to build a metasearch solution?
DDGS is MIT-licensed and production-ready for programmatic search aggregation. Start with pip install ddgs, review search engine ToS compliance, and scale via REST API or MCP integration.