ddg-search
name: ddg-search
by camohiddendj · published 2026-03-22
$ claw add gh:camohiddendj/camohiddendj-ddg-search-cli---
name: ddg-search
description: DuckDuckGo HTML search scraper CLI with JSON, CSV, OpenSearch, markdown, and compact outputs.
homepage: https://github.com/camohiddendj/ddg-search
metadata:
{
"openclaw":
{
"emoji": "🦆",
"requires": { "bins": ["ddg-search"] },
"install":
[
{
"id": "node",
"kind": "node",
"package": "ddg-search",
"bins": ["ddg-search"],
"label": "Install ddg-search CLI (npm)",
},
],
},
}
---
# ddg-search
Search DuckDuckGo from the command line. Results go to stdout; progress goes to stderr.
Quick reference
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)Options
| 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 |
Choosing a format
Extracting URLs from JSON output
ddg-search "query" | jq -r '.items[].link'Notes
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...