Using social media data may provide timely understanding of the impact of public health emergencies on the public’s mental health during the epidemic period.