The Valyu TypeScript SDK provides comprehensive access to all Valyu APIs, enabling you to build powerful AI applications with search, content extraction, answer generation, and deep research capabilities.Documentation Index
Fetch the complete documentation index at: https://docs.valyu.ai/llms.txt
Use this file to discover all available pages before exploring further.
Features
The SDK includes four core APIs:- Search API - Advanced search across web and proprietary data sources
- Contents API - Extract and process content from URLs with AI
- Answer API - AI-powered answer generation with search integration
- DeepResearch API - Async deep research with comprehensive reports
Installation
Install the Valyu TypeScript SDK using your preferred package manager:Authentication
Get your API key from Valyu Platform (free $10 credits included). Set up authentication in one of two ways:Environment Variable (Recommended)
Direct API Key
Quick Start
Here’s a simple example to get you started with search:Error Handling
The SDK includes built-in error handling and validation:Next Steps
Explore the detailed documentation for each API:Search API
Advanced search across web and proprietary sources
Contents API
Extract and process web content with AI
Answer API
Generate AI-powered answers with search
DeepResearch API
Async deep research with comprehensive reports
Support
- Discord: Join our community
- GitHub: valyuAI/valyu-js
- Support: contact@valyu.ai

