Overview
Theperplexity_search tool performs direct web searches using the Perplexity Search API. Unlike AI-powered tools, it returns raw search results without synthesis, making it perfect for discovering URLs, verifying facts, and finding recent information.
This tool returns raw search results (titles, URLs, snippets, dates) without AI interpretation. For AI-generated answers with citations, use
perplexity_ask instead.Use Cases
- Finding specific URLs or websites
- Checking recent news and events
- Verifying facts across multiple sources
- Discovering available sources on a topic
- Getting publication dates for content
Parameters
The search query string to execute.Example:
"latest advancements in quantum computing 2026"Maximum number of results to return.
- Minimum: 1
- Maximum: 20
- Default: 10
15Maximum tokens to extract from each webpage for the snippet.
- Minimum: 256
- Maximum: 2048
- Default: 1024
512ISO 3166-1 alpha-2 country code for regional search results.Use this to get results relevant to a specific geographic region.Examples:
"US", "GB", "JP", "DE"Response Format
The tool returns a formatted string containing search results:Formatted search results with each entry containing:
- Title: The page title
- URL: The full URL to the page
- Snippet: Extracted text from the page (up to
max_tokens_per_page) - Date: Publication or last modified date (if available)
Example Response
Usage Examples
Common Patterns
News Monitoring
Search for recent news and events:URL Discovery
Find official documentation or specific resources:Fact Verification
Gather multiple sources for fact-checking:Tips and Best Practices
Comparison with Other Tools
| Feature | perplexity_search | perplexity_ask |
|---|---|---|
| Output | Raw search results | AI-synthesized answer |
| Citations | All results are citations | Numbered citations in text |
| Speed | Fast | Fast |
| Best For | Finding URLs, sources | Getting direct answers |
| Processing | None (raw results) | AI interpretation |
perplexity_search is the only tool that doesn’t use an AI model. It provides direct access to search results without interpretation.Error Handling
Common errors and solutions:- Empty query: Ensure
queryparameter is a non-empty string - Invalid max_results: Must be between 1 and 20
- Invalid max_tokens_per_page: Must be between 256 and 2048
- Invalid country code: Use ISO 3166-1 alpha-2 format (2 letters)
- Network errors: Check API key and internet connectivity
Related Tools
Ask Tool
Get AI-synthesized answers with citations instead of raw search results
Research Tool
Conduct deep multi-source research with comprehensive analysis