Specific Errors Scenarios

Domain Missing Extension Error
You should type domain input values with a domain extension. The below request does not provide any output because the domain is given without any extension. Hence, the domain should be given with a TLD such as bank.com, bank.us, etc. Besides, if you would use a domain name (domain.name), you can type it without a TLD.

$ curl --request POST \
     --url 'https://api.deepinfo.com/v1/discovery/domain-search?include_deleted=no&page=1&page_size=100' \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "must": [
          {
               "name": "domain",
               "value": "bank",
               "type": "eq"
          }
     ]
}
'
HTTP/1.1 200 OK
...
{
  "result_count": 0,
  "page": 1,
  "page_size": 100,
  "results": []
}

Invalid TLD Extension
You should provide a valid TLD extension input for the API request. The given TLD must be correct and in Unicode format, otherwise incorrect entries will return an empty response.

$ curl --request POST \
     --url 'https://api.deepinfo.com/v1/discovery/domain-search?include_deleted=no&page=1&page_size=100' \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "must": [
          {
               "name": "domain.extension",
               "value": "xn--fiqs8s",
               "type": "eq"
          }
     ]
}
'
HTTP/1.1 200 OK
...
{
  "result_count": 0,
  "page": 1,
  "page_size": 100,
  "results": []
}

Invalid Time Format
You should provide a valid time format for API requests. The given time value as input must be correct and in UTC format (i.e., 2021-10-17T02:10:15Z, 2021-10-17), otherwise incorrect entries will return an error code.

$ curl --request POST \
     --url 'https://api.deepinfo.com/v1/discovery/domain-search?include_deleted=no&page=1&page_size=100' \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "must": [
          {
               "name": "domain.whois.create_date",
               "type": "gte",
               "value": "2021-17-10"
          }
     ]
}
'
HTTP/1.1 500 Internal Server Error
...
{
  "code": -1,
  "reason": "An unexpected error has occurred."
}