Domain Checker API Documentation

Click here To Get Api.

PHP Sample Code

Use the following PHP script to integrate the API in your application:

<?php
$api_url = "https://api.sahilbilal.site/api.php";
$api_key = "000";
$domain = "example.com";
$request_url = "{$api_url}?api={$api_key}&domain={$domain}";
$response = file_get_contents($request_url);
$data = json_decode($response, true);
if ($data) {
    echo "<pre>" . json_encode($data, JSON_PRETTY_PRINT) . "</pre>";
} else {
    echo "<p style='color:red;'>Failed to fetch API response.</p>";
}
?>

API Endpoint

https://api.sahilbilal.site/api.php

Request Method

GET

Query Parameters

Parameter Type Required Description
api string Yes Your API key (e.g., 000).
domain string Yes The domain name to check (e.g., example.com).

Response

Success Response

{
    "domain": "example.com",
    "status": "success",
    "message": "Domain is available!",
    "is_available": true,
    "buy_link": "https://www.sahilbilal.site/domains?domain=example.com"
}
    

Failure Response

{
    "domain": "example.com",
    "status": "fail",
    "message": "Domain is already registered.",
    "is_available": false
}
    

Error Response

{
    "status": "error",
    "message": "API key or domain is missing."
}
    

Usage Example

Request

GET https://api.sahilbilal.site/api.php?api=000&domain=example.com

Response

{
    "domain": "example.com",
    "status": "success",
    "message": "Domain is available!",
    "is_available": true,
    "buy_link": "https://www.sahilbilal.site/?i=domains&buy=example.com"
}
    

Notes

Ensure the API key and domain name are correctly provided. Only valid domain names with supported TLDs are allowed.

Support

For any issues or queries, contact us at: