What percent of energy does a fish get from the sun and is it a herbivores?

Fish typically do not directly derive energy from the sun as they are not capable of photosynthesis. They obtain energy by consuming other organisms, either herbivorous or carnivorous prey. The percentage of energy obtained from the sun indirectly by a fish would depend on the specific trophic level and diet of that particular species of fish.