ddg-search-cliDuckDuckGo HTML search scraper CLI with JSON, CSV, OpenSearch, markdown, and compact outputs.
Install via ClawdBot CLI:
clawdbot install camohiddendj/ddg-search-cliSearch DuckDuckGo from the command line. Results go to stdout; progress goes to stderr.
ddg-search "query" # default: JSON, 5 pages
ddg-search -f compact "query" # minimal-token output (best for LLM context)
ddg-search -f jsonl "query" # one JSON object per line
ddg-search -n 10 "query" # stop after 10 results
ddg-search -p 2 -f json "query" # 2 pages, JSON
ddg-search -r us-en -t w "recent topic" # US-English, past week
ddg-search -p 0 "query" # unlimited pages (scrape all)
| Flag | Long | Description | Default |
|------|------|-------------|---------|
| -f | --format | Output format: json, jsonl, csv, opensearch, markdown, compact | json |
| -p | --pages | Max pages to scrape (0 = unlimited) | 5 |
| -n | --max-results | Stop after this many results | all |
| -r | --region | Region code (e.g. us-en, uk-en) | all regions |
| -t | --time | Time filter: d (day), w (week), m (month), y (year) | none |
compact: Use for feeding results into an LLM. Minimal tokens, no JSON overhead.jsonl: Use when piping to line-oriented tools or streaming processors.json: Use when you need structured data with OpenSearch metadata, zero-click answers, and spelling corrections. Pipe through jq for field extraction (e.g. | jq '.items[].link').csv: Use for spreadsheets or tabular analysis.markdown: Use for human-readable output or embedding in documents.opensearch: Use when producing Atom XML feeds.ddg-search "query" | jq -r '.items[].link'
Generated Mar 1, 2026
Startups can use ddg-search to gather competitive intelligence and market trends by scraping search results for specific industry keywords. The compact format minimizes token usage when feeding data into LLMs for analysis, while JSON format provides structured data for deeper insights.
Researchers and students can scrape academic search results to compile references and sources for literature reviews. The time filter helps find recent publications, and markdown format creates readable bibliographies for papers and reports.
Content creators and journalists can use ddg-search to gather information for articles, blog posts, and videos. The region filter ensures locally relevant results, and CSV format allows easy organization of sources in spreadsheets for editorial planning.
Digital marketers can analyze search engine results for specific keywords to understand ranking factors and competitor strategies. The unlimited pages option enables comprehensive scraping, and JSONL format supports streaming analysis through data pipelines.
Product teams can search for user feedback, feature requests, and competitor offerings to inform development priorities. The tool's ability to extract URLs via jq integration enables automated collection of relevant web resources for analysis.
Integrate ddg-search into a subscription-based market intelligence platform that provides automated search result analysis. Offer tiered plans based on search volume, with premium features like historical trend analysis and custom region targeting.
Offer specialized consulting services using ddg-search for competitive analysis, market research, and SEO audits. Provide clients with customized reports generated from scraped data, with value-added interpretation and strategic recommendations.
Build a data aggregation service that regularly scrapes search results for high-demand keywords across multiple regions. Clean, structure, and package this data for resale to businesses needing search trend intelligence without running their own scraping infrastructure.
💬 Integration Tip
Use the compact format for LLM contexts to minimize token usage, and always redirect stderr to keep output clean when piping results to other tools.
Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
AI-optimized web search via Tavily API. Returns concise, relevant results for AI agents.
This skill should be used when users need to search the web for information, find current content, look up news articles, search for images, or find videos. It uses DuckDuckGo's search API to return results in clean, formatted output (text, markdown, or JSON). Use for research, fact-checking, finding recent information, or gathering web resources.
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
Search indexed Discord community discussions via Answer Overflow. Find solutions to coding problems, library issues, and community Q&A that only exist in Discord conversations.
Multi search engine integration with 17 engines (8 CN + 9 Global). Supports advanced search operators, time filters, site search, privacy engines, and WolframAlpha knowledge queries. No API keys required.