code: def get_query_type(query):
      
  
      if URL_RE.match(query):
          query_type = 'domain'
      elif EMAIL_RE.match(query):
          query_type = 'email'
      else:
          query_type = ''
  
      return query_type
docs: Gets the type of query in use (email or url).
  
      In order to provide a proper API endpoint it is necessary to first
      determine the type of query the client is using. There are only two
      options currently: 1) domain or 2) email.
  
      :param query: Search query provided by client.