BigDataCloud 1.0.0

dotnet add package BigDataCloud --version 1.0.0
                    
NuGet\Install-Package BigDataCloud -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="BigDataCloud" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BigDataCloud" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BigDataCloud" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BigDataCloud --version 1.0.0
                    
#r "nuget: BigDataCloud, 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.
#:package BigDataCloud@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BigDataCloud&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BigDataCloud&version=1.0.0
                    
Install as a Cake Tool

BigDataCloud .NET SDK

NuGet NuGet Downloads License: MIT

Official .NET SDK for BigDataCloud APIs. Strongly-typed client for IP Geolocation, Reverse Geocoding, Phone & Email Verification, Network Engineering — plus a GraphQL interface for all packages.

Installation

dotnet add package BigDataCloud

API Key

Get a free API key at bigdatacloud.com/login. No credit card required.

Store your key in the BIGDATACLOUD_API_KEY environment variable — one place, used everywhere:

# Local development
dotnet user-secrets set "BIGDATACLOUD_API_KEY" "your-key-here"

# Or as an environment variable
export BIGDATACLOUD_API_KEY=your-key-here   # macOS/Linux
set BIGDATACLOUD_API_KEY=your-key-here      # Windows

Quick Start

using BigDataCloud;

// Reads BIGDATACLOUD_API_KEY from environment — single source of truth
var client = BigDataCloudClient.FromEnvironment();

// Or pass the key directly
// var client = new BigDataCloudClient("your-key-here");

// IP Geolocation
var geo = await client.IpGeolocation.GetAsync("1.1.1.1");
Console.WriteLine($"{geo.Location?.City}, {geo.Country?.Name}");

// Full geolocation with hazard report
var full = await client.IpGeolocation.GetFullAsync("1.1.1.1");
Console.WriteLine($"Security: {full.SecurityThreat}");
Console.WriteLine($"Is Tor:   {full.HazardReport?.IsKnownAsTorServer}");

// Reverse Geocoding
var place = await client.ReverseGeocoding.ReverseGeocodeAsync(-33.87, 151.21);
Console.WriteLine($"{place.City}, {place.PrincipalSubdivision}, {place.CountryName}");

// Phone Validation
var phone = await client.Verification.ValidatePhoneAsync("+61412345678", "AU");
Console.WriteLine($"Valid: {phone.IsValid}, Type: {phone.LineType}");

// Email Verification
var email = await client.Verification.VerifyEmailAsync("user@example.com");
Console.WriteLine($"Valid: {email.IsValid}, Disposable: {email.IsDisposable}");

GraphQL

BigDataCloud is the only IP geolocation provider offering a GraphQL interface. Use the typed query builders to select exactly the fields you need — the API returns only what you ask for, keeping responses minimal and fast.

// Select only city, country flag, and confidence — nothing else is transferred
var result = await client.GraphQL.IpGeolocation.IpDataAsync("1.1.1.1", q => q
    .Locality()
    .Country(c => c.FlagEmoji())
    .Confidence());

Console.WriteLine(result.GetProperty("locality").GetProperty("city").GetString());
// → Sydney

// Reverse geocoding — city + timezone in one call
var location = await client.GraphQL.ReverseGeocoding.LocationDataAsync(-33.87, 151.21, q => q
    .Locality()
    .Country()
    .Timezone());

// Phone & Email Verification
var emailResult = await client.GraphQL.Verification.EmailVerificationAsync("user@example.com");
var phoneResult = await client.GraphQL.Verification.PhoneNumberAsync("+61412345678");

// Network Engineering — ASN with upstream providers
var asn = await client.GraphQL.NetworkEngineering.AsnInfoFullAsync("AS13335", q => q
    .BasicInfo()
    .ReceivingFrom());

For full control, send raw GraphQL queries directly:

var data = await client.GraphQL.IpGeolocation.QueryRawAsync(@"
{
    ipData(ip: ""1.1.1.1"") {
        locality { city postcode }
        country { name callingCode }
        confidence { description }
    }
}");

Each API package has its own dedicated GraphQL endpoint — IpGeolocation, ReverseGeocoding, Verification, and NetworkEngineering.

Available APIs

REST

Client Key Methods
client.IpGeolocation GetAsync, GetWithConfidenceAreaAsync, GetFullAsync, GetCountryAsync
client.ReverseGeocoding ReverseGeocodeAsync, ReverseGeocodeToCityAsync, ReverseGeocodeWithTimezoneAsync
client.Verification ValidatePhoneAsync, ValidatePhoneByIpAsync, VerifyEmailAsync
client.NetworkEngineering GetAsnInfoAsync, GetAsnInfoShortAsync, GetReceivingFromAsync, GetTransitToAsync, GetPrefixesAsync, GetNetworkByCidrAsync, GetNetworkByIpAsync, GetAsnRankListAsync, GetTorExitNodesAsync, GetCountryInfoAsync, GetCountryByIpAsync, GetHazardReportAsync, GetUserRiskAsync, GetAllCountriesAsync
client.Timezone GetByIanaIdAsync, GetByLocationAsync, GetByIpAsync
client.UserAgent ParseAsync

GraphQL

Client Key Methods
client.GraphQL.IpGeolocation IpDataAsync, CountryInfoAsync, UserAgentAsync, TimezoneInfoAsync, QueryRawAsync
client.GraphQL.ReverseGeocoding LocationDataAsync, QueryRawAsync
client.GraphQL.Verification EmailVerificationAsync, PhoneNumberAsync, QueryRawAsync
client.GraphQL.NetworkEngineering AsnInfoFullAsync, NetworkByIpAsync, InetnumAsync, IPv4AddressSpaceAsync, QueryRawAsync

Dependency Injection (.NET)

// Program.cs — register with IHttpClientFactory
builder.Services.AddHttpClient<BigDataCloudClient>((http, sp) =>
{
    http.BaseAddress = new Uri("https://api-bdc.net/data/");
    return new BigDataCloudClient(
        Environment.GetEnvironmentVariable("BIGDATACLOUD_API_KEY")!, http);
});

Error Handling

using BigDataCloud.Exceptions;

try
{
    var geo = await client.IpGeolocation.GetAsync("1.1.1.1");
}
catch (BigDataCloudException ex)
{
    Console.WriteLine($"API error {ex.StatusCode}: {ex.Message}");
}

Samples

The samples/ directory contains a runnable console project for each API package:

samples/
├── IpGeolocation/       — all IP Geolocation REST endpoints
├── ReverseGeocoding/    — all Reverse Geocoding endpoints
├── Verification/        — Phone & Email Verification
├── NetworkEngineering/  — ASN, prefixes, CIDR, Tor nodes, rank list
└── GraphQL/             — GraphQL typed builders and raw queries

Run any sample (requires BIGDATACLOUD_API_KEY to be set):

cd samples/IpGeolocation
dotnet run

Compatibility

  • .NET Standard 2.0 — compatible with .NET Framework 4.6.1+, .NET Core 2.0+, .NET 5+
  • No external dependencies beyond System.Text.Json

License

MIT — see LICENSE.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 46 4/10/2026