Check if a domain is available

This endpoint checks if the requested domain name is available.

HTTP Endpoint

POST https://panel.myownfreehost.net/xml-api/checkavailable.php

Usage

cURL


curl -X POST -u username:password -d "api_user=username&api_key=password&domain=subdomain.example.com" "https://panel.myownfreehost.net/xml-api/checkavailable.php"

Python


import requests
from requests.auth import HTTPBasicAuth
url = "https://panel.myownfreehost.net/xml-api/checkavailable.php"
data = {'api_user': 'username', 'api_key': 'password', 'domain': 'subdomain.example.com'} # If you want to use a domain which is not a subdomain, put that domain in.
response = requests.post(url, params=data, auth=HTTPBasicAuth('username', 'password'))
print(response.text)

Response

💡

The above request returns an integer (either 0 or 1):


1