Organisms obtain energy in different ways. But all energy traces down from the sun. Most plants get energy by absorbing sunlight in their chloroplasts by the means of photosynthesis, however there are some carnivorous plants, such as the Venus Flytrap. Herbivores eat the plants and get energy from them. Then carnivores eat the herbivores. This is the food chain. So, all organisms are in the food chain, and most get energy from eating food, either plant or animal.