Skip to main content

Perplexity Search Tool

Perplexity Search provides real-time web search with advanced filtering including domain, language, date range, and recency filters.

Installation

Environment Variables

Get your API key from Perplexity API Keys.

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

Using with AI SDK Directly

Filter Options

Domain Filter

Language Filter

Recency Filter

Advanced Example

Response Format

Error Handling

Best Practices

  1. Use recency filters - Get the most current information
  2. Filter by domain - Focus on authoritative sources
  3. Set language - Get results in the desired language
  4. Limit results - Start with fewer results for faster responses