Dart Ipify

An unofficial client library for Ipify <https://www.ipify.org/> A Simple Public IP Address API, Likewise a geographical IP address details API.

GitHub license pub package Opensource

About ipify

Using ipify is ridiculously simple. You can get your public IP directly or you can get the precise physical location of a given IP address. so if you only have as much as an IP address, you can still find out its geographical details.


  • Author: Khalil Mejdi
  • Email: khalil.mejdi
  • Status: maintained, active


This library makes getting your public IP address or the precise geographical details of a given IP address with the dart language extremely simple using Ipify's API.


  dart_ipify: ^1.0.2


Using this library is very simple. Here's a simple example:

IP Address API
import 'package:dart_ipify/dart_ipify.dart';

void main() async {
  final ipv4 = await Ipify.ipv4();
  print(ipv4); //

  final ipv6 = await Ipify.ipv64();
  print(ipv6); // or 2a00:1450:400f:80d::200e

  final ipv4json = await Ipify.ipv64(format: Format.JSON);
  print(ipv4json); //{"ip":""} or {"ip":"2a00:1450:400f:80d::200e"}

  // The response type can be text, json or jsonp
IP Geolocation API
import 'package:dart_ipify/dart_ipify.dart';

void main() async {
  final mygeo = await Ipify.geo('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx');

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

  final balance = await Ipify.balance('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx');

Change Log

All library changes, in descending order.

Version 1.1.0 (Release Mars 09, 2021)

  • Migrating to null-safety.

Version 1.0.2 (Release Oct 28, 2020)

  • Adding GeoLocation API.
  • Adding example.

Version 1.0.1 (Release Oct 22, 2020)

  • Supporting multiple platforms.
  • Documenting code.
  • Adding example.

Version 1.0.0 (Release Oct 22, 2020)

  • First release


Support for doing something awesome. [...]