Domain Availability API

Everything You Need in One Domain API
Built for Developers & Resellers

Secure authentication, lightning-fast JSON responses, 724+ TLDs, full .af support, embeddable widget, commission pricing, and more — all in one free REST API.

724+
TLDs Supported
<200ms
Avg. Response
JSON
REST API
Free
Dev Access
Core Features

Built for Developers & Resellers

Everything you need to add domain availability checking to any website, app, or platform — from a one-line widget to a full REST API integration.

Secure Client-Key Auth

Every API request is authenticated with a unique client key. Keys are scoped per client, can be rotated, and support origin-based restrictions.

  • Unique embed key per client
  • Server key for backend use
  • Allowed-origins whitelist
  • One-click key rotation
  • Status control (active / suspended)

Per-Client Rate Limiting

Each client gets an independent rate-limit bucket. Exceeding it returns HTTP 429 so you can gracefully degrade.

  • Configurable requests/minute per client
  • Demo tier: 2 free searches/session
  • IP-level demo abuse prevention
  • Clients never affect each other

724+ TLDs & Full .af Support

The only domain API with complete Afghanistan ccTLD support — all .af sub-TLDs including .com.af, .net.af, .org.af, .gov.af, and .edu.af.

  • All major gTLDs (.com, .net, .org, .io)
  • New gTLDs (.app, .dev, .ai, .cloud)
  • Full .af ccTLD registry
  • Live TLD list updates from pricing feed

Clean JSON REST API

A simple GET request returns a structured JSON response with availability, pricing, and purchase link — works with any language or framework.

  • Available/taken status instantly
  • Optional live pricing in response
  • CORS headers for browser clients
  • Works with PHP, JS, Python, cURL…

Embeddable Domain Widget

Drop a fully-functional domain availability search box onto any page with a single line of HTML. No backend code required on your end.

  • One <div> + one <script>
  • Configurable via data attributes
  • Commission markup supported
  • Redirect to custom checkout URL

Live Pricing & Commission

Pull live domain registration prices from the API backend pricing feed and apply a commission markup. The API returns display prices and a ready-to-use purchase URL.

  • commission_percent per request
  • Custom redirect_url for checkout
  • Platform checkout format option
  • register / renew / transfer pricing
2 credits

WHOIS Lookup

Query live WHOIS data for any domain — registrar, registrant country, creation and expiry dates, nameservers, DNSSEC status — returned as clean JSON.

  • WHOIS protocol (real-time)
  • Registrar & registrant data
  • Creation, update, expiry dates
  • DNSSEC status
1 credit

DNS Lookup

Resolve DNS records — A, AAAA, MX, NS, TXT, CNAME, SOA, CAA, SRV — for any domain. Query multiple record types in a single API call.

  • 9 record types supported
  • Multiple types, one call
  • TTL, priority, target included
  • Structured JSON response
1 credit / domain

Bulk Domain Check

Check up to 10 domains in a single request. Send a JSON array by POST or a comma-separated list by GET. Perfect for domain investors and portfolio tools.

  • Up to 10 domains per call
  • GET or POST (JSON body)
  • Per-domain availability result
  • Full .af domain support
5 credits

Domain Suggestions

Enter a keyword and receive up to 20 smart domain name suggestions across the best TLDs — prefixes, suffixes, splits, .af variants. Perfect for brand discovery.

  • Up to 20 suggestions
  • Prefix, suffix & split variants
  • Custom TLD list supported
  • .af & .com.af included
Authentication

How API Key Auth Works

Every request is validated in three steps. Invalid or disabled keys receive a 403 before any WHOIS lookup occurs.

1

Key Lookup

The client_key is looked up in the database. Unknown or disabled keys are rejected immediately.

2

Origin Check

If an allowed-origins list is set for the client, the request Origin header is validated against it.

3

Rate Limit

The per-minute request counter for the client is checked and incremented. Exceeding returns HTTP 429.

API Response

Structured JSON Every Time

The response includes availability status, optional live pricing with commission applied, and a ready-to-use purchase button URL — all in one call.

  • success, domain, available always present
  • pricing block with currency and display price (when enabled)
  • purchase.url ready for a buy-now button
  • Consistent error structure with HTTP status codes
{
  "success": true,
  "domain": "example.af",
  "available": true,
  "pricing": {
    "currency": "USD",
    "display_register": 14.16,
    "pricing_mode": "with_commission"
  },
  "purchase": {
    "show_button": true,
    "url": "https://pamirwebhost.com/crm/cart.php?..."
  }
}
Embeddable Widget

Add Domain Search in One Line

The widget.js script scans your page for data-dsa-widget divs and injects a fully-styled domain search UI. Configure everything via data-* attributes.

data-client-key data-api-url data-redirect-checkout data-commission-percent data-redirect-url
<div
  data-dsa-widget
  data-client-key="YOUR_KEY"
  data-api-url="https://api.pamirwebhost.com/v1/domains/check"
  data-redirect-checkout="1"
  data-commission-percent="18"
></div>
<script src="https://api.pamirwebhost.com/widget.js"></script>
TLD Coverage

724+ TLDs — Including Every .af Extension

From global gTLDs to the complete Afghanistan ccTLD registry, the API covers more TLDs than any other free domain checker.

.af .com.af .net.af .org.af .gov.af .edu.af .com .net .org .io .ai .dev .app .cloud .store .shop .site .online .tech .xyz + 700 more

Browse all supported TLDs

Ready to Add Domain Search to Your Site?

Get a free API key in minutes — no credit card required.