AhR provides a potential therapeutic target for treating depression induced by chronic pain. Here, AHR is linked to depressive symptom measurement.