Domain Search API

Add Domain Search to Your Website in Minutes

Simple, powerful domain search API for your website. Support for all major TLDs including .af — no complex setup required.

Provide your users with real-time domain availability search using a single line of code. Our API handles global domains and even the most difficult extensions like .af, so you don't have to.

Latest updates: Dynamic supported-TLD refresh, improved feed parsing, and stronger demo-key protection.

1-line integration All TLDs supported .af domain ready
Live Demo

Live Domain Search Demo

Run 2 live demo searches instantly. After that, add your client key or request a test API key to continue.

724+
TLDs Supported
1 line
To Integrate
99.9%
Uptime SLA
.af
Domain Ready
Integration

Integrate Domain Search in Minutes

Choose how you want to integrate — from simple UI embed to full API control.

1) Hosted Test Interface

Use our ready-made search page instantly without any coding.

URL

2) Embedded Widget

Add domain search to your website with a simple script.

HTML

3) Direct API Access

Use our API directly for full control and custom integrations.

GET
Features

Everything You Need in One Domain API

Security & Access Control

  • Per-client key authentication for every request
  • Domain-based access restriction
  • Rate limiting per client

Performance & Reliability

  • Fast domain lookup responses
  • Optimized for high traffic
  • Reliable global infrastructure

TLD Coverage & Ease of Use

  • Supports all major TLDs
  • Includes .af domain support
  • Simple 1-line integration
  • Works with any platform
Pricing

Simple & Scalable Plans

Free Plan

Start exploring the API today

  • Limited daily requests
  • Basic API access
  • Community support

Enterprise / Reseller

Full white-label & reseller solutions

  • Full white-label solution
  • Dedicated infrastructure
  • Unlimited usage plans
TLDs

All TLDs in One API

Search across hundreds of domain extensions, including global and region-specific TLDs like .af, .com.af, and more.

Total supported TLDs: 724
Request New TLD
Docs

Complete Integration Guide

Follow this checklist to integrate the API quickly and correctly for any frontend, backend, or WHMCS flow.

1

1) Base Endpoint & Required Parameters

Start every request from the endpoint below and include your client key + full domain.

HTTP GET
GET https://api.pamirwebhost.com/domain-check.php?client_key=YOUR_CLIENT_KEY&domain=example.com
  • client_key (required): your assigned API client key.
  • domain (required): full domain name such as mybrand.com.
  • Method must be GET; response is JSON.
  • Use HTTPS in production.
2

2) Optional Parameters for Checkout + Pricing

Use these query parameters to control redirects and commission behavior.

  • redirect_url: custom checkout URL (domain, sld, tld auto-appended).
  • redirect_whmcs=1: force WHMCS checkout URL format.
  • commission_percent: override the admin commission setting per request.
  • demo_nonce: required only for demo key requests.
GET
GET https://api.pamirwebhost.com/domain-check.php?client_key=YOUR_KEY&domain=example.org&commission_percent=18&redirect_whmcs=1
3

3) Widget Integration (Fastest Method)

Embed the widget on any page with data attributes.

HTML
<div data-dsa-widget data-client-key="YOUR_CLIENT_KEY" data-api-url="https://api.pamirwebhost.com/domain-check.php" data-redirect-whmcs="1" data-commission-percent="18" ></div> <script src="https://api.pamirwebhost.com/widget.js"></script>
4

4) Success Response Structure

Typical response when domain is available and pricing is enabled.

JSON
{ "success": true, "domain": "example.com", "available": true, "pricing": { "currency": "USD", "display_register": 14.16, "pricing_mode": "with_commission" }, "purchase": { "show_button": true, "url": "https://..." } }
5

5) Error Handling & Status Codes

Handle API failures gracefully in your app UI.

  • 400: invalid input (missing key/domain, bad format, unsupported TLD).
  • 403: invalid/disabled client or unauthorized origin.
  • 429: rate limit exceeded or demo limit reached.
  • 500/502: temporary upstream/service issues.

6) Recommended Production Checklist

  • Whitelist your frontend origin in admin panel.
  • Set proper client rate limit based on traffic.
  • Enable pricing output only where needed.
  • Set fallback UI for API/network failures.
  • Store your key securely.

Ready to add domain search to your site?

Join developers building with the Pamir Web Host Domain API today.