What You Can Do
- Get AI-generated answers - Not just search results, but actual responses
- Access real-time data - Information from web and proprietary sources
- Get structured outputs - Define a JSON schema for consistent, parseable responses
- Control sources - Include or exclude specific domains and datasets
Features
AI-Enhanced Search
Search results processed by AI into coherent answers.
Fast Mode
Lower latency with finance and web sources prioritised.
Structured Responses
Define JSON schemas for consistent output formats.
Source Filtering
Include or exclude specific domains, URLs, and datasets.
Date Filtering
Filter search results by date range.
Getting Started
Basic Query
Ask a question and get an AI-generated answer:Fast Mode
Use fast mode for quicker responses. Good for general queries:Search Types
| Type | What it searches | Use for |
|---|---|---|
all | Web and proprietary sources (default) | Comprehensive coverage |
web | Web only | Current events, general topics |
proprietary | Academic, financial, premium sources | Research, technical analysis |
news | News articles only | Recent news and current events |
Custom Instructions
Tell the AI how to process and format the answer:Streaming
Enable streaming to receive the answer progressively as it’s generated. The stream sends search results first, then content chunks, then metadata.Stream Chunk Types
| Type | Description |
|---|---|
search_results | Search sources found (streamed first, before answer generation) |
content | Partial answer text chunk |
metadata | Final metadata with costs, token usage, and full search results |
done | Stream completed successfully |
error | An error occurred |
Advanced Features
Source Filtering
Choose which sources to include or exclude:- Domains:
"example.com"includes/excludes the whole domain - Paths:
"https://example.com/blog"targets a specific section - Datasets:
"valyu/valyu-arxiv"uses Valyu’s proprietary datasets
Structured Output
Get responses in a specific JSON format:Date Filtering
Limit results to specific time periods:Response Format
Text Response (Default)
Structured Response
Response Fields
| Field | Description |
|---|---|
contents | The AI-generated answer (text or JSON object) |
data_type | "unstructured" (text) or "structured" (JSON) |
search_results | Search results the AI used |
search_metadata | Search transaction details |
ai_usage | Token counts |
cost | Cost breakdown (search + AI) |
Examples
Research Assistant
Market Analysis
Technical Docs
News
Best Practices
Writing Queries
- Be specific - Detailed queries get better results
- Set price limits - Balance cost with quality
- Filter sources - Focus on authoritative sources for your domain
- Use custom instructions - Guide the AI for your use case
Designing Schemas
- Keep it simple - Avoid deeply nested structures
- Mark required fields - Ensure you get essential data
- Add descriptions - Help the AI understand what you want
- Limit arrays - Use
maxItemsto control length
Managing Costs
- Track both costs - Search and AI are billed separately
- Set
data_max_price- Control search data costs - Filter sources - Exclude irrelevant ones
- Use date filters - Narrow the search scope
Error Handling
Try the Answer API
Full API reference with interactive examples

