Domain lookup
Answers what InternetData knows about one domain from its latest snapshots: on every plan whether it is registered and which DNS record types it has; on a paid one the records themselves, up to 100 a type, the organization's IP ranges and whether it is a disposable email domain. An internationalized name is answered under its punycode spelling.
Authorization (optional)
apiKeyQueryapikey in query
?apikey=<key>. Convenient in a browser; prefer a header elsewhere.
apiKeyHeaderX-Api-Key in header
X-Api-Key: <key>.
bearerAuthbearer token
Authorization: Bearer <key>.
Path parameters
domainrequiredstringThe domain to look up.
Responses
200application/json
What each database says about the domain, as much as your plan shows.
domainrequiredstringThe domain, lowercase and in punycode.
is_registeredrequiredbooleanIn Domain List: a registered domain.
is_disposablebooleanIn Disposable Domain. Paid plans and the trial.
has_arequiredbooleanIt has A records.
has_aaaarequiredbooleanAAAA records.
has_mxrequiredbooleanMX records.
has_nsrequiredbooleanNS records.
has_cnamerequiredbooleanA CNAME record.
dnsobject
Its records in Domain DNS, up to 100 a type. Paid plans and the trial.
arequiredarray<object>
iprequiredstringThe address.
last_seenrequiredstringThe last day the snapshot saw it.
aaaarequiredarray<object>
iprequiredstringThe address.
last_seenrequiredstringThe last day the snapshot saw it.
mxrequiredarray<object>
priorityrequiredintegerIts priority.
hostrequiredstringThe mail host.
last_seenrequiredstringThe last day seen.
nsrequiredarray<object>
hostrequiredstringThe name server.
last_seenrequiredstringThe last day seen.
cnamerequiredarray<object>
targetrequiredstringWhere it points.
last_seenrequiredstringThe last day seen.
ip_rangesobject
The organization's IP ranges, from Domain IP Ranges. Paid plans and the trial.
domainrequiredstringThe organization's domain.
redirects_torequiredstringWhere its home page redirects, when that is how it was reached.
totalrequiredintegerHow many ranges it holds.
ipv4requiredintegerIPv4 addresses across them.
rangesrequiredarray<object>
The first 1000, IPv4 before IPv6, the largest first.
rangerequiredstringThe range.
namerequiredstringIts registry name.
countryrequiredstringISO 3166 country code.
disposableobject
{} when is_disposable is false. Paid plans and the trial.
confidencestringhigh, medium or low.
providersarray<string>The providers behind it.
first_seenstringThe first day seen in use.
last_seenstringThe last day.
trial_expiredbooleanOn every answer to a key on the free plan, and on no other: false while the day's trial of every field lasts, true once the answer has Unlimited's fields.
TypeScript type
{
domain: string;
is_registered: boolean;
is_disposable?: boolean;
has_a: boolean;
has_aaaa: boolean;
has_mx: boolean;
has_ns: boolean;
has_cname: boolean;
dns?: {
a: {
ip: string;
last_seen: string;
}[];
aaaa: {
ip: string;
last_seen: string;
}[];
mx: {
priority: number;
host: string;
last_seen: string;
}[];
ns: {
host: string;
last_seen: string;
}[];
cname: {
target: string;
last_seen: string;
}[];
};
ip_ranges?: {
domain: string;
redirects_to: string;
total: number;
ipv4: number;
ranges: {
range: string;
name: string;
country: string;
}[];
};
disposable?: {
confidence?: string;
providers?: string[];
first_seen?: string;
last_seen?: string;
};
trial_expired?: boolean;
}400application/json
Not an address, an AS number or a domain.
errorrequiredstringWhat went wrong.
TypeScript type
{
error: string;
}401application/json
The key is not one, or no longer works.
errorrequiredstringWhat went wrong.
TypeScript type
{
error: string;
}403application/json
The key may not be used from this address, lacks the ip.lookup scope (Lookups, in the
console's API keys), or was sent over plain HTTP.
errorrequiredstringWhat went wrong.
TypeScript type
{
error: string;
}429application/json
A rate limit, with Retry-After (this API protecting itself, or Unlimited's per-minute
limit), or, with none, a paid plan's overage cap.
errorrequiredstringWhat went wrong.
TypeScript type
{
error: string;
}500application/json
Our data could not be read. Retry; nothing was charged.
errorrequiredstringWhat went wrong.
TypeScript type
{
error: string;
}