anakin-sdk 0.1.0

Official Rust SDK for the Anakin web-scraping API. Scrape, crawl, search, and run Wire actions with internal job polling.
Documentation
//! Official Rust SDK for the Anakin web-scraping API.
//!
//! ```no_run
//! use anakin::Client;
//!
//! # async fn run() -> anakin::Result<()> {
//! let client = Client::builder().api_key("ak-...").build()?;
//! let doc = client.scrape("https://example.com").await?;
//! println!("{}", doc.markdown.unwrap_or_default());
//! # Ok(())
//! # }
//! ```
//!
//! 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.

#![warn(missing_docs)]
#![allow(missing_docs)] // descriptive types use rustdoc comments inline

mod client;
mod countries;
mod error;
mod sessions;
mod types;

pub use client::{Client, ClientBuilder, VERSION};
pub use countries::supported_countries;
pub use error::{Error, Result};
pub use sessions::Sessions;
pub use types::{
    AgenticSearchResult, AgenticSource, BrowserSession, CrawlResult, Document, MapResult,
    SearchHit, SearchResult, WireResult,
};