🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Web Search via SearXNG

by @simoncatbot

Search the web using SearXNG meta-search engine. Use when the user wants to search the web, find current information, look up facts, news, or any query that...

Versionv1.0.0
πŸ’‘ Examples

CLI

# Basic search
python scripts/search.py "python async tutorial"

Limit results

python scripts/search.py "machine learning" --limit 5

Specific category

python scripts/search.py "breaking news" --category news

Time range

python scripts/search.py "tech announcements" --time week

Specific engines

python scripts/search.py "wikipedia python" --engines wikipedia

JSON output

python scripts/search.py "docker tutorial" --json

Python API

from searxng import SearXNGClient

Initialize

client = SearXNGClient()

Search

results = client.search("quantum computing")

Access results

for result in results["results"]: print(f"{result['title']}: {result['url']}")

Search with options

results = client.search( query="AI safety", category="news", time_range="month", limit=5 )

βš™οΈ Configuration

Edit config/searxng.yaml:

# SearXNG instance URL

Use public instance or your own

base_url: "https://searx.be" # or your local instance

Default search settings

defaults: language: "en-US" safesearch: 0 # 0 = off, 1 = moderate, 2 = strict time_range: "" # day, week, month, year results_per_page: 10

Preferred engines (optional)

engines: - google - duckduckgo - bing - brave - wikipedia

Categories

categories: general: "general" news: "news" images: "images" videos: "videos" files: "files"

πŸ“‹ Tips & Best Practices

"Connection refused"

# Check if SearXNG instance is reachable
curl https://your-searx-instance/healthz

"No results"

  • Try different engines: --engines google,duckduckgo
  • Check category: --category general
  • Verify instance isn't rate-limiting you
  • "Rate limited"

  • Add delay between requests
  • Use different SearXNG instance
  • Self-host your own instance
  • View on ClawHub
    TERMINAL
    clawhub install web-search-searxng

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’