After a brief discussion on the application of X‐ray photoemission (XPS) to the study of multiplet structures and intensities in 4f‐photoemission, we present XPS spectra of 4f‐electrons in rare earth compounds with intermediate valence state. This technique provides an instantaneous picture of the electronic configuration, and in each case shows the presence of both divalent and trivalent ions, which are identified by their multiplet structure and chemical shifts. These results allow a direct estimate of the Coulomb correlation energy Ueff within 4f‐shells and demonstrate that Hund’s rule correlation is well preserved within a ’’nonmagnetic’’, delocalized 4f‐shell. We review recent temperature dependent XPS‐studies on two distinct systems, the Tm monochalcogenides and the ’’chemically collapsed’’ (golden) phases of SmS. We analyze their relation to other physical properties, especially lattice constant. We also discuss the implications of these observations for the understanding of the semiconductor‐to‐metal transition in these compounds and the related peculiar magnetic properties.