Github Actions API run log of in_progress workflow

How can i get the log output from a “in_progress” workflow?

The url that the API return on the run endpoint return a 404 until the job is finished.
I know that we can get it from the website, but im doing an integration that do a realtime log analysis of long running jobs, and i need the log online.

Thank you!