Combining photoacoustic excitation with optomechanics enables the mechanical modes associated with entire microorganisms to be detected, demonstrating that mechanical spectroscopy allows us to identify microorganisms and characterize their life stages.