The vast quantity of energy absorbed by the Earth from outside sources comes from the Sun in the form of light and radiating heath.
Obviously, any star that you see in the sky also contributes to the total. If the light reaches you, so does that minuscule quantity of energy.
There are also all sorts of "cosmic rays" bombarding our planet. Some you can see if you live or visit high latitude countries in the form of "borealis" or Northern lights. Some, as neutrinos, are invisible to the most powerful telescopes.
As for the output of energy, the globe we live on is still alive because of its ability of generating heath. The magma inside the Earth is scorching hot and flowing. This is mostly from radioactive minerals buried deep in the core of the Earth. This heath comes to the surface through volcanoes and other tectonic manifestations and, whatever energy is not exhausted in earthquakes and eruptions, is radiated out to the atmosphere.
I hope I got your question right.