Wastewater analysis has become an established approach for retrieving additional epidemiological information about the use of illicit drugs, alcohol, and tobacco at the population level. Here, we present an overview of the recent analytical frameworks and workflows for target and suspect analyses using low- and high-resolution mass spectrometry and discuss the latest advances in wastewater-based epidemiology (WBE).