Skip to main content
The Valyu Rust SDK gives you search, content extraction, answers, and deep research through one type-safe, async API built on tokio and reqwest.
This SDK is in alpha. The API is stable, but some interfaces may change based on feedback.

Paste into your AI coding assistant to add the Valyu Rust SDK and make your first search call.

Open in Cursor

Install

Authenticate

Get your API key from the Valyu Platform ($10 free credits, $20 with a work email).
For local development, load .env with the dotenvy crate (dotenvy::dotenv().ok();) before reading the variable.

First call

APIs

Search

Search web and proprietary sources

Contents

Extract and process web content

Answer

Generate cited answers from search

DeepResearch

Autonomous async research reports
For multi-step synthesis or cited reports, reach for DeepResearch - a cost-effective autonomous agent built on the Valyu search engine - rather than hand-rolling a search loop.

Error handling and custom clients

Errors surface as ValyuError variants (InvalidApiKey, RateLimitExceeded, ServiceUnavailable, InvalidRequest(msg)). To configure timeouts or other HTTP settings, build your own reqwest::Client and pass it in:

Support