GnistAI GnistAI
Log in

Getting Started with WHOIS Lookup

Domain WHOIS lookup — registrar, registration/expiration dates, nameservers, DNSSEC status.

All Tutorials   |   Overview   |   Playground   |   MCP   |   REST API   |   Home
Utilities

Data source: RDAP (Registration Data Access Protocol)

Overview

WHOIS Lookup wraps RDAP (Registration Data Access Protocol), handling authentication, pagination, and rate limits for you. This tutorial covers all 2 tools with working code examples you can copy and run.

Prerequisites

  1. Sign up at https://context.gnist.ai/signup for a free API key (100 calls/day).
  2. Choose your integration method: MCP protocol or REST API.

Connect via MCP

Add to your MCP client config (Claude Desktop, Cursor, etc.):

MCP Config
{
  "mcpServers": {
    "gnist-whois-lookup": {
      "url": "https://context.gnist.ai/mcp/whois-lookup/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Tools (2)

whois_lookup

Look up domain registration (WHOIS) information. Returns registrar, registration/expiration dates, nameservers, status, DNSSEC, and registrant contact (when available). Uses RDAP, the modern successor to traditional WHOIS. Args: domain: Domain name to look up (e.g. "example.com"). Can include www. or https:// prefix.

ParameterTypeRequiredDescription
domainstringrequired
curl -X POST "https://context.gnist.ai/mcp/whois-lookup/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "whois_lookup", "arguments": {"domain": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/whois-lookup/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'domain': 'example'}, 'name': 'whois_lookup'}},
)
print(resp.json())

report_feedback

Report a bug, feature request, or general feedback for this data source. Use this when something doesn't work as expected, when you'd like a new feature, or when you have suggestions for improvement. Args: feedback: Describe the issue or suggestion. feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: general)
curl -X POST "https://context.gnist.ai/mcp/whois-lookup/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "report_feedback", "arguments": {"feedback": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/whois-lookup/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'feedback': 'example'}, 'name': 'report_feedback'}},
)
print(resp.json())

FAQ

What data does WHOIS Lookup provide?

Domain WHOIS lookup — registrar, registration/expiration dates, nameservers, DNSSEC status. It exposes 2 tools: whois_lookup, report_feedback.

What do I need to get started?

A Gnist API key (free tier: 100 calls/day). Sign up at https://context.gnist.ai/signup.

What format does the WHOIS Lookup API return?

JSON, via either MCP protocol (JSON-RPC 2.0) or REST API.

Next Steps

Related Tutorials