Expand description
Official Rust client for the IPScanner API.
let client = ipscanner::Client::new("pk_live_...");
let result = client.ip().lookup("1.1.1.1").await?;
println!("{} {}", result.network_class, result.risk_score);
let vpn = client.ip().vpn("2001:4860:4860::8888").await?;
println!("vpn: {}", vpn.is_vpn);See https://ipscanner.io/api-documentation for the full API reference.
Re-exports§
pub use resources::BulkStream;pub use types::*;
Modules§
Structs§
- ApiError
- An error response from the API.
- Client
- An IPScanner API client. Cheap to clone; clones share one connection pool.
- Client
Builder - Builds a
Clientwith custom settings. - Rate
Limit Error - A 429 response, with the quota fields from the body and the rate-limit headers.
- Rate
Limit Headers - The
X-RateLimit-*,X-Quota-*andRetry-Afterresponse headers.
Enums§
- Error
- Errors returned by the client.
Constants§
- DEFAULT_
BASE_ URL - The default API base URL.