Skip to main content

Crate anakin

Crate anakin 

Source
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§

AgenticSearchResult
Result of an /agentic-search call.
AgenticSource
BrowserSession
A saved browser session.
Client
Asynchronous client for the Anakin web-scraping API.
ClientBuilder
Builder for Client. All knobs have sensible defaults; the only thing you must provide is an API key (or set ANAKIN_API_KEY).
CrawlResult
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.
SearchHit
SearchResult
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.
WireResult
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.