code: def call_api(self, path, **kwargs):
          '''
          Call datapoint api
          '''
          if 'key' not in kwargs:
              kwargs['key'] = self.api_key
          req = requests.get('{0}{1}'.format(self.base_url, path), params=kwargs)
  
          if req.status_code != requests.codes.ok:
              req.raise_for_status()
  
          return req.json(f call_api(self, path, **kwargs):
          '''
          Call datapoint api
          '''
          if 'key' not in kwargs:
              kwargs['key'] = self.api_key
          req = requests.get('{0}{1}'.format(self.base_url, path), params=kwargs)
  
          if req.status_code != requests.codes.ok:
              req.raise_for_status()
  
          return req.json()
docs: Call datapoint api