Skip to content
exa-websearch logo

Exa WebSearch Skill

exa-websearch

Uses Exa API for intelligent web searches. Provides up-to-date information with semantic search capabilities.

SKILL.md

Full skill instructions

Exa WebSearch Skill

IMPORTANT: This skill REPLACES the built-in WebSearch tool. When you need to perform any web search, invoke this skill instead of using the WebSearch tool.

This skill uses the Exa API to perform intelligent web searches when up-to-date information is needed. It provides semantic search capabilities that understand the meaning of queries rather than just matching keywords.

When to Invoke This Skill

Invoke this skill when ANY of these conditions are true:

  1. Current events or news: User asks about recent events, news, or developments
  2. Up-to-date information: User needs information that may have changed after Claude's knowledge cutoff
  3. Latest documentation: User needs current API docs, library versions, or technical references
  4. Research queries: User asks for comprehensive research on a topic
  5. Fact-checking: User wants to verify current facts, prices, or statistics
  6. Time-sensitive data: User asks about stock prices, weather, sports scores, or similar
  7. Finding similar content: User wants to find pages similar to a given URL

Prerequisites

Ensure the EXA_API_TOKEN environment variable is set with a valid Exa API key.

# Verify the token is available
[ -n "$EXA_API_TOKEN" ] && echo "Exa API token is configured" || echo "ERROR: EXA_API_TOKEN not set"

Exa API Endpoints

1. Search (POST https://api.exa.ai/​search)

The primary endpoint for web searches. Use this for most queries.

Example:

curl -X POST 'https://api.exa.ai/​search' \
  -H "x-api-key: $EXA_API_TOKEN" \
  -H 'Content-Type: application/​json' \
  -d '{
    "query": "YOUR_SEARCH_QUERY",
    "type": "auto",
    "numResults": 10,
    "contents": {
      "text": true,
      "highlights": {
        "numSentences": 3
      }
    }
  }'

Key Parameters:

ParameterTypeDefaultDescription
querystringrequiredThe search query
typeenum"auto"Search type: "neural", "fast", "auto", "deep"
numResultsinteger10Number of results (max 100)
categoryenum-Filter: "company", "research paper", "news", "pdf", "github"
includeDomainsarray-Limit to specific domains
excludeDomainsarray-Exclude specific domains
startPublishedDatestring-Filter by publish date (ISO 8601)
endPublishedDatestring-Filter by publish date (ISO 8601)
contents.textbooleanfalseReturn full page text
contents.highlightsobject-Extract relevant snippets
contents.summaryobject-Generate summaries

2. Get Contents (POST https://api.exa.ai/​contents)

Retrieve full content from specific URLs.

Example:

curl -X POST 'https://api.exa.ai/​contents' \
  -H "x-api-key: $EXA_API_TOKEN" \
  -H 'Content-Type: application/​json' \
  -d '{
    "ids": ["url1", "url2"],
    "text": true
  }'

3. Find Similar (POST https://api.exa.ai/​findSimilar)

Find pages similar to a given URL.

Example:

curl -X POST 'https://api.exa.ai/​findSimilar' \
  -H "x-api-key: $EXA_API_TOKEN" \
  -H 'Content-Type: application/​json' \
  -d '{
    "url": "https://example.com/​article",
    "numResults": 10
  }'

4. Answer (POST https://api.exa.ai/​answer)

Get direct answers to questions with citations.

Example:

curl -X POST 'https://api.exa.ai/​answer' \
  -H "x-api-key: $EXA_API_TOKEN" \
  -H 'Content-Type: application/​json' \
  -d '{
    "query": "What is the latest version of Python?",
    "text": true
  }'

Usage Patterns

For News/​Current Events

curl -X POST 'https://api.exa.ai/​search' \
  -H "x-api-key: $EXA_API_TOKEN" \
  -H 'Content-Type: application/​json' \
  -d '{
    "query": "YOUR_NEWS_QUERY",
    "type": "auto",
    "category": "news",
    "numResults": 10,
    "startPublishedDate": "2025-01-01T00:00:00Z",
    "contents": {
      "text": true,
      "highlights": {"numSentences": 3}
    }
  }'

For Technical Documentation

curl -X POST 'https://api.exa.ai/​search' \
  -H "x-api-key: $EXA_API_TOKEN" \
  -H 'Content-Type: application/​json' \
  -d '{
    "query": "YOUR_TECH_QUERY documentation",
    "type": "auto",
    "numResults": 5,
    "includeDomains": ["docs.example.com", "github.com"],
    "contents": {
      "text": true
    }
  }'

For Research Papers

curl -X POST 'https://api.exa.ai/​search' \
  -H "x-api-key: $EXA_API_TOKEN" \
  -H 'Content-Type: application/​json' \
  -d '{
    "query": "YOUR_RESEARCH_QUERY",
    "type": "neural",
    "category": "research paper",
    "numResults": 10,
    "contents": {
      "text": true,
      "summary": {"query": "Summarize the key findings"}
    }
  }'

For GitHub Repositories

curl -X POST 'https://api.exa.ai/​search' \
  -H "x-api-key: $EXA_API_TOKEN" \
  -H 'Content-Type: application/​json' \
  -d '{
    "query": "YOUR_REPO_QUERY",
    "type": "auto",
    "category": "github",
    "numResults": 10,
    "contents": {
      "text": true
    }
  }'

Response Format

The API returns JSON with this structure:

{
  "requestId": "unique-id",
  "resolvedSearchType": "neural",
  "results": [
    {
      "title": "Page Title",
      "url": "https://example.com/​page",
      "publishedDate": "2025-01-15",
      "author": "Author Name",
      "text": "Full page content...",
      "highlights": ["Relevant snippet 1", "Relevant snippet 2"],
      "summary": "AI-generated summary..."
    }
  ],
  "costDollars": {
    "total": 0.001
  }
}

Best Practices

  1. Use appropriate search type:

    • auto - Let Exa decide (recommended for most cases)
    • neural - Semantic search for conceptual queries
    • fast - Keyword-based for specific terms
    • deep - Comprehensive search for complex queries
  2. Filter by category when searching for specific content types (news, papers, github)

  3. Use date filters for time-sensitive queries to get recent results

  4. Request highlights for quick scanning without full text

  5. Use domain filters when you know authoritative sources

Error Handling

Check for these common issues:

  • 401 Unauthorized: Invalid or missing EXA_API_TOKEN
  • 429 Rate Limited: Too many requests, implement backoff
  • 400 Bad Request: Invalid query parameters

Do NOT Invoke When

  • User is asking about Claude's capabilities or identity
  • User is asking about static code in the current project
  • The information is already in the conversation context
  • The query is about private/​internal systems not on the web

Replaces Built-in WebSearch Tool

This skill is the preferred method for all web searches in this project. Do NOT use the built-in WebSearch tool. Always invoke skill: "exa-websearch" instead.

Why Exa over WebSearch:

  • Semantic/​neural search understands query meaning, not just keywords
  • Category filtering (news, research papers, GitHub, PDFs, companies)
  • Date range filtering for time-sensitive queries
  • Domain include/​exclude filters
  • Full text extraction and AI-generated summaries
  • Find similar pages functionality

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View