Is there an API to capture the raw data of the apple watch optical sensor?

Is there an API to capture the raw data of the apple watch optical sensor? I need it to be able to acquire a photoplethysmographic wave to be processed to extract medical parameters.