apiip library
apiip
A wrapper around the apiip.net API, which provides an information lookup service for IPv4 and IPv6 addresses.
Getting started
First, obtain an access key by creating an account at https://apiip.net.
You can then use this key to access the API:
import 'package:apiip/apiip.dart';
void main() {
final client = Apiip('ACCESS_KEY', useHttps: false); // HTTPS is not available for free tier users.
print((await client.lookupSelf()).countryName);
}
Classes
- Apiip
- The client used to access the API.
- ApiipClient
-
An
ApiClient
used to make requests to the apiip.net API. - ApiResponse
-
A
Response
from anApiClient
. - CurrencyInformation
- Information about a currency.
- IpInformation
- Information about an IP address.
- LanguageInformation
- Information about a language.
- SecurityInformation
- Security information.
- SuccessApiResponse
- A successful ApiResponse, most likely with a status code between 200 and 299.
- TimeZoneInformation
- Information about a timezone.
- UserAgentInformation
- Information about a user-agent.
Enums
- Language
- A language that can be specified to control the language results are returned in.
Exceptions / Errors
- ErrorApiResponse
- An ApiResponse that represents an error.
- RateLimitedResponse
- An ApiResponse that represents a rate limited response.