Spectrally resolved x-ray Thomson scattering is a powerful diagnostic method for dense plasmas, enabling measurements of plasma parameters like temperature, density or charge state, as well as microscopic properties. In this lecture, a basic introduction to the technique will be given, the challenges of experimental realization will be discussed, as well as the theoretical framework to extract information from scattering spectra.