orizn 1.0.0

Official Rust SDK for the Orizn Visa API — 39,585 passport-destination pairs in 15 languages
Documentation

orizn

Official Rust SDK for the Orizn Visa API.

Check visa requirements for 39,585 passport-destination pairs in 15 languages.

Install

[dependencies]
orizn = "1"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }

Quick start

use orizn::Orizn;

#[tokio::main]
async fn main() -> Result<(), orizn::Error> {
    // No API key needed for quick checks
    let client = Orizn::new();
    let result = client.check("FRA", "JPN").await?;
    println!("{}", result.requirement); // "visa_free"

    // Full details (set ORIZN_API_KEY env or use with_key)
    let client = Orizn::with_key("your-key");
    let visa = client.get_visa("USA", "CHN", "en").await?;
    println!("{:?}", visa.documents_required);
    Ok(())
}

Links