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.
Depending on the programming language you are trying to use, I have a few examples I can point to.
Can you share any python example
There is a Python example in this simple OctoPrint client here: