Document of dotDB API v1.0

dotDB API allows you to search all domain names via API calls programmatically. To get access of dotDB API, you need to subscribe to Expert plan. If you need any help for using dotDB API, like you need a code sample of for accessing dotDB API in your favorite programming language, like Python, Ruby, PHP or etc, please feel free to contact us at [email protected] , we are happy to help :)

Authentication

All dotDB API endpoints need to be accessed with a valid API key. To get your API access key, please visit API Access page, press the Reveal button then you will see your API key. API key should be provided in HTTP Authorization header with Token as the type. Like this

Authorization: Token <Your API key>

with tools like cURL, for example, say you want to get the result of searching keyword apple, then you can write

curl -H "Authorization: Token <Your API key>" https://api.dotdb.com/v1/search?keyword=apple

For Python with requests library, you can write

import requests
resp = requests.get(
    'https://api.dotdb.com/v1/search',
    data={'keyword': 'apple'},
    headers={'Authorization': 'Token <Your API key>'}
)

Search - GET /v1/search

dotDB search result can be retrieved as JSON payload via sending HTTP GET request to endpoint

https://api.dotdb.com/v1/search

Parameters

Parameters can be passed in as URL parameter like this as part of the URL query string

keyword=banana&position=end

Available parameters are

Key Required Description
keyword YES The keyword to search, just like the text you will input in the dotDB search text field. Can be separated by spaces for multiple keyword
position NO The position of keyword is allowed appear, can be beginning, end or any. The default value is any
exclude_alphabets NO Exclude alphabets from seach result, can be true, false, 1 or 0. The default value is false
exclude_digits NO Exclude digits from seach result, can be true, false, 1 or 0. The default value is false
exclude_hyphens NO Exclude hyphens from seach result, can be true, false, 1 or 0. The default value is false
exclude_idns NO Exclude idns from seach result, can be true, false, 1 or 0. The default value is false
include_suffix NO Limit the search result to only include given suffixes, for example, .com. This parameter can repeat multiple times to include different suffixes, like include_suffix=.com&include_suffix=.net. Cannot be used with exclude_suffix in the same time
exclude_suffix NO Exclude the search result to not to include given suffixes, for example, .com. This parameter can repeat multiple times to exclude different suffixes, like exclude_suffix=.com&exclude_suffix=.net. Cannot be used with include_suffix in the same time
page NO The number of result page to return, can be from 1 to 100. The default value is 1

Response

Response will be returned in JSON format. Here's the format

Key Description
items_per_page Number of items to be returned in a page
total_name Number of matched names
total_suffix Number of matched suffixes
estimate_total When search a keyword matching too many names, to return the result quickly, we estimate the matched names and suffixes instead of calculate accurate number. When it is true, it means the total_name and total_suffix are estimate numbers, otherwise it means they are accurate number
parameters The parameters you passed in and used for search
matches The search result matches, it will be an array of object with name key for the matching name and suffixes key for an array of matching suffixes. It could be empty if nothing matches or page exceeds the last page

Sample response for search weddingshoes

{
  "parameters": {
      "keywords": [
          "weddingshoes"
      ],
      "position": "any",
      "page": 1,
      "exclude_alphabets": false,
      "exclude_digits": false,
      "exclude_hyphens": false,
      "exclude_idns": false
  },
  "items_per_page": 30,
  "estimate_total": false,
  "total_name": 194,
  "total_suffix": 269,
  "matches": [
      {
          "name": "weddingshoes",
          "suffixes": [
              ".com",
              ".net",
              ".org",
              ".co.uk",
              ".info",
              ".ru",
              ".xyz",
              ".top",
              ".nl",
              ".eu",
              ".cn",
              ".ca",
              ".com.br",
              ".in",
              ".com.cn",
              ".tv",
              ".co.za",
              ".co.kr",
              ".ie",
              ".link",
              ".party",
              ".work",
              ".net.au",
              ".com.my",
              ".ninja",
              ".casa",
              ".gallery",
              ".bz",
              ".direct",
              ".ng"
          ]
      },
      {
          "name": "1stchoiceweddingshoes",
          "suffixes": [
              ".co.uk"
          ]
      },
      {
          "name": "1stforweddingshoes",
          "suffixes": [
              ".co.uk"
          ]
      },
      {
          "name": "1001weddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "101weddingshoes",
          "suffixes": [
              ".xyz"
          ]
      },
      {
          "name": "99weddingshoes",
          "suffixes": [
              ".xyz"
          ]
      },
      {
          "name": "amazingweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "anellaweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "arweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "asianweddingshoes",
          "suffixes": [
              ".com",
              ".co.uk"
          ]
      },
      {
          "name": "beachweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "aweddingshoes",
          "suffixes": [
              ".xyz"
          ]
      },
      {
          "name": "bigweddingshoes",
          "suffixes": [
              ".co.uk"
          ]
      },
      {
          "name": "coweddingshoes",
          "suffixes": [
              ".xyz"
          ]
      },
      {
          "name": "cheapweddingshoes",
          "suffixes": [
              ".com",
              ".biz"
          ]
      },
      {
          "name": "denversbestweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "christianlouboutinweddingshoes",
          "suffixes": [
              ".co.uk"
          ]
      },
      {
          "name": "bridal-weddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "bridalweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "brisbaneweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "britishweddingshoes",
          "suffixes": [
              ".com",
              ".co.uk"
          ]
      },
      {
          "name": "buyweddingshoes",
          "suffixes": [
              ".com",
              ".xyz"
          ]
      },
      {
          "name": "belliniweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "benjaminadamsweddingshoes",
          "suffixes": [
              ".net",
              ".co.uk"
          ]
      },
      {
          "name": "dancingweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "graceweddingshoes",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "greatweddingshoes",
          "suffixes": [
              ".info"
          ]
      },
      {
          "name": "greenweddingshoes",
          "suffixes": [
              ".com",
              ".ru",
              ".xyz"
          ]
      },
      {
          "name": "greenweddingshoesorlando",
          "suffixes": [
              ".com"
          ]
      },
      {
          "name": "greenweddingshoestalk",
          "suffixes": [
              ".tk"
          ]
      }
  ]
}

Examples

Search weddingshoes

cURL:

curl -H "Authorization: Token <Your API key>" https://api.dotdb.com/v1/search?keyword=weddingshoes

Python:

import requests
resp = requests.get(
    'https://api.dotdb.com/v1/search',
    data={'keyword': 'weddingshoes'},
    headers={'Authorization': 'Token <Your API key>'}
)

Search multiple keyword wedding and shoes

cURL:

curl -H "Authorization: Token <Your API key>" https://api.dotdb.com/v1/search?keyword=wedding+shoes

Python:

import requests
resp = requests.get(
    'https://api.dotdb.com/v1/search',
    data={'keyword': 'wedding shoes'},
    headers={'Authorization': 'Token <Your API key>'}
)

Search ending with apple

cURL:

curl -H "Authorization: Token <Your API key>" https://api.dotdb.com/v1/search?keyword=apple&position=end

Python:

import requests
resp = requests.get(
    'https://api.dotdb.com/v1/search',
    data={
        'keyword': 'apple',
        'position': 'end'
    },
    headers={'Authorization': 'Token <Your API key>'}
)

Search ending with apple, filter out digits and hyphens, only include .com and .net suffix

cURL:

curl -H "Authorization: Token <Your API key>" https://api.dotdb.com/v1/search?keyword=apple&position=end&exclude_digits=true&exclude_hyphens=true&include_suffix=.com&include_suffix=.net

Python:

import requests
resp = requests.get(
    'https://api.dotdb.com/v1/search',
    data={
        'keyword': 'apple',
        'position': 'end',
        'exclude_digits': 'true',
        'exclude_hyphens': 'true',
        'include_suffix': ['.com', '.net']
    },
    headers={'Authorization': 'Token <Your API key>'}
)