{"id":13552059,"url":"https://github.com/Bujupah/dart_ipify","last_synced_at":"2025-04-03T02:32:52.991Z","repository":{"id":47756726,"uuid":"306392183","full_name":"Bujupah/dart_ipify","owner":"Bujupah","description":"An unofficial client library ipify on dart.","archived":false,"fork":false,"pushed_at":"2021-08-30T11:49:06.000Z","size":52,"stargazers_count":23,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-01T12:26:56.578Z","etag":null,"topics":["dart","dart-ipify","flutter","geo-ip-detection","geo-location","ipify","ipify-api"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/dart_ipify","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bujupah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["bujupah"]}},"created_at":"2020-10-22T16:10:09.000Z","updated_at":"2024-07-23T11:56:26.000Z","dependencies_parsed_at":"2022-08-23T10:30:40.945Z","dependency_job_id":null,"html_url":"https://github.com/Bujupah/dart_ipify","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bujupah%2Fdart_ipify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bujupah%2Fdart_ipify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bujupah%2Fdart_ipify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bujupah%2Fdart_ipify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bujupah","download_url":"https://codeload.github.com/Bujupah/dart_ipify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222911647,"owners_count":17056714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","dart-ipify","flutter","geo-ip-detection","geo-location","ipify","ipify-api"],"created_at":"2024-08-01T12:01:58.364Z","updated_at":"2024-11-03T22:33:15.952Z","avatar_url":"https://github.com/Bujupah.png","language":"Dart","funding_links":["https://github.com/sponsors/bujupah"],"categories":["Dart"],"sub_categories":[],"readme":"# Dart Ipify\n**An unofficial client library for Ipify [*`\u003chttps://www.ipify.org/\u003e`*](https://www.ipify.org/) *A Simple Public IP Address API, Likewise a geographical IP address details API*.**\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Bujupah/dart_ipify/blob/master/LICENSE)\n[![pub package](https://img.shields.io/pub/v/dart_ipify.svg)](https://pub.dartlang.org/packages/dart_ipify) \n[![Opensource](https://img.shields.io/static/v1?label=opensource\u0026message=❤\u0026color=red)](https://github.com/bujupah/dart_ipify)\n[![Workflow](https://github.com/bujupah/dart_ipify/actions/workflows/dart.yml/badge.svg)](https://github.com/Bujupah/dart_ipify/actions)\n\n## About ipify\nUsing 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.\n\n## Meta\n- Author: Khalil Mejdi\n- Email: [khalil.mejdi](mailto:khalil.mejdi97@gmail.com)\n- Status: maintained, active\n\n## Purpose\nThis 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.\n\n## Installation\n```yaml\ndependencies:\n  dart_ipify: ^1.1.1\n```\n\n## Usage\nUsing this library is very simple. Here's a simple example:\n\n###### IP Address API\n```dart\nimport 'package:dart_ipify/dart_ipify.dart';\n\nvoid main() async {\n  final ipv4 = await Ipify.ipv4();\n  print(ipv4); // 98.207.254.136\n\n  final ipv6 = await Ipify.ipv64();\n  print(ipv6); // 98.207.254.136 or 2a00:1450:400f:80d::200e\n\n  final ipv4json = await Ipify.ipv64(format: Format.JSON);\n  print(ipv4json); //{\"ip\":\"98.207.254.136\"} or {\"ip\":\"2a00:1450:400f:80d::200e\"}\n\n  // The response type can be text, json or jsonp\n}\n```\n\n\n###### IP Geolocation API\n```dart\nimport 'package:dart_ipify/dart_ipify.dart';\n\nvoid main() async {\n  final mygeo = await Ipify.geo('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx');\n  print(mygeo.location);\n\n  final somegeo = await Ipify.geo('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx', ip: '8.8.8.8');\n  print(somegeo);\n\n  final balance = await Ipify.balance('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx');\n  print(balance);\n}\n```\n\n\n\n## Changelog\nAll library [#changes](/CHANGELOG.md), in descending order.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBujupah%2Fdart_ipify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBujupah%2Fdart_ipify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBujupah%2Fdart_ipify/lists"}