Skip to main content

Exa Web Search Tool

Exa is a powerful semantic web search API that provides intelligent search capabilities for AI agents. It supports neural search, content filtering, and real-time web crawling.

Installation

Environment Variables

Get your API key from the Exa Dashboard.

Quick Start

1

Simple Usage

2

With Configuration

Adjust agent instructions, tool options, and provider settings for production — see the Configuration section below.

Configuration Options

Search Types

Category Filters

  • company - Company websites
  • research paper - Academic papers
  • news - News articles
  • pdf - PDF documents
  • github - GitHub repositories
  • personal site - Personal websites
  • linkedin profile - LinkedIn profiles
  • financial report - Financial documents

Advanced Example

Using with AI SDK Directly

Response Format

Best Practices

  1. Use appropriate search type - auto works well for most cases
  2. Filter by category - Narrow results for specific content types
  3. Set date ranges - Get recent or historical content as needed
  4. Use livecrawl - Get fresh content when needed
  5. Limit results - Start with fewer results and increase if needed

Error Handling