iplookupapi-rs

Crates.ioiplookupapi-rs
lib.rsiplookupapi-rs
version0.1.0
sourcesrc
created_at2023-06-01 08:38:51.263402
updated_at2023-06-01 08:38:51.263402
descriptionAn api wrapper for iplookupapi.com
homepagehttps://github.com/everapihq/iplookupapi-rs
repositoryhttps://github.com/everapihq/iplookupapi-rs
max_upload_size
id879555
size11,334
MarTechDev (martechdev)

documentation

https://iplookupapi.com/docs

README

iplookupapi-rs: Rust geolocation service via iplookupapi.com

This package is a Rust wrapper for iplookupapi.com that aims to make the usage of the API as easy as possible in your project.

Installation

This crate is under development. Especially the response parsing needs some more testing. However, if you still want to use it, you can install it by adding this to your Cargo.toml:

[dependencies]
iplookupapi = "0.1.0"

Requirements

  1. API Key for iplookupapi.com
  2. Async runtime like tokio

Quickstart

use iplookupapi::iplookupapi;
use iplookupapi::models;

async fn request_latest() -> Result<models::DetailsResponse, iplookupapi::Error> {
    let iplookupapi_api = iplookupapi::new("<your-api-key>")?;
    let details = iplookupapi_api.info("1.1.1.1").await?;
     Ok(details)
}

Find out more about our endpoints, parameters and response data structure in the docs

License

The MIT License (MIT). Please see License File for more information.

Commit count: 1

cargo fmt