Want to try without writing any code? Test our search tools and see results in our AI SDK Playground.
1
Installation
Installation
Install the Valyu AI SDK package:.env file:2
Quick Start
Quick Start
Get started with web search in seconds:3
Available Search Tools
Available Search Tools
Beyond general web search, Valyu provides domain-specific tools for specialized research:- financeSearch - Stock prices, earnings, insider transactions, dividends, balance sheets, income statements, and more
- paperSearch - Full-text search of PubMed, arXiv, bioRxiv, medRxiv, and other scholarly articles
- bioSearch - Clinical trials, FDA drug labels, peer-reviewed biomedical research, PubMed, medRxiv, bioRxiv
- patentSearch - USPTO full-text patent search and related intellectual property
- secSearch - SEC filings including 10-K, 10-Q, 8-K, and regulatory disclosures
- economicsSearch - Economic indicators from BLS, FRED, World Bank, USAspending, and more
- companyResearch - Comprehensive company research and intelligence reports
webSearch
Search the web for current information, news, articles, and general content.financeSearch
Search financial data including stock prices, market data, earnings reports, and financial metrics.paperSearch
Search academic research papers, scholarly articles, and textbooks across all disciplines.bioSearch
Search biomedical literature including PubMed articles, clinical trials, and FDA drug information.patentSearch
Search patent databases for inventions, innovations, and intellectual property.secSearch
Search SEC filings including 10-K, 10-Q, 8-K, and other regulatory documents.economicsSearch
Search economic data including labor statistics, Federal Reserve data, World Bank indicators, and US federal spending.companyResearch
Generate comprehensive company intelligence reports with business overview, financials, SEC filings, news, insider activity, and citations.4
Datasources Discovery
Datasources Discovery Tools
Before searching, your AI agent can discover what data sources are available in the Valyu network. This is a tool manifest for AI agents to dynamically discover 36+ integrated data sources across research, finance, healthcare, legal, and more.datasources
List available data sources with metadata, schemas, and pricing information.datasourcesCategories
List all available categories with dataset counts.Combining Discovery with Search
Use discovery tools alongside search tools for smarter research workflows:5
Multi-Tool Search
Combine Multiple Search Tools
Use multiple search tools together for comprehensive research across domains:6
Configuration Options
7
Streaming Results
8
Create Your Own Tool
Create Your Own Tool
Want to build a custom search tool? Use the Valyu Search API directly with the Vercel AI SDKtool() function:9
Best Practices
Best Practices
System Prompting
Guide your LLM to use search tools effectively:Cost Control
Control costs with configuration options:API Key Security
- Always use environment variables for
VALYU_API_KEY - Never commit API keys to version control
- Use
.env.localfiles for local development
TypeScript Support
Full TypeScript types are included:Available Types
ValyuBaseConfig- Base configuration for all toolsValyuWebSearchConfig- Web search configurationValyuFinanceSearchConfig- Finance search configurationValyuPaperSearchConfig- Research paper search configurationValyuBioSearchConfig- Biomedical search configurationValyuPatentSearchConfig- Patent search configurationValyuSecSearchConfig- SEC filings search configurationValyuEconomicsSearchConfig- Economics search configurationValyuCompanyResearchConfig- Company research configurationValyuDatasourcesConfig- Datasources discovery configurationValyuSearchResult- Individual search resultValyuApiResponse- API response structure
Next Steps
- Valyu Platform - Get your API keys
- Valyu Documentation - Full API documentation
- Valyu Website - Learn more about Valyu
- GitHub Repository - View source code

