Skip to main content

IP WHOIS API

developer
GET/v1/ip/whois

Returns comprehensive WHOIS/RDAP registration data for an IP address. Includes the owning organization, allocated IP range (start, end, CIDR), network name and handle, registration and last-changed dates, Regional Internet Registry (ARIN, RIPE, APNIC, LACNIC, AFRINIC), RDAP status codes plus a coarse `status_summary` (active/reserved/allocated/transferred/other per RFC 8056), all contacts — including abuse, administrative, registrant, and technical — and a top-level `abuse_contact` shortcut sourced from either `role=abuse` entities or RIPE-style `abuse-mailbox` vCard extensions. Flags `range.cidr_mismatch` when the RIR-supplied CIDR doesn't actually contain the queried IP. Also detects bogon (reserved/private) addresses. Results are cached for 1 day.

What It Does

Queries the appropriate Regional Internet Registry (RIR) RDAP endpoint to retrieve IP allocation data. Uses the IANA RDAP bootstrap (RFC 9224) to automatically route queries to the correct RIR. Parses the full RDAP entity tree to extract all contacts by role (abuse, administrative, registrant, technical) with details from jCard/vCard data (name, email, phone, organization), and promotes the abuse contact to a top-level field — checking `role=abuse` entities first, then falling back to the `abuse-mailbox` vCard extension RIPE prefers, so both RIPE and ARIN networks yield a directly-usable email. Returns the allocated IP range in CIDR notation with a CIDR-contains-IP guard to flag inconsistent registry data, network name, RDAP handle, registration and update dates, RIR source, raw RDAP status codes plus a status summary. Short-circuits for bogon/reserved IPs without external API calls.

Why It's Useful

IP WHOIS data is critical for incident response, threat attribution, abuse reporting, and due diligence. During security incidents, responders need to quickly identify who operates an attacking IP and find the abuse contact to report malicious activity — a top-level structured `abuse_contact` field collapses what used to be a two-step "fetch contacts, then find the one tagged abuse" into a single read, and it also catches RIPE's abuse-mailbox vCard convention that the role-only approach misses. The `status_summary` rollup spares callers from memorizing RFC 8056 vocabulary. For compliance, verifying IP ownership confirms vendor and partner infrastructure claims.

Use Cases

Incident Responder

Incident Response & Attribution

During an active security incident, quickly identify the organization, ISP, or cloud provider operating the attacking IPs to coordinate takedown and notify the responsible party.

Immediate attribution and contact information for rapid incident containment and coordinated response.

Security Operations

Abuse Report Filing

Identify the registered organization and correct RIR for malicious IP traffic to file properly formatted abuse reports with the responsible network operator.

Route abuse reports to the correct organization with proper registry reference for faster resolution.

Compliance Officer

Vendor & Infrastructure Verification

Verify that IP addresses used by vendors, partners, or third-party services are actually registered to the claimed organizations as part of vendor due diligence.

Confirm infrastructure ownership claims and detect potential supply chain risks through IP registration verification.

Parameters

NameLocationTypeRequiredDescription
ipquerystringRequiredThe IPv4 or IPv6 address to query WHOIS data forExample: 8.8.8.8

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
ipstringThe queried IP address
range.start_addressstringStart of allocated IP range
range.end_addressstringEnd of allocated IP range
range.cidrstringCIDR notation of the allocation. Null when the RIR-supplied CIDR doesn't actually contain the queried IP.
range.cidr_mismatchbooleanPresent and true when the RIR returned a CIDR that does not contain the queried IP — typically a registry data inconsistency.
namestringNetwork name from RDAP
handlestringRDAP registration handle
organizationstringRegistered organization name
abuse_contact.emailstringAbuse reporting email address — sourced from role=abuse entity first, then vCard abuse-mailbox extension (RIPE convention)
abuse_contact.phonestringAbuse contact phone number
abuse_contact.namestringAbuse contact name
abuse_contact.organizationstringAbuse contact organization
registration_datestringWhen the range was allocated
last_changedstringLast update date of the registration
rirstringRegional Internet Registry: ARIN, RIPE, APNIC, LACNIC, or AFRINIC
statusarrayRDAP status codes (e.g., active, reserved)
status_summarystringCoarse-grained status: active, reserved, allocated, transferred, or other (RFC 8056 §10.2.2)
contactsarrayAll contacts (abuse, administrative, registrant, technical) — each with role, name, email, phone, and organization
contacts_truncatedbooleanWhether the contacts list was truncated (max 50 contacts)
is_bogonbooleanWhether the IP is a bogon (reserved/private) address
bogon_typestringBogon classification (e.g., rfc1918_private, rfc5737_documentation)

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/ip/whois?ip=8.8.8.8' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/ip/whois?ip=8.8.8.8",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/ip/whois?ip=8.8.8.8",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full IP WHOIS guide

Learn the concepts, choose a practical workflow, and interpret the observations from IP WHOIS before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the IP WHOIS endpoint live in the playground.