Split the function to extract the API documentation from the docstrings into its own module
Fix unit-test, the period used by the API is relying on the current date