dart_ipify 1.1.0 copy "dart_ipify: ^1.1.0" to clipboard
dart_ipify: ^1.1.0 copied to clipboard

This package uses the remote ipify web services in order to get your public IP address or geographical details from any given IP.

example/dart_ipify_example.dart

import 'package:dart_ipify/dart_ipify.dart';

// Example
void main() async {
  final ip = await Ipify.ipv64(format: Format.JSON);
  print(ip);

  final mygeo = await Ipify.geo('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx');
  print(mygeo.location);

  final somegeo =
      await Ipify.geo('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx', ip: '8.8.8.8');
  print(somegeo);

  final balance = await Ipify.balance('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx');
  print(balance);
}
168
likes
150
points
85.3k
downloads

Publisher

unverified uploader

Weekly Downloads

This package uses the remote ipify web services in order to get your public IP address or geographical details from any given IP.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on dart_ipify