Goldfish primarily eat a diet that consists of fish flakes or pellets specially formulated for their nutritional needs. They also enjoy occasional treats like brine shrimp or peas.