Terminal data API?

I've been searching up and down, but I can't find the REST API to get the terminal data for the communication with the printer? The UI obviously gets this somehow, but how do I get access to it?

I'm probably just searching with the wrong keywords... anyone?

I want the same thing as being output in the UI Terminal.

You'll need to use the websocket to access this data.

https://docs.octoprint.org/en/master/api/push.html

Depending on the programming language you are trying to use, I have a few examples I can point to.

1 Like

Can you share any python example

There is a Python example in this simple OctoPrint client here: