orizn
Official Rust SDK for the Orizn Visa API.
Check visa requirements for 39,585 passport-destination pairs in 15 languages.
Install
[]
= "1"
= { = "1", = ["macros", "rt-multi-thread"] }
Quick start
use Orizn;
async
Official Rust SDK for the Orizn Visa API.
Check visa requirements for 39,585 passport-destination pairs in 15 languages.
[dependencies]
orizn = "1"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
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(())
}