Many applications of TiO2 nanoparticles, such as photocatalytic water splitting or water remediation, occur in aqueous environment. However, the impact of solvation on TiO2 electronic structure remains unclear because only few experimental methods are currently available to probe nanoparticle-water interface. Soft X-ray absorption spectroscopy has been extensively used to characterize the electronic structure of TiO2 materials, but so far only in vacuum conditions. Here we present oxygen K edge and titanium L edge X-ray absorption spectroscopy characterization of TiO2 nanoparticles measured directly in aqueous dispersion. For this purpose, we introduce a new method to probe nanomaterials in liquid using a holey membrane-based flow cell. With this approach, the X-ray transmission of the membrane is increased, especially in the water window, compared to solid membranes.