The Rust SDK is in alpha. Interfaces may change between releases; check the crate version before upgrading.
Basic usage
response.success and response.urls_failed before using the returned content, and handle missing content values. Extraction depends on page access and layout; a subscription does not guarantee access to an arbitrary paywalled URL.
Common patterns
with_extract_effort("high") for JS-heavy pages, and with_response_length ("short" 25k, "medium" 50k, "large" 100k, "max") or with_custom_response_length(i32) to control content per URL.
For arXiv, PubMed Central, bioRxiv, medRxiv, and ChemRxiv papers, Valyu serves clean processed markdown (with figures and equations) from its academic index when your plan covers the source - otherwise it uses the live crawler. Pass the paper URL (a
/pdf/ arXiv link or a DOI works best) or bare id. See Academic Papers.Reference
Builder methods
Builder methods
urls (Vec<String>, required) - URLs to process (max 10).Response format
Response format
Error handling
Error handling