IP API Client
The client (based on ip-api.com api) allows you to get information about the IP address
Usage
Add to project
[]
= "0.6.0"
= { = "1.44.2", = ["macros", "rt-multi-thread"], = false }
Write some Rust
use ip_api_client as Client;
use ;
async
Peculiarities
- We use
as_field
instead ofas
(As stated in the ip-api.com API documentation) since it is a strict keyword in rust, such aspub
,impl
orstruct
.
Development Progress
- Request IP address information with a configuration structure that allows you to customize the requested fields in the request to save traffic.
- Get information about Ip in different languages
- Query multiple IP addresses in one HTTP request.
- Block all requests until the end of the limit if the last request was rate-limited.
- Ability to cache all responses with automatic removal of old ip-data when the maximum cache size is reached.
License
This library (ip-api-client) is available under the MIT license. See the LICENSE file for more info.