Expand description
Official Rust SDK for the Anakin web-scraping API.
use anakin::Client;
let client = Client::builder().api_key("ak-...").build()?;
let doc = client.scrape("https://example.com").await?;
println!("{}", doc.markdown.unwrap_or_default());Long-running endpoints (scrape, map, crawl, agentic_search,
wire) poll internally — the future resolves with the final result
once the job reaches a terminal status.
Structs§
- Agentic
Search Result - Result of an /agentic-search call.
- Agentic
Source - Browser
Session - A saved browser session.
- Client
- Asynchronous client for the Anakin web-scraping API.
- Client
Builder - Builder for
Client. All knobs have sensible defaults; the only thing you must provide is an API key (or setANAKIN_API_KEY). - Crawl
Result - Result of a /crawl call: a batch of scraped pages.
- Document
- Result of a successful scrape.
- MapResult
- Result of a /map call: discovered links for a domain.
- Search
Hit - Search
Result - Result of a synchronous /search call.
- Sessions
- Browser-session management. Saved sessions can be replayed via the /v1/browser-connect CDP endpoint to skip re-login flows.
- Wire
Result - Result of a Wire (Holocron) action execution.
Enums§
- Error
- All errors returned by the Anakin SDK. Match on a specific variant to
react to a particular failure mode (e.g.
Error::InsufficientCredits), or treat the enum as opaque for a generic fallback.
Constants§
- VERSION
- SDK version baked into the User-Agent header.
Functions§
- supported_
countries - Bundled list of supported geo-targeting countries — returned offline so callers can populate UI dropdowns without a network round-trip.
Type Aliases§
- Result
- Convenient alias used throughout the crate.