Crate ip_api[][src]

It's rate limited and HTTPS access is a paid feature. If the rate limiter catches you going over the 150 requests per minute you will be banned by IP until you unban yourself. You can also view overall usage statistics here.

This information is likely not exact. Take this data with a grain of salt.

Example

This example is not tested
extern crate ip_api;

use ip_api::GeoIp;

let fb = match GeoIp::new("www.facebook.com", false) {
    Err(e) => {
        eprintln!("{}", e);
        return;
    },
    Ok(geo_ip) => geo_ip
};

println!("{}", fb.country().unwrap());

Structs

GeoIp

Information about an IP address.

Enums

IpApiError