Skip to content
OSINTtools.io

IP2WHOIS API

Domain WHOIS lookup and a hosted-domains (reverse IP) search from the IP2Location team, with a free API tier.

Base URL
https://api.ip2whois.com
Sign-in
API key
Free tier
Free tier
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from ip2whois.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The IP2WHOIS API returns the WHOIS record of a domain as JSON or XML: registrar, registration, update and expiry dates, domain age in days, nameservers and the registrant, admin, tech and billing contacts. The docs state coverage of 1221 TLDs, including 634 ccTLDs.

Calls are GET requests to https://api.ip2whois.com/v2 with the license key in the key query parameter and the domain in domain.

The docs say the free API allows up to 500 WHOIS lookups per month. They do not state a rate limit.

Quick start

  1. Get a key

    Create an account with IP2WHOIS and copy your api key (free tier). Where to get it

  2. Make your first request

    WHOIS record of a domain, with registrar, dates, nameservers and contacts.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.ip2whois.com/v2?domain=example.com&key=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this, shortened.

    {
      "domain": "example.com",
      "domain_id": "0000000000_DOMAIN_COM-VRSN",
      "status": "clientTransferProhibited",
      "create_date": "2012-04-03T02:34:32Z",
      "update_date": "2021-12-03T02:54:57Z",
      "expire_date": "2030-04-03T02:34:32Z",
      "domain_age": 3863,
      "whois_server": "whois.registrar.example",
      "registrar": {
        "iana_id": "9999",
        "name": "Example Registrar, Inc.",
        "url": "https://registrar.example.com"
      },
      "registrant": {
        "name": "Registration Private",
        "organization": "Example Org",
        "country": "US",
        "email": "registrant@example.com"
      },
      "nameservers": [
        "ns1.example.net",
        "ns2.example.net"
      ]
    …

Authentication

Send your API key in the key query parameter of every request.

Get a key from IP2WHOIS

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs; the free API allows up to 500 lookups per month

Free tier.

Errors

StatusMeaning
400Error body carries error_code 10000 (missing parameter), 10007 (invalid domain) or 10008 (invalid format)
401Error body carries error_code 10001 (API key not found), 10002 (disabled) or 10003 (expired)

WHOIS

Returns the parsed WHOIS record. Other error codes in the error body: 10004 insufficient credits, 10005 unknown error, 10006 no data found. The docs do not list HTTP status codes for these.

Query parameters

domainstringrequiredtakes your domain

Domain name to look up

Example: example.com
formatstring

Response format

Example: jsonDefault: jsonOne of: json, xml
Response fields · 16Show

domainstring

Domain name

domain_idstring

Registry domain ID

statusstring

Domain status

create_datestring

Creation date

update_datestring

Last update date

expire_datestring

Expiry date

domain_ageinteger

Domain age in days

whois_serverstring

WHOIS server

iana_idstring

Registrar IANA ID

namestring

Registrar name

urlstring

Registrar URL

namestring

Registrant name; admin, tech and billing have the same fields

organizationstring

Registrant organization

countrystring

Registrant country

emailstring

Registrant email

nameservers[]string

Nameservers

curl 'https://api.ip2whois.com/v2?domain=example.com&key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "domain": "example.com",
  "domain_id": "0000000000_DOMAIN_COM-VRSN",
  "status": "clientTransferProhibited",
  "create_date": "2012-04-03T02:34:32Z",
  "update_date": "2021-12-03T02:54:57Z",
  "expire_date": "2030-04-03T02:34:32Z",
  "domain_age": 3863,
  "whois_server": "whois.registrar.example",
  "registrar": {
    "iana_id": "9999",
    "name": "Example Registrar, Inc.",
    "url": "https://registrar.example.com"
  },
  "registrant": {
    "name": "Registration Private",
    "organization": "Example Org",
    "country": "US",
    "email": "registrant@example.com"
  },
  "nameservers": [
    "ns1.example.net",
    "ns2.example.net"
  ]
}