anakin/lib.rs
1//! Official Rust SDK for the Anakin web-scraping API.
2//!
3//! ```no_run
4//! use anakin::Client;
5//!
6//! # async fn run() -> anakin::Result<()> {
7//! let client = Client::builder().api_key("ak-...").build()?;
8//! let doc = client.scrape("https://example.com").await?;
9//! println!("{}", doc.markdown.unwrap_or_default());
10//! # Ok(())
11//! # }
12//! ```
13//!
14//! Long-running endpoints (`scrape`, `map`, `crawl`, `agentic_search`,
15//! `wire`) poll internally — the future resolves with the final result
16//! once the job reaches a terminal status.
17
18#![warn(missing_docs)]
19#![allow(missing_docs)] // descriptive types use rustdoc comments inline
20
21mod client;
22mod countries;
23mod error;
24mod sessions;
25mod types;
26
27pub use client::{Client, ClientBuilder, VERSION};
28pub use countries::supported_countries;
29pub use error::{Error, Result};
30pub use sessions::Sessions;
31pub use types::{
32 AgenticSearchResult, AgenticSource, BrowserSession, CrawlResult, Document, MapResult,
33 SearchHit, SearchResult, WireResult,
34};