The Perplexity Search API returns real-time, grounded web search results.Documentation Index
Fetch the complete documentation index at: https://nvd-54.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
PerplexitySearchResults is a LangChain tool wrapper that lets agents query the API and receive a JSON array of search results.
概述
集成详情
| Class | Package | PY support | Version |
|---|---|---|---|
PerplexitySearchResults | @langchain/perplexity | ✅ |
设置
The integration lives in the@langchain/perplexity package:
凭证
Set up a Perplexity API key and set it as an environment variable namedPERPLEXITY_API_KEY:
实例化
maxResults, country, searchDomainFilter, searchRecencyFilter, searchAfterDate, and searchBeforeDate. See the Perplexity Search API parameters for details.
调用
Direct call
title, url, snippet, date, and last_updated.
Use with an agent
API 参考
有关所有PerplexitySearchResults 功能和配置的详细文档,请前往 API 参考。
将这些文档连接到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

