Animals get the energy they need to live from eating plants as herbivores, eating other animals as carnivores, or eating both plants and animals as omnivores. Food webs show what eats what in an ecosystem, with green plants as producers at the bottom and apex predators at the top that are prey to no other animal. Nearly all animals are consumers that get energy by consuming plants or other animals.