Search

PythonReactSEOPDF
OpenClaw

web-search

Web search using DuckDuckGo Instant Answer API (no API key required). Use when you need to search the web for information, definitions, calculations, conversions, or quick facts. Also use when user mentions "search", "look up", "find information", "what is", "how to", or "google something". The skill provides instant answers, definitions, abstracts, and related topics without requiring external API credentials.

hahahxx0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install hahahxx/web-search-instant

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Web Search

Free web search using DuckDuckGo's Instant Answer API. No API key required.

Quick Start

# Basic search
cd /home/hxx/clawd/tools && ./web-search.sh "your query"

# Examples
./web-search.sh "what is artificial intelligence"
./web-search.sh "python programming"
./web-search.sh "define recursion"
./web-search.sh "2+2"

Command-Line Options

Core Options
  • -h, --help - Display help message with usage examples
  • --format <format> - Output format: text, markdown, plain (default: text)
    • text: Colored terminal output (default)
    • markdown: Clean markdown format (no ANSI colors)
    • plain: Plain text without colors
  • --no-color - Disable colored output (same as --format plain)
  • --max-related <N> - Control number of related topics to show (default: 5)
  • --quiet - Minimal output mode (just results, no headers/footer)
Output to File

Use shell redirection to save results to file:

# Save to file
./web-search.sh "query" > output.txt

# With markdown format
./web-search.sh --format markdown "query" > results.md

# With no colors for logs
./web-search.sh --no-color "query" > search.log

What It Returns

The tool provides several result types:

  • Answers - Direct answers for calculations, conversions, weather, etc.
  • Abstracts - Wikipedia-style summaries with source and URL
  • Definitions - Word/term definitions
  • Related Topics - Additional relevant results (configurable, 5 default)

Best Practices

  1. Be specific - More specific queries get better instant answers
  2. Try variations - If no results, rephrase your query
  3. Use for facts - Definitions, calculations, quick lookups work best
  4. Check URL - Always provides DuckDuckGo link for full search
  5. Use appropriate format:
    • Terminal output: --format text (colored, default)
    • Documentation: --format markdown > file.md`
    • Logs/piping: --format plain or --no-color

Limitations

  • No full...

Source information

Source
github
Repository
openclaw/skills
Path
skills/hahahxx/web-search-instant
Version
—
Commit
f74fdc4c01efd7b623da1764ed487b29d7feb7f0
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

Web Search Tool

DuckDuckGo Instant Answer API client - free web search without API keys.

API Details

  • Endpoint: https://api.duckduckgo.com/

  • Parameters:

    • q - Search query (URL-encoded)
    • format=json - JSON response
    • no_html=1 - Plain text (no HTML)
    • skip_disambig=0 - Include disambiguation results
  • Documentation: https://duckduckgo.com/api

  • Rate Limits: None documented (be respectful)

Response Structure

{
  "Abstract": "Full text summary",
  "AbstractSource": "Wikipedia",
  "AbstractURL": "https://...",
  "Answer": "Direct answer (e.g., 4 for 2+2)",
  "AnswerType": "calc",
  "Definition": "Term definition",
  "Heading": "Result title",
  "RelatedTopics": [
    {
      "Text": "Topic description",
      "FirstURL": "https://..."
    }
  ]
}

Query Types That Work Well

  1. Calculations: 2+2, sqrt(144), 10% of 500
  2. Definitions: define recursion, what is AI
  3. Conversions: 100 miles to km, 50c to fahrenheit
  4. Facts: population of Tokyo, who won 2024 Olympics
  5. Wikipedia: quantum physics, French Revolution

Query Types That Don't Work Well

  1. Full web searches: Use DuckDuckGo URL provided in output
  2. Recent news: DuckDuckGo focuses on evergreen content
  3. Personal queries: Location-specific, user-specific data
  4. Real-time data: Stock prices, live scores, etc.

Character Encoding

Some abstracts have Unicode issues in basic parsing (non-ASCII characters garbled). Install jq for cleaner output:

sudo apt-get install jq  # Ubuntu/Debian
brew install jq          # macOS

Error Handling

  • Network timeout → Tool retries once, then reports error
  • Empty response → Reports "No results found" with DuckDuckGo URL
  • Invalid JSON → Falls back to basic grep parsing
  • No curl/wget → Error message recommending installation

Extracted content

SKILL.md
# Web Search

Free web search using DuckDuckGo's Instant Answer API. No API key required.

## Quick Start

```bash
# Basic search
cd /home/hxx/clawd/tools && ./web-search.sh "your query"

# Examples
./web-search.sh "what is artificial intelligence"
./web-search.sh "python programming"
./web-search.sh "define recursion"
./web-search.sh "2+2"
```

## Command-Line Options

### Core Options
- `-h, --help` - Display help message with usage examples
- `--format <format>` - Output format: `text`, `markdown`, `plain` (default: `text`)
  - `text`: Colored terminal output (default)
  - `markdown`: Clean markdown format (no ANSI colors)
  - `plain`: Plain text without colors
- `--no-color` - Disable colored output (same as `--format plain`)
- `--max-related <N>` - Control number of related topics to show (default: 5)
- `--quiet` - Minimal output mode (just results, no headers/footer)

### Output to File
Use shell redirection to save results to file:

```bash
# Save to file
./web-search.sh "query" > output.txt

# With markdown format
./web-search.sh --format markdown "query" > results.md

# With no colors for logs
./web-search.sh --no-color "query" > search.log
```

## What It Returns

The tool provides several result types:

- **Answers** - Direct answers for calculations, conversions, weather, etc.
- **Abstracts** - Wikipedia-style summaries with source and URL
- **Definitions** - Word/term definitions
- **Related Topics** - Additional relevant results (configurable, 5 default)

## Best Practices

1. **Be specific** - More specific queries get better instant answers
2. **Try variations** - If no results, rephrase your query
3. **Use for facts** - Definitions, calculations, quick lookups work best
4. **Check URL** - Always provides DuckDuckGo link for full search
5. **Use appropriate format**:
   - Terminal output: `--format text` (colored, default)
   - Documentation: `--format markdown` > file.md`
   - Logs/piping: `--format plain` or `--no-color`

## Limitations

- No full...
README
# Web Search Tool

DuckDuckGo Instant Answer API client - free web search without API keys.

## API Details

- **Endpoint**: `https://api.duckduckgo.com/`
- **Parameters**:
  - `q` - Search query (URL-encoded)
  - `format=json` - JSON response
  - `no_html=1` - Plain text (no HTML)
  - `skip_disambig=0` - Include disambiguation results

- **Documentation**: https://duckduckgo.com/api
- **Rate Limits**: None documented (be respectful)

## Response Structure

```json
{
  "Abstract": "Full text summary",
  "AbstractSource": "Wikipedia",
  "AbstractURL": "https://...",
  "Answer": "Direct answer (e.g., 4 for 2+2)",
  "AnswerType": "calc",
  "Definition": "Term definition",
  "Heading": "Result title",
  "RelatedTopics": [
    {
      "Text": "Topic description",
      "FirstURL": "https://..."
    }
  ]
}
```

## Query Types That Work Well

1. **Calculations**: `2+2`, `sqrt(144)`, `10% of 500`
2. **Definitions**: `define recursion`, `what is AI`
3. **Conversions**: `100 miles to km`, `50c to fahrenheit`
4. **Facts**: `population of Tokyo`, `who won 2024 Olympics`
5. **Wikipedia**: `quantum physics`, `French Revolution`

## Query Types That Don't Work Well

1. **Full web searches**: Use DuckDuckGo URL provided in output
2. **Recent news**: DuckDuckGo focuses on evergreen content
3. **Personal queries**: Location-specific, user-specific data
4. **Real-time data**: Stock prices, live scores, etc.

## Character Encoding

Some abstracts have Unicode issues in basic parsing (non-ASCII characters garbled).
Install `jq` for cleaner output:
```bash
sudo apt-get install jq  # Ubuntu/Debian
brew install jq          # macOS
```

## Error Handling

- Network timeout → Tool retries once, then reports error
- Empty response → Reports "No results found" with DuckDuckGo URL
- Invalid JSON → Falls back to basic grep parsing
- No curl/wget → Error message recommending installation

Related skills

OpenClaw

ai-maestro

23blocks-os

AI Agent Orchestrator with Skills System - Give AI Agents superpowers: memory search, code graph queries, agent-to-agent messaging. Manage Claude, Codex or any AI Agent from one dashboard. Move Agents between c...

OpenClaw

registry-broker-skills

hashgraph-online

AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols. Works with Claude, Codex, Cursor, OpenClaw, and any AI assistant.

OpenClaw

skills-manager

rito-w

A cross-platform skills manager for AI IDEs. Search marketplace, download locally, and install to Claude, Cursor, Windsurf, and more with one click.