pub struct Input {
pub country: Option<InputCountry>,
pub last_updated_after_filter: Option<String>,
pub last_updated_before_filter: Option<String>,
pub max_results: Option<NonZeroU64>,
pub max_tokens: Option<NonZeroU64>,
pub max_tokens_per_page: Option<NonZeroU64>,
pub query: InputQuery,
pub search_after_date_filter: Option<String>,
pub search_before_date_filter: Option<String>,
pub search_domain_filter: Vec<String>,
pub search_language_filter: Vec<String>,
pub search_recency_filter: Option<InputSearchRecencyFilter>,
}Expand description
Searches the web for the given query and returns a list of relevant web pages with extracted snippets and optional date metadata.
Fields§
§country: Option<InputCountry>ISO 3166-1 alpha-2 country code.
last_updated_after_filter: Option<String>Filter results to pages last updated after this value. Format not specified in source.
last_updated_before_filter: Option<String>Filter results to pages last updated before this value. Format not specified in source.
max_results: Option<NonZeroU64>Maximum number of results to return. Default: 10.
max_tokens: Option<NonZeroU64>Maximum tokens for context. Default: 10000.
max_tokens_per_page: Option<NonZeroU64>Maximum tokens per page. Default: 4096.
query: InputQuerySearch query text. Can be a single string or an array of strings.
search_after_date_filter: Option<String>Filter results to pages with dates after this value. Format not specified in source.
search_before_date_filter: Option<String>Filter results to pages with dates before this value. Format not specified in source.
search_domain_filter: Vec<String>Filter results to specific domain(s).
search_language_filter: Vec<String>Filter results by language(s).
search_recency_filter: Option<InputSearchRecencyFilter>Recency filter.