These fruits are loaded with flavonoids, a natural compound present in certain fruits, vegetables and grains, which some research has tentatively tied to heath benefits such as a lower risk of heart disease or cancer.
"People who ate a higher amount of blueberries or apples, they tended to have a low risk of type 2 diabetes," said An Pan, a research fellow at the Harvard School of Public Health who worked on the study.
The findings show an association, he added, but don't prove the fruits, themselves, prevent diabetes.
The new work, published in the American Journal of Clinical Nutrition, parallels a study published in the same journal last year associating flavonoid-rich fruits with a reduced risk of high blood pressure.
For the new US National Institutes of Health-funded study, researchers tracked the dietary patterns of approximately 200,000 men and women for up to 24 years.
The participants, who were enrolled in three large ongoing studies of American health professionals, filled out regular questionnaires about how frequently they consumed certain foods and beverages of a standard portion size.
None had diabetes at the outset, but about 12,600 of the participants were diagnosed during the research period.
The lightest blueberry eaters in the study reported getting less than one serving (half a cup) of the fruit per month, while the biggest blueberry consumers had two or more servings per week.
Pan's team found that blueberry-lovers had a 23 per cent lower risk of developing type 2 diabetes compared with those who ate no blueberries. People who ate five or more apples a week also had a 23 per cent lower risk compared with those who didn't eat apples.
The researchers suggested that certain flavonoids especially high in those fruits might be behind their possibly beneficial effect on diabetes risk.
"We found consistent results across the three (study groups) that apples and blueberries are beneficial for type 2 diabetes," Pan said.