Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Web search using Kagi Search API. Use when you need to search the web for current information, facts, or references. Requires KAGI_API_KEY in the environment.
.claude/skills/sundial-org-kagi-search/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 28% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 640% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -8% | 0% |
> Note: The Kagi Search API is currently in beta. To request API access, email support@kagi.com. You must be a Kagi subscriber to use the API.
Web search using the Kagi Search API with a clean, readable output format.
bashexport KAGI_API_KEY="your_api_key" kagi-search "your search query" # or run directly: python3 scripts/kagi-search.py "your search query"
| Flag | Description | |------|-------------| | query | Search terms (required) | | -n, --limit | Number of results (default: 10) | | -s, --offset | Offset for pagination (default: 0) | | --json | Output raw JSON | | --no-related | Hide related searches | | -h, --help | Show help |
bash# Basic search kagi-search "python async await tutorial" # Limit results kagi-search "AI news" --limit 5 # Pagination kagi-search "recipes" --offset 10 --limit 5 # JSON for scripting kagi-search "github stars" --json | jq '.data[].url' # Hide related searches kagi-search "rust programming" --no-related
Environment:
bashexport KAGI_API_KEY="your_api_key" # Add to ~/.bashrc or ~/.zshrc for persistence
PATH access:
bash# Make executable and add to PATH chmod +x scripts/kagi-search.py cp scripts/kagi-search.py ~/.local/bin/kagi-search
KAGI_API_KEY environment variable[Query: search terms]
[Results: 5]
[API Balance: $0.123]
[Time: 45ms]
----------------------------------------
=== Result Title ===
https://example.com
Snippet text here...
[2024-01-15]
---
Related: related query 1, related query 2Other measured skills in the registry, with their headline benchmark lift.