code: def _query(self, params, direct=False):
          
          params["api_key"] = self._api_key
  
          if "format" not in params:
              params["format"] = self._default_format
  
          response = self._query_api(params, direct)
          self._validate_response(response)
  
          return Response.from_response_data(response)
docs: :param params: dict
          :return: pybomb.clients.response