code: def _find_record(self, domain, _type=None):
          
  
          def _is_matching(record):
              """filter function for records"""
  
              if domain and record.get('domain', None) != domain:
                  return False
              if _type and record.get('type', None) != _type:
                  return False
              return True
  
          payload = self._get('/search?q={0}&type=record'.format(domain))
          for record in payload:
              if _is_matching(record):
                  match = record
                  break
          else:
              # no such domain on ns1
              return None
  
          record = self._get(
              '/zones/{0}/{1}/{2}'.format(match['zone'], match['domain'], match['type']))
          if record.get('message', None):
              return None  # {"message":"record not found"}
          short_answers = [x['answer'][0] for x in record['answers']]
  
          # ensure a compatibility level with self._list_records
          record['short_answers'] = short_answers
          return record
docs: search for a record on NS1 across zones. returns None if not found.