The lanthanum-based materials, due to their layered structure and f-electron configuration, are relevant for electrochemical application. Particularly, La2O2CO3 shows a prominent chemoresistive response to CO2. However, surprisingly less is known about its atomic and electronic structure and electrochemically significant sites and therefore, its structure–functions relationships have yet to be established. Here we determine the position of the different constituents within the unit cell of monoclinic La2O2CO3 and use this information to interpret in situ high-energy resolution fluorescence-detected (HERFD) X-ray absorption near-edge structure (XANES) and valence-to-core X-ray emission spectroscopy (vtc XES). Compared with La(OH)3 or previously known hexagonal La2O2CO3 structures, La in the monoclinic unit cell has a much lower number of neighboring oxygen atoms, which is manifested in the whiteline broadening in XANES spectra. Such a superior sensitivity to subtle changes is given by HERFD method, which is essential for in situ studying of the interaction with CO2. Here, we study La2O2CO3-based sensors in real operando conditions at 250 °C in the presence of oxygen and water vapors. We identify that the distribution of unoccupied La d-states and occupied O p- and La d-states changes during CO2 chemoresistive sensing of La2O2CO3. The correlation between these spectroscopic findings with electrical resistance measurements leads to a more comprehensive understanding of the selective adsorption at La site and may enable the design of new materials for CO2 electrochemical applications.