?take=all Paramater

@michael.tanner check the latest version (0.2.3) combocurve-api-v1 · PyPI

We just added the get_next_page_url helper. Example:

from combocurve_api_v1.pagination import get_next_page_url

# See Authorization section
auth_headers = combocurve_auth.get_auth_headers()

# Additional filters are allowed, it is preferred not specify skip if its value is 0
url = 'https://api.combocurve.com/v1/wells?take=200'

# First request
has_more = True

# Keep fetching while there are more records to be returned
while has_more:
    response = requests.get(url, headers=headers)

    # Process response

    url = get_next_page_url(response.headers)
    has_more = url is not None

On the surface this mainly manages the skip parameter for you. But this is in fact more robust and will also transparently allow other more optimized pagination methods in the future.

2 Likes