diff --git a/sources/rest_api/client.py b/sources/rest_api/client.py index d2ba1e28b..d01e28775 100644 --- a/sources/rest_api/client.py +++ b/sources/rest_api/client.py @@ -14,6 +14,7 @@ UnspecifiedPaginator, SinglePagePaginator, JSONResponsePaginator, + HeaderLinkPaginator, ) from .detector import create_paginator, find_records_key @@ -140,7 +141,7 @@ def paginate( # If extract_records is None, try to detect records key # based on the paginator type if extract_records is None: - if isinstance(paginator, SinglePagePaginator): + if isinstance(paginator, (SinglePagePaginator, HeaderLinkPaginator)): extract_records = lambda response: response.json() # noqa elif isinstance(paginator, JSONResponsePaginator): _records_path = find_records_key(response.json())