BigDataCloud Rust SDK
Official Rust SDK for BigDataCloud APIs. Strongly-typed client for IP Geolocation, Reverse Geocoding, Phone & Email Verification, and Network Engineering.
Installation
Add to your Cargo.toml:
[]
= "1.0.0"
API Key
Get a free API key at bigdatacloud.com/login. No credit card required.
Quick Start
use Client;
Confidence Area
The confidence_area field may encode multiple polygons. Use the helper:
use split_into_polygons;
let geo = client.ip_geolocation.get_with_confidence_area.unwrap;
let points = geo.confidence_area.as_deref.unwrap_or;
let polygons = split_into_polygons;
for in polygons.iter.enumerate
Available APIs
| Client | Methods |
|---|---|
client.ip_geolocation |
get, get_with_confidence_area, get_full, get_country_by_ip, get_country_info, get_all_countries, get_hazard_report, get_user_risk, get_asn_info, get_network_by_ip, get_timezone_by_iana_id, get_timezone_by_ip, parse_user_agent |
client.reverse_geocoding |
reverse_geocode, reverse_geocode_with_timezone, get_timezone_by_location |
client.verification |
validate_phone, validate_phone_by_ip, verify_email |
client.network_engineering |
get_asn_info_full, get_receiving_from, get_transit_to, get_bgp_prefixes, get_networks_by_cidr, get_asn_rank_list, get_tor_exit_nodes |
Running Examples
License
MIT — see LICENSE.