What is the temperature of outerspace? I want to know whether the temperature in Outer space is higher than earth's or cold.Is the temperature in outer space vary as it does on earth?
The temperature in the heliosphere is about one million Kelvin, lower (but still very hot) in the outer regions of the heliosphere, higher close to the sun.
But the density of the plasma is very low, so you wouldn't feel the heat (except close to the sun).

Within Earth's exosphere, reaching up to 10,000 km, the temperature is lower, roughly 1,000 to 1,500 C.

In interstellar space there exist hot (e.g. 10,000 K) and cold gas clouds.

Due to the very low density, hot and cooler fractions can penetrate each other, such that there doesn't need to be a uniquely defined temperature.

The large-scale average temperature of outer space should be 2.7 K (about -270.5 C), close to the CMB black body temperature.