Xpersona
D

DuckDuckGo(API)

CLAWHUB · Unverified

Use when needing to search the web in AI coding tools or OpenClaw. Uses DuckDuckGo API without API key. Skill: DuckDuckGo(API) Owner: bird-frank Summary: Use when needing to search the web in AI coding tools or OpenClaw. Uses DuckDuckGo API without API key. Tags: latest:0.2.0 Version history: v0.2.0 | 2026-03-25T09:38:11.929Z | user - Added detailed proxy support, including configuration by command line argument or environment variables (HTTP_PROXY, DDGS_PROXY). - Updated documentation to include proxy usage instructio

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s178xp167x6qef16anv6t2zqfh83gha3:ddgs-search-api
  1. Setup complexity is MEDIUM. Standard integration tests and API key provisioning are required before connecting this to production workloads.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-bird-frank-ddgs-search-api/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

14,877 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: ddgs-web-search
description: Use when needing to search the web in AI coding tools or OpenClaw. Uses DuckDuckGo API without API key.
---

# DuckDuckGo Web Search Skill

An Agent Skill for searching web content via DuckDuckGo.

## Overview

This Skill provides a command-line tool for web search using the `ddgs` Python package. Suitable for:

- Real-time web information needs in AI coding tools
- Fetching search results in OpenClaw workflows

## Core Features

- **Web Search**: General web search
- **News Search**: Dedicated news content search
- **Multiple Output Formats**: Text or JSON format
- **Flexible Configuration**: Region, time limits, and safe search level
- **Proxy Support**: HTTP/HTTPS/SOCKS5 proxy via CLI args or environment variables

## Installation

This project uses `uv` as the Python package manager.

### Option 1: Run with uv (Recommended)

```bash
# Run the script directly (uv will auto-install dependencies)
uv run scripts/ddgs_search.py "Python programming"

# Or navigate to the directory first
cd skills/ddgs-search
uv run scripts/ddgs_search.py "machine learning"
```

### Option 2: Manual Dependency Installation

```bash
# Install dependencies using uv
uv pip install ddgs

# Or use pip
pip install ddgs
```

## Quick Start

### Basic Usage

```bash
# Run with uv (recommended)
uv run scripts/ddgs_search.py "Python programming"

# Limit the number of results
uv run scripts/ddgs_search.py "machine learning" --max-results 5

# Search news
uv run scripts/ddgs_search.py "tech news" --news

# JSON output (for programmatic parsing)
uv run scripts/ddgs_search.py "API documentation" --json

# Time limit (today)
uv run scripts/ddgs_search.py "breaking news" --timelimit d
```

## Complete Parameter Reference

| Parameter | Short | Description | Default |
| --------- | ----- | ----------- | ------- |
| `query` | - | Search keywords | Required |
| `--max-results` | `-n` | Maximum number of results | 10 |
| `--region` | `-r` | Region code | `wt-wt` |
| `--safesearch` | `-s` | Safe search (on/moderate/off) | `moderate` |
| `--timelimit` | `-t` | Time limit (d/w/m/y) | - |
| `--backend` | `-b` | Search backend (auto/html/lite) | `auto` |
| `--proxy` | `-p` | Proxy server (http/https/socks5) | - |
| `--news` | - | Search news | - |
| `--json` | `-j` | JSON format output | - |
| `--verbose` | `-v` | Show detailed information | - |

### Proxy Configuration

Proxy settings are resolved in the following priority order:
1. **Command line**: `--proxy` / `-p`
2. **Environment variable**: `HTTP_PROXY` or `http_proxy`
3. **Environment variable**: `DDGS_PROXY`

**Proxy format examples:**
- `http://proxy.example.com:8080`
- `http://user:pass@proxy.example.com:8080`
- `socks5://127.0.0.1:9150` (Tor Browser)
- `socks5h://user:password@geo.iproyal.com:32325`

### Region Code Examples

- `wt-wt` - Worldwide (default)
- `us-en` - United States English
- `cn-zh` - China Chinese
- `jp-jp` - Japan
- `uk-en` - United Kingdom

### Time Limits

- `d` - Past

_meta.json

{
  "ownerId": "kn792wn2t4x4kdq3j345twmwv182x5m7",
  "slug": "ddgs-search-api",
  "version": "0.2.0",
  "publishedAt": 1774431491929
}

skill-card.md

## Description:

Use when needing to search the web in AI coding tools or OpenClaw. Uses DuckDuckGo API without API key.

This skill is ready for commercial/non-commercial use.

## Publisher:

[bird-frank](https://clawhub.ai/user/bird-frank)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and coding agents use this skill to run DuckDuckGo web or news searches from the command line, with text or JSON output for automation. It supports result limits, region, safe search, time range, backend, and proxy options.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Installation examples can lead users to run installer commands or install dependencies without pinning.

Mitigation: Review setup commands before use and prefer trusted, pinned, or lockfile-based installation of uv and ddgs.

Risk: Search queries and proxy URLs may expose secrets, credentials, private project names, or sensitive internal text to external services or proxies.

Mitigation: Avoid sending sensitive content in queries or proxy URLs, and use only trusted proxy endpoints.

Risk: The OpenClaw bash workflow example may be unsafe if a query is interpolated directly into a shell command.

Mitigation: Pass queries as command arguments or otherwise escape and validate them before execution.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/bird-frank/skills/ddgs-search-api)

## Skill Output:

**Output Type(s):** [text, JSON, shell commands, configuration, guidance]

**Output Format:** [Plain text or JSON search results, with Markdown command examples and configuration guidance.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Search behavior is controlled by query, result limit, region, safe search, time limit, backend, news mode, JSON mode, verbosity, and proxy settings.]

## Skill Version(s):

0.2.0 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to DuckDuckGo(API) and adjacent AI workflows.