def METHOD_NAME(self, url: str, params: Mapping[str, str], max_pages: int = DEFAULT_MAX_PAGES):
    assert 'page-token' not in params
    page_count = 0
    next_page_token = None
    while max_pages is None or page_count < max_pages:
        if next_page_token is not None:
            params = {**params, 'page-token': next_page_token}
        json_response = query_api(url, params, self.debug_requests)
        yield json_response['items']
        next_page_token = json_response['next_page_token']
        page_count += 1
        if next_page_token is None:
            break