Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Tavily Web

ASecurity

Web search, content extraction, site crawling, URL discovery, and AI-powered research using Tavily API via curl. Use when user needs web search results, current events, news, finance data, content from URLs, site-wide extraction, or multi-topic research with citations. Trigger phrases: 'search the web', 'find online', 'extract from URL', 'crawl site', 'research topic', 'latest news about', 'web search', 'tavily'.

2 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentsrustgobashdebuggingapidocumentation

Works with

cursorcliapi

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add Lu1sDV/skillsmd --skill tavily-web --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tavily Web?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Tavily Web
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lu1sdv-tavily-web/badge)](https://www.skillsdirectory.com/skills/lu1sdv-tavily-web)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: tavily-web
description: "Web search, content extraction, site crawling, URL discovery, and AI-powered research using Tavily API via curl. Use when user needs web search results, current events, news, finance data, content from URLs, site-wide extraction, or multi-topic research with citations. Trigger phrases: 'search the web', 'find online', 'extract from URL', 'crawl site', 'research topic', 'latest news about', 'web search', 'tavily'."
compatibility: "Requires TAVILY_API_KEY environment variable. CLI-based (curl only, no SDK install needed)."
metadata:
  author: merged-community
  version: 2.0.0
  tags: [tavily, search, extract, crawl, research, web, news, citations, api]
---

# Tavily Web Search & Research

CLI-based web search, extraction, crawling, and research via `curl`. No SDK installation required.

## Prerequisites

- `TAVILY_API_KEY` set in environment
- Never hardcode or paste API keys into chat

## Choosing the Right Method

| Need | Method | Cost | Latency |
|------|--------|------|---------|
| Web search results | `search` | 1-2 credits | Fast |
| Content from specific URLs | `extract` | 1+ credits | Fast |
| Content from entire site | `crawl` | Variable | Slow |
| URL discovery from a site | `map` | 1 credit | Fast |
| End-to-end research with AI synthesis | `research` | Higher | Minutes |

## Quick Reference

### search — Web Search

```bash
curl -s "https://api.tavily.com/search" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "your search query here",
    "max_results": 5,
    "search_depth": "basic",
    "topic": "general"
  }'
```

**Key parameters:**

| Parameter | Values | Notes |
|-----------|--------|-------|
| `query` | string (max 400 chars) | Keep focused; split complex questions into sub-queries |
| `max_results` | 1-20 (default 5) | Start small, increase if needed |
| `search_depth` | `basic` (1 credit) / `advanced` (2 credits) | Use basic unless you need precision |
| `topic` | `general` / `news` / `finance` | Determines ranking algorithm |
| `time_range` | `day` / `week` / `month` / `year` | Filter by recency |
| `include_answer` | `true` / `"basic"` / `"advanced"` | AI-generated answer from results |
| `include_domains` | `["domain.com"]` | Restrict to specific sites |
| `exclude_domains` | `["domain.com"]` | Exclude specific sites |

See `references/search.md` for full parameter reference and optimization tips.

### extract — URL Content Extraction

```bash
curl -s "https://api.tavily.com/extract" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://example.com/page"],
    "extract_depth": "basic",
    "query": "focus on pricing info",
    "chunks_per_source": 3,
    "format": "markdown"
  }'
```

**Key parameters:**

| Parameter | Values | Notes |
|-----------|--------|-------|
| `urls` | array (max 20) | Target URLs to extract from |
| `extract_depth` | `basic` / `advanced` | Advanced handles JS-rendered pages |
| `query` | string | Focus extraction on specific content |
| `chunks_per_source` | 1-5 | Control output volume |
| `format` | `markdown` / `text` | Output format |

See `references/extract.md` for full reference.

### crawl — Site-Wide Extraction

```bash
curl -s "https://api.tavily.com/crawl" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://docs.example.com",
    "max_depth": 2,
    "max_breadth": 10,
    "limit": 20,
    "instructions": "Find API documentation pages",
    "extract_depth": "basic"
  }'
```

**Key parameters:**

| Parameter | Values | Notes |
|-----------|--------|-------|
| `url` | string | Starting URL |
| `max_depth` | integer | How many link levels deep |
| `max_breadth` | integer | Max links per page |
| `limit` | integer | Total pages to extract |
| `instructions` | string | Semantic focus for crawler |
| `select_paths` | `["/docs/*"]` | Include only matching paths |
| `exclude_paths` | `["/blog/*"]` | Skip matching paths |

See `references/crawl.md` for full reference.

### map — URL Discovery

```bash
curl -s "https://api.tavily.com/map" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://docs.example.com"
  }'
```

Returns a list of URLs found on the site. Useful as a precursor to targeted `extract` calls (Map-then-Extract pattern).

### research — AI-Powered Research

```bash
# Start research task
curl -s "https://api.tavily.com/research" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Analyze the competitive landscape for X in the SMB market",
    "model": "auto",
    "citation_format": "numbered"
  }'
# Returns: { "request_id": "..." }

# Poll for completion
curl -s "https://api.tavily.com/research/REQUEST_ID" \
  -H "Authorization: Bearer $TAVILY_API_KEY"
# Poll every 10s until status is "completed" or "failed"
```

**Model selection:** `mini` (focused queries, faster), `pro` (comprehensive, multi-topic), `auto` (let Tavily decide).

See `references/research.md` for prompting best practices and structured output schemas.

## Procedure

1. **Formulate query** — Keep under 400 chars. Split multi-part questions into 2-4 focused sub-queries.
2. **Pick topic** — `general` for most searches, `news` for current events (pair with `time_range`), `finance` for market data.
3. **Pick depth** — Start with `basic` (1 credit). Use `advanced` (2 credits) only when precision matters.
4. **Keep results small** — Default `max_results` to 5. Filter by `score` and domain trust.
5. **Two-step for full text** — Run `search` first, then `extract` on 1-3 top URLs. This is cheaper and safer than `include_raw_content`.
6. **Cite sources** — Always include `results[].url` as citations in your final answer.
7. **For deep research** — Use `research` endpoint with polling. Include `citation_format` for automatic source attribution.

## Pitfalls

| Pitfall | Mitigation |
|---------|------------|
| `include_raw_content` on search explodes output | Use two-step: `search` then `extract` |
| `search_depth` defaults may auto-upgrade to `advanced` | Set `search_depth` explicitly to control cost |
| `exact_match` is very restrictive | Wrap phrase in quotes inside `query` instead |
| `country` boosting only works with `topic: "general"` | Don't set `country` for news/finance topics |
| Crawl can be expensive on large sites | Set `limit`, `max_depth`, `max_breadth` conservatively |
| Research polling — don't poll too fast | Poll every 10 seconds, set a max wait timeout |

## Verification

Check remaining credits:
```bash
curl -s "https://api.tavily.com/usage" \
  -H "Authorization: Bearer $TAVILY_API_KEY"
```

## Troubleshooting

| Error | Cause | Fix |
|-------|-------|-----|
| 401 Unauthorized | Invalid or missing API key | Verify `TAVILY_API_KEY` is set and valid |
| 429 Too Many Requests | Rate limit exceeded | Wait and retry; check usage quota |
| Empty results | Query too narrow or restrictive | Broaden query, remove domain filters |
| Slow response on search | `advanced` depth or too many results | Reduce `max_results`, use `basic` depth |

Keep `request_id` from responses for debugging.

Attribution

Lu1sDVLu1sDV
View sourceMore from Lu1sDV →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →