Fruit can make up between 50% and 67% or more of the capuchin's diet. In one study in Panama, white-headed capuchins ate 95 different fruit species. Among its favorite fruits are figs from the family Moraceae, mangos and related fruits from the family Anacardiaceae, the bean-like fruits from the family Leguminosae and fruits from the family Rubiaceae. It generally only eats ripe fruit, testing for ripeness by smelling, tasting and prodding the fruit. It typically eats only the pulp and juice, spitting out the seeds and fibers. Other plant matter eaten includes flowers, young leaves, seeds of certain plants, and bromeliads. It also uses the bromelids as a water source, drinking the water that gets trapped inside. In Carara National Park the capuchins have a varied diet in addition to the above of banana fruits and flowers, heliconia seeds, huevos de caballo fruits and anacardiaceae stems.