def get_api_questions(self, path):
npages = <NUM_LIT:1><EOL>next_request = True<EOL>path = urijoin(self.base_url, path)<EOL>while next_request:<EOL><INDENT>try:<EOL><INDENT>params = {<EOL>'<STR_LIT>': npages,<EOL>'<STR_LIT>': self.ORDER_API<EOL>}<EOL>response = self.fetch(path, payload=params)<EOL>whole_page = response.text<EOL>raw_questions = json.loads(whole_page)<EOL>tpages = raw_questions['<STR_LIT>']<EOL>logger.debug("<STR_LIT>",<EOL>self.base_url, npages, tpages)<EOL>if npages == tpages:<EOL><INDENT>next_request = False<EOL><DEDENT>npages = npages + <NUM_LIT:1><EOL>yield raw_questions<EOL><DEDENT>except requests.exceptions.TooManyRedirects as e:<EOL><INDENT>logger.warning("<STR_LIT>", e, path)<EOL>next_request = False<EOL><DEDENT><DEDENT>
Retrieve a question page using the API.

        :param page: page to retrieve