Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

IP2Location.io

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

IP2Location.io

IP2Location.io .NET SDK allows user to query for an enriched data set based on IP address and provides WHOIS lookup api that helps users to obtain domain information.

Source
nugetNuGet
Version
1.1.1
Version published
Maintainers
1
Created
Source

IP2Location.io .NET SDK

This .NET library enables user to query for an enriched data set, such as country, region, city, latitude & longitude, ZIP code, time zone, ASN, ISP, domain, net speed, IDD code, area code, weather station data, MNC, MCC, mobile brand, elevation, usage type, address type, advertisement category, fraud score and proxy data with an IP address. It supports both IPv4 and IPv6 address lookup.

In addition, this module provides WHOIS lookup api that helps users to obtain domain information, WHOIS record, by using a domain name. The WHOIS API returns a comprehensive WHOIS data such as creation date, updated date, expiration date, domain age, the contact information of the registrant, mailing address, phone number, email address, nameservers the domain is using and much more.

There is also a Hosted Domain API that allowing users to get the list of hosted domain names by IP address in real time. The REST API supports both IPv4 and IPv6 address lookup.

This module requires API key to function. You may sign up for a free API key at https://www.ip2location.io/pricing.

Pre-requisite

Microsoft Visual Studio 2022 or later.

Installation

https://www.nuget.org/packages/IP2Location.io

Usage Example

Lookup IP Address Geolocation Data

using Newtonsoft.Json;
using IP2LocationIOComponent;

// Configures IP2Location.io API key
Configuration Config = new()
{
	ApiKey = "YOUR_API_KEY"
};

IPGeolocation IPL = new(Config);
string IP = "8.8.8.8";
string Lang = "en"; // the language param is only available with Plus and Security plans

// Lookup ip address geolocation data
var MyTask = IPL.Lookup(IP, Lang); // async API call

try
{
	var MyObj = MyTask.Result;

	// pretty-print JSON
	Console.WriteLine(JsonConvert.SerializeObject(MyObj, Formatting.Indented));

	// individual fields
	Console.WriteLine("ip: {0}", MyObj["ip"]);
	Console.WriteLine("country_code: {0}", MyObj["country_code"]);
	Console.WriteLine("country_name: {0}", MyObj["country_name"]);
	Console.WriteLine("region_name: {0}", MyObj["region_name"]);
	Console.WriteLine("city_name: {0}", MyObj["city_name"]);
	Console.WriteLine("latitude: {0}", MyObj["latitude"]);
	Console.WriteLine("longitude: {0}", MyObj["longitude"]);
	Console.WriteLine("zip_code: {0}", MyObj["zip_code"]);
	Console.WriteLine("time_zone: {0}", MyObj["time_zone"]);
	Console.WriteLine("asn: {0}", MyObj["asn"]);
	Console.WriteLine("as: {0}", MyObj["as"]);
	if (MyObj["isp"] != null) Console.WriteLine("isp: {0}", MyObj["isp"]);
	if (MyObj["domain"] != null) Console.WriteLine("domain: {0}", MyObj["domain"]);
	if (MyObj["net_speed"] != null) Console.WriteLine("net_speed: {0}", MyObj["net_speed"]);
	if (MyObj["idd_code"] != null) Console.WriteLine("idd_code: {0}", MyObj["idd_code"]);
	if (MyObj["area_code"] != null) Console.WriteLine("area_code: {0}", MyObj["area_code"]);
	if (MyObj["weather_station_code"] != null) Console.WriteLine("weather_station_code: {0}", MyObj["weather_station_code"]);
	if (MyObj["weather_station_name"] != null) Console.WriteLine("weather_station_name: {0}", MyObj["weather_station_name"]);
	if (MyObj["mcc"] != null) Console.WriteLine("mcc: {0}", MyObj["mcc"]);
	if (MyObj["mnc"] != null) Console.WriteLine("mnc: {0}", MyObj["mnc"]);
	if (MyObj["mobile_brand"] != null) Console.WriteLine("mobile_brand: {0}", MyObj["mobile_brand"]);
	if (MyObj["elevation"] != null) Console.WriteLine("elevation: {0}", MyObj["elevation"]);
	if (MyObj["usage_type"] != null) Console.WriteLine("usage_type: {0}", MyObj["usage_type"]);
	if (MyObj["address_type"] != null) Console.WriteLine("address_type: {0}", MyObj["address_type"]);
	if (MyObj["district"] != null) Console.WriteLine("district: {0}", MyObj["district"]);
	if (MyObj["ads_category"] != null) Console.WriteLine("ads_category: {0}", MyObj["ads_category"]);
	if (MyObj["ads_category_name"] != null) Console.WriteLine("ads_category_name: {0}", MyObj["ads_category_name"]);
	Console.WriteLine("is_proxy: {0}", MyObj["is_proxy"]);
	if (MyObj["fraud_score"] != null) Console.WriteLine("fraud_score: {0}", MyObj["fraud_score"]);

	if (MyObj["continent"] != null)
	{
		var Continent = MyObj["continent"];
		Console.WriteLine("continent => name: {0}", Continent["name"]);
		Console.WriteLine("continent => code: {0}", Continent["code"]);
		Console.WriteLine("continent => hemisphere: {0}", Continent["hemisphere"]);
		Console.WriteLine("continent => translation => lang: {0}", Continent["translation"]["lang"]);
		Console.WriteLine("continent => translation => value: {0}", Continent["translation"]["value"]);
	}

	if (MyObj["country"] != null)
	{
		var Country = MyObj["country"];
		Console.WriteLine("country => name: {0}", Country["name"]);
		Console.WriteLine("country => alpha3_code: {0}", Country["alpha3_code"]);
		Console.WriteLine("country => numeric_code: {0}", Country["numeric_code"]);
		Console.WriteLine("country => demonym: {0}", Country["demonym"]);
		Console.WriteLine("country => flag: {0}", Country["flag"]);
		Console.WriteLine("country => capital: {0}", Country["capital"]);
		Console.WriteLine("country => total_area: {0}", Country["total_area"]);
		Console.WriteLine("country => population: {0}", Country["population"]);
		Console.WriteLine("country => tld: {0}", Country["tld"]);

		Console.WriteLine("country => currency => code: {0}", Country["currency"]["code"]);
		Console.WriteLine("country => currency => name: {0}", Country["currency"]["name"]);
		Console.WriteLine("country => currency => symbol: {0}", Country["currency"]["symbol"]);

		Console.WriteLine("country => language => code: {0}", Country["language"]["code"]);
		Console.WriteLine("country => language => name: {0}", Country["language"]["name"]);

		Console.WriteLine("country => translation => lang: {0}", Country["translation"]["lang"]);
		Console.WriteLine("country => translation => value: {0}", Country["translation"]["value"]);
	}

	if (MyObj["region"] != null)
	{
		var Region = MyObj["region"];
		Console.WriteLine("region => name: {0}", Region["name"]);
		Console.WriteLine("region => code: {0}", Region["code"]);

		Console.WriteLine("region => translation => lang: {0}", Region["translation"]["lang"]);
		Console.WriteLine("region => translation => value: {0}", Region["translation"]["value"]);
	}

	if (MyObj["city"] != null)
	{
		var City = MyObj["city"];
		Console.WriteLine("city => name: {0}", City["name"]);

		Console.WriteLine("city => translation => lang: {0}", City["translation"]["lang"]);
		Console.WriteLine("city => translation => value: {0}", City["translation"]["value"]);
	}

	if (MyObj["time_zone_info"] != null)
	{
		var TimeZone = MyObj["time_zone_info"];
		Console.WriteLine("time_zone_info => olson: {0}", TimeZone["olson"]);
		Console.WriteLine("time_zone_info => current_time: {0}", TimeZone["current_time"]);
		Console.WriteLine("time_zone_info => gmt_offset: {0}", TimeZone["gmt_offset"]);
		Console.WriteLine("time_zone_info => is_dst: {0}", TimeZone["is_dst"]);
		Console.WriteLine("time_zone_info => sunrise: {0}", TimeZone["sunrise"]);
		Console.WriteLine("time_zone_info => sunset: {0}", TimeZone["sunset"]);
	}

	if (MyObj["geotargeting"] != null)
	{
		var GeoTarget = MyObj["geotargeting"];
		Console.WriteLine("geotargeting => metro: {0}", GeoTarget["metro"]);
	}

	if (MyObj["proxy"] != null)
	{
		var Proxy = MyObj["proxy"];
		Console.WriteLine("proxy => last_seen: {0}", Proxy["last_seen"]);
		Console.WriteLine("proxy => proxy_type: {0}", Proxy["proxy_type"]);
		Console.WriteLine("proxy => threat: {0}", Proxy["threat"]);
		Console.WriteLine("proxy => provider: {0}", Proxy["provider"]);
		Console.WriteLine("proxy => is_vpn: {0}", Proxy["is_vpn"]);
		Console.WriteLine("proxy => is_tor: {0}", Proxy["is_tor"]);
		Console.WriteLine("proxy => is_data_center: {0}", Proxy["is_data_center"]);
		Console.WriteLine("proxy => is_public_proxy: {0}", Proxy["is_public_proxy"]);
		Console.WriteLine("proxy => is_web_proxy: {0}", Proxy["is_web_proxy"]);
		Console.WriteLine("proxy => is_web_crawler: {0}", Proxy["is_web_crawler"]);
		Console.WriteLine("proxy => is_residential_proxy: {0}", Proxy["is_residential_proxy"]);
		Console.WriteLine("proxy => is_spammer: {0}", Proxy["is_spammer"]);
		Console.WriteLine("proxy => is_scanner: {0}", Proxy["is_scanner"]);
		Console.WriteLine("proxy => is_botnet: {0}", Proxy["is_botnet"]);
		Console.WriteLine("proxy => is_consumer_privacy_network: {0}", Proxy["is_consumer_privacy_network"]);
		Console.WriteLine("proxy => is_enterprise_private_network: {0}", Proxy["is_enterprise_private_network"]);
	}
}
catch (Exception ex)
{
	Console.WriteLine(ex.Message);
}

Lookup Domain Information

using Newtonsoft.Json;
using IP2LocationIOComponent;

// Configures IP2Location.io API key
Configuration Config = new()
{
	ApiKey = "YOUR_API_KEY"
};

DomainWhois Whois = new(Config);
string domain = "example.com";

// Lookup domain information
var MyTask = Whois.Lookup(domain); // async API call

try
{
	var MyObj = MyTask.Result;

	// pretty-print JSON
	Console.WriteLine(JsonConvert.SerializeObject(MyObj, Formatting.Indented));

	// individual fields
	Console.WriteLine("domain: {0}", MyObj["domain"]);
	Console.WriteLine("domain_id: {0}", MyObj["domain_id"]);
	Console.WriteLine("status: {0}", MyObj["status"]);
	Console.WriteLine("create_date: {0}", MyObj["create_date"]);
	Console.WriteLine("update_date: {0}", MyObj["update_date"]);
	Console.WriteLine("expire_date: {0}", MyObj["expire_date"]);
	Console.WriteLine("domain_age: {0}", MyObj["domain_age"]);
	Console.WriteLine("whois_server: {0}", MyObj["whois_server"]);

	var Registrar = MyObj["registrar"];
	Console.WriteLine("registrar => iana_id: {0}", Registrar["iana_id"]);
	Console.WriteLine("registrar => name: {0}", Registrar["name"]);
	Console.WriteLine("registrar => url: {0}", Registrar["url"]);

	var Registrant = MyObj["registrant"];
	Console.WriteLine("registrant => name: {0}", Registrant["name"]);
	Console.WriteLine("registrant => organization: {0}", Registrant["organization"]);
	Console.WriteLine("registrant => street_address: {0}", Registrant["street_address"]);
	Console.WriteLine("registrant => city: {0}", Registrant["city"]);
	Console.WriteLine("registrant => region: {0}", Registrant["region"]);
	Console.WriteLine("registrant => zip_code: {0}", Registrant["zip_code"]);
	Console.WriteLine("registrant => country: {0}", Registrant["country"]);
	Console.WriteLine("registrant => phone: {0}", Registrant["phone"]);
	Console.WriteLine("registrant => fax: {0}", Registrant["fax"]);
	Console.WriteLine("registrant => email: {0}", Registrant["email"]);

	var Admin = MyObj["admin"];
	Console.WriteLine("admin => name: {0}", Admin["name"]);
	Console.WriteLine("admin => organization: {0}", Admin["organization"]);
	Console.WriteLine("admin => street_address: {0}", Admin["street_address"]);
	Console.WriteLine("admin => city: {0}", Admin["city"]);
	Console.WriteLine("admin => region: {0}", Admin["region"]);
	Console.WriteLine("admin => zip_code: {0}", Admin["zip_code"]);
	Console.WriteLine("admin => country: {0}", Admin["country"]);
	Console.WriteLine("admin => phone: {0}", Admin["phone"]);
	Console.WriteLine("admin => fax: {0}", Admin["fax"]);
	Console.WriteLine("admin => email: {0}", Admin["email"]);

	var Tech = MyObj["tech"];
	Console.WriteLine("tech => name: {0}", Tech["name"]);
	Console.WriteLine("tech => organization: {0}", Tech["organization"]);
	Console.WriteLine("tech => street_address: {0}", Tech["street_address"]);
	Console.WriteLine("tech => city: {0}", Tech["city"]);
	Console.WriteLine("tech => region: {0}", Tech["region"]);
	Console.WriteLine("tech => zip_code: {0}", Tech["zip_code"]);
	Console.WriteLine("tech => country: {0}", Tech["country"]);
	Console.WriteLine("tech => phone: {0}", Tech["phone"]);
	Console.WriteLine("tech => fax: {0}", Tech["fax"]);
	Console.WriteLine("tech => email: {0}", Tech["email"]);

	var Billing = MyObj["billing"];
	Console.WriteLine("billing => name: {0}", Billing["name"]);
	Console.WriteLine("billing => organization: {0}", Billing["organization"]);
	Console.WriteLine("billing => street_address: {0}", Billing["street_address"]);
	Console.WriteLine("billing => city: {0}", Billing["city"]);
	Console.WriteLine("billing => region: {0}", Billing["region"]);
	Console.WriteLine("billing => zip_code: {0}", Billing["zip_code"]);
	Console.WriteLine("billing => country: {0}", Billing["country"]);
	Console.WriteLine("billing => phone: {0}", Billing["phone"]);
	Console.WriteLine("billing => fax: {0}", Billing["fax"]);
	Console.WriteLine("billing => email: {0}", Billing["email"]);

	Console.WriteLine("nameservers: {0}", MyObj["nameservers"]);
}
catch (Exception ex)
{
	Console.WriteLine(ex.Message);
}

Convert Normal Text to Punycode

using IP2LocationIOComponent;

// Configures IP2Location.io API key
Configuration Config = new()
{
	ApiKey = "YOUR_API_KEY"
};

DomainWhois Whois = new(Config);

// Convert normal text to punycode
string domain = "täst.de";
Console.WriteLine(Whois.GetPunycode(domain));

Convert Punycode to Normal Text

using IP2LocationIOComponent;

// Configures IP2Location.io API key
Configuration Config = new()
{
	ApiKey = "YOUR_API_KEY"
};

DomainWhois Whois = new(Config);

// Convert punycode to normal text
string domain = "xn--tst-qla.de";
Console.WriteLine(Whois.GetNormalText(domain));

Get Domain Name

using IP2LocationIOComponent;

// Configures IP2Location.io API key
Configuration Config = new()
{
	ApiKey = "YOUR_API_KEY"
};

DomainWhois Whois = new(Config);

// Get domain name from URL
string url = "https://www.example.com/exe";
Console.WriteLine(Whois.GetDomainName(url));

Get Domain Extension

using IP2LocationIOComponent;

// Configures IP2Location.io API key
Configuration Config = new()
{
	ApiKey = "YOUR_API_KEY"
};

DomainWhois Whois = new(Config);

// Get domain extension (gTLD or ccTLD) from URL or domain name
string str = "example.com";
Console.WriteLine(Whois.GetDomainExtension(str));

Lookup IP Address Hosted Domain Data

using Newtonsoft.Json;
using IP2LocationIOComponent;

// Configures IP2Location.io API key
Configuration Config = new()
{
	ApiKey = "YOUR_API_KEY"
};

HostedDomain HD = new(Config);
string IP = "8.8.8.8";

// Lookup ip address hosted domain data
var MyTask = HD.Lookup(IP); // Optional: 2nd param which is the page of the result, defaults to the first page

try
{
	var MyObj = MyTask.Result;

	// pretty-print JSON
	Console.WriteLine(JsonConvert.SerializeObject(MyObj, Formatting.Indented));

	Console.WriteLine("ip: {0}", MyObj["ip"]);
	Console.WriteLine("total_domains: {0}", MyObj["total_domains"]);
	Console.WriteLine("page: {0}", MyObj["page"]);
	Console.WriteLine("per_page: {0}", MyObj["per_page"]);
	Console.WriteLine("total_pages: {0}", MyObj["total_pages"]);
	Console.WriteLine("domains: {0}", MyObj["domains"]);
}
catch (Exception ex)
{
	Console.WriteLine(ex.Message);
}

Response Parameter

IP Geolocation Lookup function

ParameterTypeDescription
ipstringIP address.
country_codestringTwo-character country code based on ISO 3166.
country_namestringCountry name based on ISO 3166.
region_namestringRegion or state name.
city_namestringCity name.
latitudedoubleCity latitude. Defaults to capital city latitude if city is unknown.
longitudedoubleCity longitude. Defaults to capital city longitude if city is unknown.
zip_codestringZIP/Postal code.
time_zonestringUTC time zone (with DST supported).
asnstringAutonomous system number (ASN).
asstringAutonomous system (AS) name.
ispstringInternet Service Provider or company's name.
domainstringInternet domain name associated with IP address range.
net_speedstringInternet connection type. DIAL = dial-up, DSL = broadband/cable/fiber/mobile, COMP = company/T1
idd_codestringThe IDD prefix to call the city from another country.
area_codestringA varying length number assigned to geographic areas for calls between cities.
weather_station_codestringThe special code to identify the nearest weather observation station.
weather_station_namestringThe name of the nearest weather observation station.
mccstringMobile Country Codes (MCC) as defined in ITU E.212 for use in identifying mobile stations in wireless telephone networks, particularly GSM and UMTS networks.
mncstringMobile Network Code (MNC) is used in combination with a Mobile Country Code (MCC) to uniquely identify a mobile phone operator or carrier.
mobile_brandstringCommercial brand associated with the mobile carrier.
elevationintegerAverage height of city above sea level in meters (m).
usage_typestringUsage type classification of ISP or company.
address_typestringIP address types as defined in Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6).
continent.namestringContinent name.
continent.codestringTwo-character continent code.
continent.hemispherearrayThe hemisphere of where the country located. The data in array format with first item indicates (north/south) hemisphere and second item indicates (east/west) hemisphere information.
continent.translationobjectTranslation data based on the given lang code.
districtstringDistrict or county name.
country.namestringCountry name based on ISO 3166.
country.alpha3_codestringThree-character country code based on ISO 3166.
country.numeric_codestringThree-character country numeric code based on ISO 3166.
country.demonymstringNative of the country.
country.flagstringURL of the country flag image.
country.capitalstringCapital of the country.
country.total_areaintegerTotal area in km2.
country.populationintegerPopulation of the country.
country.currencyobjectCurrency of the country.
country.languageobjectLanguage of the country.
country.tldstringCountry-Code Top-Level Domain.
country.translationobjectTranslation data based on the given lang code.
region.namestringRegion or state name.
region.codestringISO3166-2 code.
region.translationobjectTranslation data based on the given lang code.
city.namestringCity name.
city.translationobjectTranslation data based on the given lang code.
time_zone_info.olsonstringTime zone in Olson format.
time_zone_info.current_timestringCurrent time in ISO 8601 format.
time_zone_info.gmt_offsetintegerGMT offset value in seconds.
time_zone_info.is_dstbooleanIndicate if the time zone value is in DST.
time_zone_info.sunrisestringTime of sunrise. (hh:mm format in local time, i.e, 07:47)
time_zone_info.sunsetstringTime of sunset. (hh:mm format in local time, i.e 19:50)
geotargeting.metrostringMetro code based on zip/postal code.
ads_categorystringThe domain category code based on IAB Tech Lab Content Taxonomy.
ads_category_namestringThe domain category based on IAB Tech Lab Content Taxonomy. These categories are comprised of Tier-1 and Tier-2 (if available) level categories widely used in services like advertising, Internet security and filtering appliances.
is_proxybooleanWhether is a proxy or not.
fraud_scoreintegerPotential risk score (0 - 99) associated with IP address. A higher IP2Proxy Fraud Score indicates a greater likelihood of fraudulent activity and a lower reputation.
proxy.last_seenintegerProxy last seen in days.
proxy.proxy_typestringType of proxy.
proxy.threatstringSecurity threat reported.
proxy.providerstringName of VPN provider if available.
proxy.is_vpnbooleanAnonymizing VPN services.
proxy.is_torbooleanTor Exit Nodes.
proxy.is_data_centerbooleanHosting Provider, Data Center or Content Delivery Network.
proxy.is_public_proxybooleanPublic Proxies.
proxy.is_web_proxybooleanWeb Proxies.
proxy.is_web_crawlerbooleanSearch Engine Robots.
proxy.is_residential_proxybooleanResidential proxies.
proxy.is_spammerbooleanEmail and forum spammers.
proxy.is_scannerbooleanNetwork security scanners.
proxy.is_botnetbooleanMalware infected devices.
proxy.is_consumer_privacy_networkbooleanConsumer Privacy Networks.
proxy.is_enterprise_private_networkbooleanEnterprise Private Networks.
{
    "ip": "8.8.8.8",
    "country_code": "US",
    "country_name": "United States of America",
    "region_name": "California",
    "district": "Santa Clara County",
    "city_name": "Mountain View",
    "latitude": 37.38605,
    "longitude": -122.08385,
    "zip_code": "94035",
    "time_zone": "-07:00",
    "asn": "15169",
    "as": "Google LLC",
    "isp": "Google LLC",
    "domain": "google.com",
    "net_speed": "T1",
    "idd_code": "1",
    "area_code": "650",
    "weather_station_code": "USCA0746",
    "weather_station_name": "Mountain View",
    "mcc": "-",
    "mnc": "-",
    "mobile_brand": "-",
    "elevation": 32,
    "usage_type": "DCH",
    "address_type": "Anycast",
    "ads_category": "IAB19-11",
    "ads_category_name": "Data Centers",
    "continent": {
        "name": "North America",
        "code": "NA",
        "hemisphere": [
            "north",
            "west"
        ],
        "translation": {
            "lang": "en",
            "value": "North America"
        }
    },
    "country": {
        "name": "United States of America",
        "alpha3_code": "USA",
        "numeric_code": 840,
        "demonym": "Americans",
        "flag": "https://cdn.ip2location.io/assets/img/flags/us.png",
        "capital": "Washington, D.C.",
        "total_area": 9826675,
        "population": 339665118,
        "currency": {
            "code": "USD",
            "name": "United States Dollar",
            "symbol": "$"
        },
        "language": {
            "code": "EN",
            "name": "English"
        },
        "tld": "us",
        "translation": {
            "lang": "en",
            "value": "United States of America"
        }
    },
    "region": {
        "name": "California",
        "code": "US-CA",
        "translation": {
            "lang": "en",
            "value": "California"
        }
    },
    "city": {
        "name": "Mountain View",
        "translation": {
            "lang": "en",
            "value": "Mountain View"
        }
    },
    "time_zone_info": {
        "olson": "America/Los_Angeles",
        "current_time": "2025-04-14T23:13:23-07:00",
        "gmt_offset": -25200,
        "is_dst": true,
        "sunrise": "06:31",
        "sunset": "19:45"
    },
    "geotargeting": {
        "metro": "807"
    },
    "is_proxy": false,
    "fraud_score": 0,
    "proxy": {
        "last_seen": 14,
        "proxy_type": "DCH",
        "threat": "-",
        "provider": "-",
        "is_vpn": false,
        "is_tor": false,
        "is_data_center": true,
        "is_public_proxy": false,
        "is_web_proxy": false,
        "is_web_crawler": false,
        "is_residential_proxy": false,
        "is_consumer_privacy_network": false,
        "is_enterprise_private_network": false,
        "is_spammer": false,
        "is_scanner": false,
        "is_botnet": false
    }
}

Domain WHOIS Lookup function

ParameterTypeDescription
domainstringDomain name.
domain_idstringDomain name ID.
statusstringDomain name status.
create_datestringDomain name creation date.
update_datestringDomain name updated date.
expire_datestringDomain name expiration date.
domain_ageintegerDomain name age in day(s).
whois_serverstringWHOIS server name.
registrar.iana_idstringRegistrar IANA ID.
registrar.namestringRegistrar name.
registrar.urlstringRegistrar URL.
registrant.namestringRegistrant name.
registrant.organizationstringRegistrant organization.
registrant.street_addressstringRegistrant street address.
registrant.citystringRegistrant city.
registrant.regionstringRegistrant region.
registrant.zip_codestringRegistrant ZIP Code.
registrant.countrystringRegistrant country.
registrant.phonestringRegistrant phone number.
registrant.faxstringRegistrant fax number.
registrant.emailstringRegistrant email address.
admin.namestringAdmin name.
admin.organizationstringAdmin organization.
admin.street_addressstringAdmin street address.
admin.citystringAdmin city.
admin.regionstringAdmin region.
admin.zip_codestringAdmin ZIP Code.
admin.countrystringAdmin country.
admin.phonestringAdmin phone number.
admin.faxstringAdmin fax number.
admin.emailstringAdmin email address.
tech.namestringTech name.
tech.organizationstringTech organization.
tech.street_addressstringTech street address.
tech.citystringTech city.
tech.regionstringTech region.
tech.zip_codestringTech ZIP Code.
tech.countrystringTech country.
tech.phonestringTech phone number.
tech.faxstringTech fax number.
tech.emailstringTech email address.
billing.namestringBilling name.
billing.organizationstringBilling organization.
billing.street_addressstringBilling street address.
billing.citystringBilling city.
billing.regionstringBilling region.
billing.zip_codestringBilling ZIP Code.
billing.countrystringBilling country.
billing.phonestringBilling phone number.
billing.faxstringBilling fax number.
billing.emailstringBilling email address.
nameserversarrayName servers
{
	"domain": "locaproxy.com",
	"domain_id": "1710914405_DOMAIN_COM-VRSN",
	"status": "clientTransferProhibited https://icann.org/epp#clientTransferProhibited",
	"create_date": "2012-04-03T02:34:32Z",
	"update_date": "2021-12-03T02:54:57Z",
	"expire_date": "2024-04-03T02:34:32Z",
	"domain_age": 4055,
	"whois_server": "whois.godaddy.com",
	"registrar": {
		"iana_id": "146",
		"name": "GoDaddy.com, LLC",
		"url": "https://www.godaddy.com"
	},
	"registrant": {
		"name": "Registration Private",
		"organization": "Domains By Proxy, LLC",
		"street_address": "DomainsByProxy.com",
		"city": "Tempe",
		"region": "Arizona",
		"zip_code": "85284",
		"country": "US",
		"phone": "+1.4806242599",
		"fax": "+1.4806242598",
		"email": "Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM"
	},
	"admin": {
		"name": "Registration Private",
		"organization": "Domains By Proxy, LLC",
		"street_address": "DomainsByProxy.com",
		"city": "Tempe",
		"region": "Arizona",
		"zip_code": "85284",
		"country": "US",
		"phone": "+1.4806242599",
		"fax": "+1.4806242598",
		"email": "Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM"
	},
	"tech": {
		"name": "Registration Private",
		"organization": "Domains By Proxy, LLC",
		"street_address": "DomainsByProxy.com",
		"city": "Tempe",
		"region": "Arizona",
		"zip_code": "85284",
		"country": "US",
		"phone": "+1.4806242599",
		"fax": "+1.4806242598",
		"email": "Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM"
	},
	"billing": {
		"name": "",
		"organization": "",
		"street_address": "",
		"city": "",
		"region": "",
		"zip_code": "",
		"country": "",
		"phone": "",
		"fax": "",
		"email": ""
	},
	"nameservers": [
		"vera.ns.cloudflare.com",
		"walt.ns.cloudflare.com"
	]
}

IP Hosted Domains Lookup function

ParameterTypeDescription
ipstringIP address.
total_domainsintegerTotal number of hosted domains found.
pageintegerCurrent lookup page.
per_pageintegerNumber of domains displayed in the page.
total_pagesintegerTotal pages of the hosted domains.
domainsarrayHosted domains of the lookup IP Address.
{
  "ip": "8.8.8.8",
  "total_domains": 3858,
  "page": 1,
  "per_page": 100,
  "total_pages": 39,
  "domains": [
    "000180.top",
    "00100tet.xyz",
    "001hash.vip",
    "002hash.com",
    "0050500.xyz",
    "007515.com",
    "023mm.net",
    "023mt.net",
    "023sn.net",
    "031000.xyz",
    "0515smw.com",
    "058637.com",
    "0798907.xyz",
    "07capital.com",
    "07osrs.com",
    "07sh2wv.bar",
    "0857.site",
    "0931seo.com",
    "0lzh.com",
    "0x4f.com",
    "0x57696c6c.com",
    "0xb055.com",
    "1-189tais.com",
    "10askfcwebkvh.top",
    "1102halfhowehbao1.com",
    "1102hdfkeuwuhfubao2.com",
    "1102hdukefjkf2.com",
    "1102sdbkwuoubao3.com",
    "11107hdkjhguk.com",
    "111km.xyz",
    "1130kfhuhw.com",
    "11eqlhon.top",
    "1206m.site",
    "125ap.com",
    "12la21wn31da40le6.com",
    "12safhoie.top",
    "12tivi.com",
    "1333limited.com",
    "1333yyh.com",
    "135493.com",
    "136668.xyz",
    "13shkuwq.top",
    "142937440.site",
    "144888.xyz",
    "14whoduhw.top",
    "1562yjargm.xyz",
    "15sdkwb.top",
    "167853.xyz",
    "168.one",
    "168km.xyz",
    "16uhwfuhe.cyou",
    "176274.com",
    "17diqwehfoi.cyou",
    "17jule.com",
    "18uhefoh.cyou",
    "191095211.xyz",
    "19931006.xyz",
    "19g.vip",
    "19wuji.cyou",
    "1huofhoehfogakfwqqq.com",
    "1ine1.com",
    "1master-fitness.com",
    "1rf3k.com",
    "1s1s.app",
    "1visualizer.app",
    "200250.xyz",
    "20070217.xyz",
    "20088888.xyz",
    "20230406.mov",
    "205566.com",
    "205artemisbet.com",
    "20iiij.cyou",
    "21107ahsfukhweo.com",
    "21hodheoh.cyou",
    "22bahman.space",
    "22howhw.cyou",
    "231q.top",
    "234n.top",
    "236j.top",
    "23hw.cyou",
    "24asfbkhb.cyou",
    "24ihhcorp.com",
    "25dgfu.cyou",
    "26asfhku.cyou",
    "277210.shop",
    "27adfljn.cyou",
    "28dshkf.cyou",
    "29583.biz",
    "29dakfb.cyou",
    "2ashdowehofhweohfo.com",
    "2c.com",
    "2qdrap.com",
    "2s1c.com",
    "304065117.xyz",
    "30fwhdfkb.cyou",
    "3101r.space",
    "31107abskjfbekb.com",
    "315sx.com",
    "31dfhkjsdb.cyou",
    "325965.com"
  ]
}

LICENCE

See the LICENSE file.

Keywords

geolocation

FAQs

Package last updated on 07 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts