Stratified analyses for sex, age, body mass index (BMI), smoking, and alcohol consumption showed no significant difference for the association of ApoA1, ApoB, and ApoB/A1 ratio with the prevalence of T2D among subgroups (all p-interactions> 0.05). Here, APOB is linked to type 2 diabetes mellitus.