Skip to main content
The Valyu Rust SDK gives you search, content extraction and DeepResearch through one type-safe, async API built on tokio and reqwest.
This SDK is in alpha. Interfaces may change between releases; check the crate version before upgrading.

Install

Authenticate

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

First call

APIs

Search

Search web and specialist sources

Contents

Extract and process web content

DeepResearch

Autonomous async research reports
For multi-step synthesis or cited reports, reach for DeepResearch. Use Search when your application should own query planning and synthesis.

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