Authorizations
Your Valyu API key. Get one at platform.valyu.network
Body
Search parameters for context retrieval
The query string for the search
"implementation of agentic search-enhanced large reasoning models"
Maximum number of results to return (1-20)
1 <= x <= 20
10
Type of search to perform. 'proprietary' uses Valyu's full-text multimodal indicies (arxiv/pubmed/proprietary academic content).
all
, web
, proprietary
"all"
Maximum price in dollars for a thousand retrievals (CPM)
x >= 0
30
Minimum relevance score for results (0.0-1.0)
0 <= x <= 1
0.5
List of specific sources to search (URLs, domains or dataset names). When a URL or domain path is provided (e.g., 'https://valyu.network/blog' or 'valyu.network/blog'), only that specific path will be searched. For entire domains, use either the domain name (e.g., 'valyu.network') or the base URL (e.g., 'https://valyu.network').
[
"https://docs.aws.amazon.com/",
"techcrunch.com/news",
"valyu/valyu-arxiv"
]
List of specific sources to exclude from search (URLs, domains, or dataset names). When a URL or domain path is provided (e.g., 'https://valyu.network/blog' or 'valyu.network/blog'), only that specific path will be excluded. For entire domains, use either the domain name (e.g., 'valyu.network') or the base URL (e.g., 'https://valyu.network').
[
"https://news.ycombinator.com/",
"github.com/valyu",
"valyu/valyu-pubmed"
]
Natural language category/guide phrase to help guide the search to the most relevant content. For example 'agentic use-cases
"agentic use-cases"
Controls the length of content returned per result. Can be an integer for character count or predefined values: 'short' (25k), 'medium' (50k), 'large' (100k), 'max' (full) Maximum number of characters to return per result
x >= 1
"short"
2-letter ISO country code to bias search results to a specific country
"US"
Tunes retrieval process based on whether the API is being called by an AI agent as a tool call, or a user query.
false
Start date for time-filtered searches (YYYY-MM-DD)
"2024-01-01"
End date for time-filtered searches (YYYY-MM-DD)
"2024-12-31"
Response
Successful response with search results
Whether the request was successful
true
Error message (empty if successful). Will show reason for failure or if there are an recommendations to improve the search results (e.g. 'max price too low, 5 results removed') - this can be fed to agents to assist in autonomous agentic workflows
""
Unique transaction ID for this request
"tx_12345678-1234-1234-1234-123456789abc"
The query string for the search
"implementation of agentic search-enhanced large reasoning models"
Array of search result objects. The results are sorted by relevance.
Count of results by source type
Total cost in cost per mille
150
Total cost in dollars
0.15
Total character count of all results
12500