This guide shows how to use the Agent API’sDocumentation Index
Fetch the complete documentation index at: https://docs.perplexity.ai/llms.txt
Use this file to discover all available pages before exploring further.
search_domain_filter to restrict search results to academic and scholarly sources. You will learn how to extract paper metadata (DOIs, authors, publication dates), build citation chains across related papers, and produce properly attributed research summaries.
The
search_domain_filter parameter on the Agent API’s web_search tool controls which domains the search draws from. By filtering to academic domains like arxiv.org, nature.com, and .edu, you restrict results to peer-reviewed journals, preprint servers, and academic databases. For more on filtering, see the Agent API Filters docs.Prerequisites
Install the Perplexity SDK:Get your Perplexity API Key
Navigate to the API Keys tab in the API Portal and generate a new key.
Basic Academic Search
Usesearch_domain_filter to restrict the Agent API’s web_search tool to academic sources only.
Extracting Paper Metadata
Use structured outputs to extract detailed paper metadata from academic search results.Building Citation Chains
Trace how papers cite each other to understand the evolution of an idea across the literature.Research Summary with Attribution
Generate a research summary that properly attributes each claim to its source paper.Multi-Field Academic Search
Use field-specific domain filters to search across different academic disciplines.Tips and Best Practices
-
Use
search_domain_filterwith academic domains to restrict results to peer-reviewed sources. Target domains likearxiv.org,nature.com,pubmed.ncbi.nlm.nih.gov, and.edu. -
Use
instructionsto guide academic focus. Tell the model to prioritize peer-reviewed papers, cite authors and years, and focus on specific fields. - Use field-specific domain lists to narrow results to specific publishers or databases (e.g., PubMed for biomedical, arXiv for CS).
- Use structured outputs for metadata extraction. JSON schemas ensure consistent paper metadata across queries.
- Request specific details in your prompt. Ask for “authors, year, journal, and key findings” to get more complete metadata in the response.
-
Combine
search_domain_filterwithsearch_recency_filterfor time-sensitive research. Use"week","month", or"year"to find recent publications.
Next Steps
Agent API Filters
Full reference for domain, recency, and location filters on the Agent API.
Structured Outputs
Extract typed JSON for paper metadata and research findings.
Domain Filtering
Control which domains the search includes or excludes.
Migration Guide
Migrate from Sonar to the Agent API for multi-provider access and tools.