Pull logs in real time from the Actions API

I’m able to pull logs once the workflow is finished, but I cannot retrieve logs in real time from the workflow. Is this possible?

For reference, I’m using this API endpoint: Actions - GitHub Docs