Official .NET client for ipdata.info — a free, fast IP geolocation, ASN, and threat-intelligence API. Look up country, city, ASN, timezone, currency, and security flags (proxy/VPN/Tor/hosting) for any IPv4 or IPv6 address. Powered by ipdata.info.
The public endpoint is free — 50 requests/min, no signup, no key. For higher rate limits and batch lookups, create a free API key at ipdata.info/register and manage it in your dashboard.
dotnet add package IPDataInfo.Sdk
using IPDataInfo;
using var client = new IPDataClient(); // free tier; or new IPDataClient(apiKey: "KEY")
var info = await client.LookupAsync("8.8.8.8");
Console.WriteLine($"{info.City}, {info.Country} ({info.AsnOrg})"); // Mountain View, United States (Google LLC)| Method | What it returns |
|---|---|
LookupAsync(ip?) |
Full geolocation record (own IP if ip omitted) |
GeoAsync(ip) |
Geo subset (city/region/country/lat/lon/tz) |
AsnAsync(ip) |
ASN + ISP/registry for an IP |
BatchAsync(ips) |
Many IPs at once (requires an API key) |
AsnDetailAsync(n) |
ASN detail incl. prefixes |
AsnWhoisHistoryAsync(n) |
ASN whois history |
AsnChangesAsync() |
ASN change feed |
ThreatDomainAsync/ThreatHashAsync/ThreatUrlAsync(x) |
Threat-intel lookup (domain / file hash / URL) |
Full response schema: ipdata.info API docs · SDK list.
new IPDataClient(
apiKey: "KEY", // sent as X-Api-Key; switches to pro.ipdata.info
baseUrl: "https://ipdata.info", // override the host
httpClient: customHttpClient, // bring your own HttpClient (proxy, handlers, ...)
timeout: TimeSpan.FromSeconds(5)); // ignored when httpClient is suppliedErrors from non-2xx responses are thrown as IPDataInfo.IpDataException with
StatusCode and Message.
- Free (
ipdata.info): 50 req/min, no key. - Paid (
pro.ipdata.info): higher limits +BatchAsync, with an API key.
12 official SDKs — see the full list at ipdata.info/docs/sdks: Python, Node.js, Go, PHP, Java, Rust, .NET, Kotlin, Swift, Dart, Bash, Objective-C.
MIT © ipdata.info