How to Check Domain Availability using Resellerclub API

| | 1 min read

ResellerClub is an industry leader offering Domains, Reseller Hosting, Shared Hosting, Dedicated Server, VPS Hosting in India.

To Check Domain Availability using Resellerclub API, Please Follow the Below Steps:

  1. Create an account in an Resellerclub: Please note the resellerid and reseller_apikey from the account
  2. Write the code to check domain availability. Here is the example in PHP.
  $rmls_reseller_apiurl = 'https://httpapi.com';
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $reseller_apiurl .'/api/domains/available.json?auth-userid=' .$resellerid. '&api-key=' . $reseller_apikey .'&domain-name='.$domain_name.'&tlds=com&tlds=net&tlds=us&tlds=org&tlds=biz&tlds=info&tlds=ws');
  curl_setopt($ch, CURLOPT_VERBOSE, 1);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  $httpResponse = curl_exec($ch);
  $json = json_decode($httpResponse, true);
  return $json;

Hope this helps! Please feel free to get in touch with us if you need any further asistance.