Search
Search across web and proprietary data sources
Search the web, academic journals, financial databases, and 40+ proprietary data sources. Returns ranked results with extracted content, ready for RAG pipelines and AI agents.
Results are ranked by relevance using semantic reranking (unless fast_mode is enabled). You only pay for results returned - pricing is CPM-based (cost per mille tokens).
Integrating search into an agent? Consider DeepResearch - a cost-effective autonomous agent built on top of this search engine, purpose-built for knowledge work.
post/v1/search
Request
- Base URL: https://api.valyu.ai
- URL: https://api.valyu.ai/v1/search
- Auth: API key in header X-API-Key
Request body
Example request
{
"query": "latest developments in quantum computing",
"max_num_results": 10,
"search_type": "all",
"max_price": 20,
"relevance_threshold": 0.5,
"included_sources": [
"valyu/valyu-arxiv",
"valyu/valyu-pubmed"
],
"excluded_sources": [
"reddit.com"
],
"source_biases": {
"nasa.gov": 5,
"noaa.gov": 3,
"nih.gov": 1,
"example.com": -4
},
"instructions": "Focus on oncology clinical trials from 2023 onwards",
"start_date": "2024-01-01",
"end_date": "2024-12-31",
"country_code": "US"
}Response
Search completed successfully with results.
Example response
{
"success": true,
"tx_id": "tx_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"query": "latest developments in quantum computing",
"results": [
{
"id": "https://arxiv.org/abs/2024.12345",
"title": "Quantum Computing Breakthrough: New Error Correction Method",
"url": "https://arxiv.org/abs/2024.12345",
"content": "Researchers at MIT have developed a revolutionary quantum error correction method...",
"description": "Major breakthrough in quantum error correction methodology",
"source": "web",
"price": 0.0015,
"length": 15420,
"relevance_score": 0.92,
"data_type": "unstructured",
"source_type": "website",
"publication_date": "2024-06-15",
"abstract": "Clonal hematopoiesis is associated with an increased risk of cardiovascular disease and adverse outcomes.",
"doi": "10.1038/s41586-024-07107-7",
"citation_count": 42,
"authors": [
"J. Smith",
"A. Chen"
]
}
],
"results_by_source": {
"web": 5,
"proprietary": 3
},
"total_deduction_dollars": 0.0075,
"total_characters": 45230
}Changes
No recorded changes to this operation across all 1 revision of this API.