The results revealed that ApoB was significantly associated with depression risk across multiple subgroups, including sex, BC, AF, arrhythmia, cancer, CHD, diabetes, stroke, pneumonia, CKD, TD, and OP (all P < 0.05). Here, APOB is linked to stroke disorder.