C# SDK
- Source: lavrox/SDK-IPWho-IP-Geolocation-CSharp
- NuGet id:
IPWho.Sdk(not on nuget.org yet — use the GitHub repo until it is) - API key: ipwho.org/free-plan
Targets .NET 8. Namespace: IPWho. Client: IpWhoClient.
Installation
Section titled “Installation”When NuGet is live:
dotnet add package IPWho.SdkUntil then, clone the GitHub repo and add a project reference to IPWho.Sdk.csproj.
Quick start
Section titled “Quick start”using IPWho;
var client = new IpWhoClient(Environment.GetEnvironmentVariable("IPWHO_API_KEY")!);
var resp = await client.LookupAsync("8.8.8.8"); // GET /ip/{ip}var me = await client.MeAsync(); // GET /mevar bulk = await client.BulkAsync(new List<string> { "8.8.8.8", "1.1.1.1" });