IPGeo 1.0.0

.NET 6.0
dotnet add package IPGeo --version 1.0.0
NuGet\Install-Package IPGeo -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IPGeo" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IPGeo --version 1.0.0
#r "nuget: IPGeo, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install IPGeo as a Cake Addin
#addin nuget:?package=IPGeo&version=1.0.0

// Install IPGeo as a Cake Tool
#tool nuget:?package=IPGeo&version=1.0.0



This is a <strong>C# (.NET 6)</strong> library that provides simple means of obtaining geolocation and other IP-related data from the IP Geolocation API.


NuGet Badge


There is one <strong>asynchronous</strong> method which return an Object containing all the relevant information for a given IP addres:

GetGeoData(string ip)

Example usage

using IPGeo;

var geoController = new GeoController();
var ipData = await geoController.GetGeoData("");

if (ipData.Status == "success")
    Console.WriteLine($"The user with IP: {ipData.IP} is located in {ipData.City}, {ipData.Country}"); 
    Console.WriteLine($"The provided IP ({ipData.IP}) is invalid");

This will produce the following result:

The user with IP: is located in Montreal, Canada

The IP address used in the above example comes from IP Geolocation API's Documentation.


NuGet package to come


Copyright © 2022 Ivan Gechev.

This package has MIT license. Refer to the LICENSE for detailed information.

Questions, comments or additions

If you have a feature request or bug report, open a new Issue or send a Pull request.


If you like this project, give it a ⭐ and share it with friends!

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on IPGeo:

Package Downloads

Some Geo Utilities. Use as-is. No support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 207 4/19/2022

Initial release